stitch_video
Stitch multi-scene video
Description
Render a multi-scene STITCHED video (≥2 scenes) — ONLY for spots LONGER than ONE clip of the chosen model. A multi-beat ad that FITS one clip renders better and cheaper as ONE single-pass generate_video/render_ad (a single generation carries the whole hook->demo->payoff arc) — never stitch those. What fits is the model’s own maximum from hermoso_capabilities, not a fixed number: 15s on most models, 30s on the longest-clip one, so a 30s spot need not be stitched at all if you name that model. Blocks until done. Spends credits.
Parameters
| Parameter | Type | Description |
|---|---|---|
scenesrequired | object[] | array of scene objects (visual + optional voiceover/seconds) |
aspectRatio | string | output aspect ratio, e.g. 9:16 (default) / 1:1 / 16:9 |
voiceover | string | full voiceover script spoken across the scenes |
voice | string | voiceover voice name, e.g. Rachel / George |
resolution | string | 720p (default), 1080p for full detail, or 480p for a cheaper draft |
model | string | video model id from hermoso_capabilities — omit to let the router pick |
durationSeconds | number | total spot length in seconds (defaults to the sum of the scenes’ seconds) |
get_cost | boolean | true: return the price only; nothing runs or bills |
expected_credits | number | the get_cost price; refused unbilled if the live price differs |
idempotency_key | string | chosen 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/stitch_video.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"stitch_video","arguments":{"scenes":"<array>"}}}
CLI
hermoso call stitch_video --json '{"scenes":"<array>"}'
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.
Related tools
generate_videoGenerate videorender_adRender ad videohermoso_capabilitiesHermoso models, options and credit costsgenerate_avatarGenerate talking avatarget_jobGet render jobproduct_sizzleProduct sizzlemake_effectRun a one-click effect on a photoadvance_story_filmRun the next stage of a story filmstart_story_filmStart a story filmget_story_cardRead a story card recipe