hermosodocs

add_subtitles

Add subtitles to a video

Area: THREE BUILT LANES · Creative generation. Generated from the running MCP server, like the rest of the tool reference.

Description

Burn subtitles into ANY video and get the .srt too; nothing is cut or re-rendered. Set textStyle only when the user describes a look (default: white sentence case, thin outline, bottom). Timed by the spoken words (up to 5 words a line); auto:'sentences' times per sentence. Only when asked, textStyle 'highlight' (or a highlightColor) lights the word being said, timed word by word. Or pass cues to burn your own lines exactly, untranscribed (reel-style phrases, *stage directions*). burn:false returns only the .srt. Takes a video file or URL, a Vimeo-style page, or a TikTok / Reel / X post link (not YouTube: YouTube does not let us download videos, so upload the file). No speech is refused and refunded. Runs in the background and lands in the Library.

Parameters

ParameterTypeDescription
videorequiredstringthe video to subtitle; a URL, not a local file path; use upload_file for local files
textStylestring | objectthe look: words, a preset or fields; omit for the default
textStyle.presetstring
textStyle.describestringthe look in words
textStyle.fontstringsans|serif|elegant|condensed|hand or any Google Fonts family
textStyle.subFontstring
textStyle.weightnumber
textStyle.sizestring | numbers|m|l|xl, '120px', or a 0.015-0.15 frame fraction
textStyle.colorstringany CSS colour
textStyle.outlineColorstring
textStyle.backgroundstringnone|pill|a colour
textStyle.positionstring | numbertop|center|lower|bottom or 0.05-0.95 from the top
textStyle.textCase"as-is" | "upper" | "lower" | "title"
textStyle.italicboolean
textStyle.subItalicboolean
textStyle.outlineboolean
textStyle.shadowboolean
textStyle.tiltnumberdegrees, ±45
textStyle.cardColorstring
textStyle.highlightColorstringword-timed subtitles only: the word being said is lit in this colour (preset highlight sets it)
burnbooleanfalse = only the .srt
auto"sentences" | "words"words (default) or sentences: timing unit for transcribed subtitles
wordsPerCuenumberwords per subtitle line when timed by words
cuesobject[]your own lines in seconds, no overlap, max 90 chars, no emoji
cues[].textrequiredstringsubtitle line text, max 90 characters, no emoji
cues[].startrequirednumbersecond the line appears
cues[].endrequirednumbersecond the line disappears
scriptstringthe words actually spoken, when you have them: the subtitles then use these words and take only the timing from the audio (a video we rendered already knows its script)
get_costbooleantrue: return the price only; nothing runs or bills
expected_creditsnumberthe get_cost price; refused unbilled if the live price differs
idempotency_keystringchosen once, resent unchanged on retries: the same key never buys twice

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/add_subtitles.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"add_subtitles","arguments":{"video":"<string>"}}}

CLI

hermoso call add_subtitles --json '{"video":"<string>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 102 Creative generation tools · tools.json