Add Subtitles
add_subtitlesTranscribe a video and burn word-timed, karaoke-style captions into it. Costs 6 credits per minute, by the second, at least 2 credits, from the length measured before charging. Up to 30 minutes per video. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically. A video with no speech fails and is refunded.
Omit every styling and layout field unless the user asked for that change. Do not choose a font, size, weight, color, outline, background, position, offset, word count or animation on their behalf. Captions default to large white text with a white active word and a black outline in the lower safe area; the default font is the Noto Sans family for the language found in the speech. Portrait video uses up to 3 words per caption, square 1, landscape 2 by default and up to 4. font_name takes any Google Fonts family the user names; with language, a font that cannot draw that language's script is refused before credits are charged. Identical requests within 10 minutes reuse the same job; set force_new only when the user wants another paid result.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"video_url": "<video_url>"
},
"name": "add_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | ISO-639 code, sent only when known. Speech language is detected automatically; this picks the font for Chinese, Japanese or Korean. | |
| position | No | Default: bottom. | |
| y_offset | No | Top and bottom: inward margin, 20 to 200. Center: pixels below the middle, -200 to 200. | |
| font_name | No | Exact Google Fonts family name, only when the user names a font; never choose one. Checked for the language's script before charging. Words in a script the font cannot draw use the matching Noto Sans family. | |
| font_size | No | Preferred size in pixels; kept within a safe range for the frame. | |
| force_new | No | An identical request submitted in the last 10 minutes returns that job without charging again; true generates it again. | |
| video_url | Yes | Video to caption. | |
| font_color | No | Default: white. | |
| font_weight | No | Default: bold. A font without the weight uses its nearest one. | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| stroke_color | No | Default: black. | |
| stroke_width | No | Outline in pixels, 0 for none. Default: 3. | |
| budget_project | No | Optional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project. | |
| highlight_color | No | Color of the word being spoken, the karaoke cue. Default: white. | |
| background_color | No | Box behind the text. Default: none. | |
| enable_animation | No | Bounce each caption in. Default: false. | |
| background_opacity | No | Default: 0.7. | |
| words_per_subtitle | No | Preferred most words per caption; limited by the frame shape. |