Add subtitles to a video (one call)
caption_videoPREFER THIS for 'add/burn subtitles to this video'. Needs a key with credits: without one, call create_key first (free; it returns starter welcomeCredits while today's last, or a welcomeChallenge for 10 free welcome credits while the trial runs). First run: sourceUrl https://awesomevideoeditor.com/samples/cc0-interview-es.mp4 (8 s sample, 2 credits). One call: transcribe, optional translate (translateTo), burn; returns the MP4 plus SRT, VTT and JSON transcript. Source: sourceUrl (public link, Drive, Dropbox; not YouTube) or fileId from upload/import_url. Price: 5 credits per audio minute, 7 with translateTo (1 credit = 1 cent); failures refund. Waits up to waitSeconds (max 50), then returns the job to poll with get_job (or use webhookUrl/notifyEmail). review:true sends a reviewUrl and charges the burn only on approval. To edit text yourself: transcribe, edit_transcript, burn_captions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "caption_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Block until done, up to waitSeconds. Default true. | |
| fileId | No | Id from upload {action:'start'}, import_url, or upload {action:'inline'}. | |
| preset | No | Caption style preset id or name (get_catalog {kind:'presets'}), or your own saved preset as custom:cp_... (manage_preset {action:'create', type:'custom'}). Default Clarity. | |
| review | No | Human review first: transcribes now, returns reviewUrl for the person; the burn runs and is charged only when they approve. Not with translateTo. | |
| api_key | No | Only for a connection without an Authorization header: the token create_key returned (av_live_...). Pass it on every call to use that key in this same session, no reconnect or config change. Ignored when the connection already sends a key. It works like a password: create a new key if this conversation is shared. | |
| autoFit | No | Default true: caption size, words per caption (4 on 9:16, 5 on 1:1, 7 on 16:9), and a default safe zone follow the video shape, so text reads the same at 720p and 1080p and stays clear of app UI. Pass false only when the user wants the preset's exact fixed pixel sizes. Same price. | |
| glossary | No | Names and brand terms to spell correctly, e.g. ['AwesomeVideo']. | |
| language | No | Spoken language (BCP-47, e.g. es, en). Omit for auto-detect. | |
| platform | No | Target platform: tiktok, instagram_reels, youtube_shorts, youtube, ... (aliases reels, shorts). Keeps captions clear of the app UI. Same price. | |
| faceAvoid | No | true = move captions off faces (samples faces at 2 fps, same price; result.faceAvoid.faceLayout). Shortcut for styleOverrides.faceAvoid. | |
| sourceUrl | No | Public link to the video/audio. Direct https file, chat attachment URL, Google Drive or Dropbox share link. Not YouTube. | |
| maxCredits | No | Refuse the job if it would cost more than this many credits. | |
| webhookUrl | No | Public https URL, POSTed a signed JSON body when the job finishes. | |
| audioVisual | No | Audio-only input (mp3, m4a, wav...): an editorial podcast design plus captions, drawn on the server by the web editor's own code, same price as the burn. {variant: swiss-grid | braun-radio | riso | editorial-cover | bauhaus | continuous-line | vinyl | type-wave | duotone-portrait | ma (default editorial-cover), showName (<=60), episode (<=12), speaker (<=60), coverImageUrl (https) or coverFileId (PNG/JPEG/WebP <=5 MB; shown by vinyl, duotone-portrait), background/accent/ink (#hex; ink auto from paper), captionMode integrated (default: the design typesets the captions) | preset (your caption preset draws), contrastGuard (default true), aspect 9:16|16:9|1:1|4:5 or width+height, overlays (<=8)}. Retired ids still work as aliases with a warning: bars→swiss-grid, ribbon→continuous-line, rings→ma, spectrogram→riso, skyline→bauhaus, silkline→type-wave, ivory→editorial-cover, halo→vinyl, needle→braun-radio, mono→duotone-portrait. On a video input: 422 audio_visual_needs_audio_input, not charged. Catalog: GET /v1/audio-visuals (MCP get_catalog {kind:'audio_visuals'}), free. | |
| notifyEmail | No | Email when the job finishes. Free. | |
| translateTo | No | Burn subtitles translated to this language (ISO 639-1, e.g. en). Adds 2 credits/min. | |
| waitSeconds | No | Default 45, max 50. | |
| instructions | No | review only: note shown to the reviewer. | |
| brandPresetId | No | Saved brand preset (font, colors, position, logo). | |
| highlightColor | No | #RRGGBB for highlightWords. Default #FACC15. | |
| highlightWords | No | Shortcut: words or phrases to color in every caption (accent/case-insensitive), e.g. ["AwesomeVideo", "gratis"]. Maps to styleOverrides.wordHighlights rule {id:"custom", words, color}; on highlighter-marker, ghost-keywords and brand-box it fills their keyword list in the preset colors. Same price. | |
| idempotencyKey | No | Same key returns the same job instead of charging twice. | |
| styleOverrides | No | Per-call style changes deep-merged onto the preset (same fields as get_catalog {kind:'presets'} style; null removes a field), validated with the renderer schema and bundled fonts. Example {"fontSize":72,"maxWordsPerCaption":2,"wordEntrance":"bounce"}. Same price. No need to manage_preset {action:'create', type:'custom'}. Every field with examples: get_catalog {kind:'styles'}. | |
| durationSeconds | No | Media length in seconds. Lets the price be computed without fetching media (quoteOnly, quote, plan). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Job id: pass it to get_job, resume_job, edit_transcript or as transcriptionJobId. | |
| kind | No | Job kind (transcribe, burn, caption, clips, shorts, trim, dub, translate, preview, metadata...). | |
| step | No | Current pipeline step while running. | |
| error | No | Failure reason when status is failed. | |
| result | No | Result when succeeded: url, files[{name, url}], clips, text... | |
| status | No | queued, running, succeeded or failed. | |
| progress | No | Progress (0-1) and ETA while running. | |
| warnings | No | Non-blocking notes. | |
| costCents | No | Credits charged (1 credit = 1 cent). | |
| expiresAt | No | When the result files are deleted. | |
| refundedCents | No | Credits refunded after a failure. |