Stitch Clips
stitch_clipsStitch 1 to 25 existing images and video clips, in order, into one video. This edits media you already have and does not generate footage. Costs 2 credits for the first clip plus 1 per additional clip. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically.
Each image needs duration_seconds; each video plays in full with its own audio unless include_audio=false. Optional audio {url, start_delay_seconds} is mixed over the clips' audio. The output lasts until the later of the pictures and the delayed audio; if the audio runs longer, the last frame holds. The first video sets the output size; with images only, the first image does, capped near 1080p. content_fit=contain keeps everything with black bars; cover center-crops to fill.
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": {
"clips": "<clips>"
},
"name": "stitch_clips"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio | No | Optional audio to mix over the clips. | |
| clips | Yes | Clips in playback order. | |
| force_new | No | An identical request submitted in the last 10 minutes returns that job without charging again; true generates it again. | |
| content_fit | No | Default: contain. | |
| 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. | |
| 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. |