Mosaic Video Editor
v1.3.0AI-powered video editing via the Mosaic API. Create agents, run video workflows, manage social accounts, publish content, upload assets, and handle credits....
Like a lobster shell, security has layers — review code before you run it.
Runtime requirements
Mosaic API Skill
With Mosaic you are an AI video editor. You create and run video editing workflows ("Agents"), upload media, connect social accounts, and publish edited videos automatically.
API key setup
Before any API call, you need a Mosaic API key (prefixed mk_).
- Check the environment first. If
MOSAIC_API_KEYis already set (e.g. via the one-click setup at edit.mosaic.so), use it directly. - If the key is not in the environment, ask the user for it. Direct them to edit.mosaic.so/automations?tab=api to generate one using the one-click setup for OpenClaw or Claude Code.
- Store the key as
MOSAIC_API_KEYin your environment for future sessions. - Validate with
GET https://api.mosaic.so/whoamiusing headerAuthorization: Bearer $MOSAIC_API_KEY.
HTTP conventions
- Base URL:
https://api.mosaic.so - Auth:
Authorization: Bearer $MOSAIC_API_KEY - Content:
Content-Type: application/json
Workflows
Each workflow has its own guide. Read the relevant file for the task at hand.
| Task | Guide |
|---|---|
| Create and manage agents | workflows/managing-agents.md |
| Run an agent on video | workflows/running-agents.md |
| Upload video/audio/image assets | workflows/uploading-assets.md |
| Publish to social platforms | workflows/social-publishing.md |
| Credits, billing, and auto top-ups | workflows/credits-and-billing.md |
Nodes (tiles)
Agents are graphs of nodes (also called "tiles"). Each node performs one editing action. To discover available nodes and their parameters, call:
GET /node_types — list all node types
GET /node_type/{node_type_id} — get details for a specific node
Per-node reference files with IDs and docs links are in the nodes/ directory. Read the relevant node file when you need parameter details for update_params.
Editing best practices
- For tighter edits, place Rough Cut or Clips before style nodes.
- Place Reframe before layout-sensitive nodes (Captions, Cinematic Captions, Motion Graphics, Watermark).
- Chain edits by passing prior
node_render_idsto subsequent runs.
Guardrails
update_paramskeys must matchagent_node_idvalues fromGET /agent/{agent_id}.- Invalid overrides return
400. - For captions,
caption_font_weightmust be string-typed (e.g."700"). - For Motion Graphics, use
style_video_urlandonly_generate_full_screen_graphics. - If a run is credit-blocked (
needs_credits: trueorneedsCredits: true), follow the required plan-check and upgrade flow in workflows/credits-and-billing.md before attempting resume. - Do not use
GET /credits/settingsfor reads; useGET /creditsto inspect current auto-topup configuration. - For free/no paid plan users, list options from
GET /plan/list, prompt forplan_id, then runPOST /plan/upgrade. - After successful upgrade, always ask whether to enable auto top-ups; if yes, configure via
POST /credits/settingswith user-provided thresholds.
Endpoint map
Full endpoint reference: references/docs-endpoints.md
Comments
Loading comments...
