Combine clips
combine_clipsEdit finished clips into one video (1-60 clips, up to 180 seconds), using the job_ids generate_video, animate_image, edit_video and generate_image returned (an image is held as a still). The user's own footage or audio works too: bring it in with add_media and pass its media_id as the job_id. Beyond joining and trimming it is the whole edit in one call: voiceover (generate_audio speech) with the clips and music lowered under it, music_job_id, sound_effects at exact seconds, captions timed to the spoken words, and on-screen text such as a hook or a call to action. Defaults to cuts and the first clip's aspect; each clip can take a motion (zoom_in, zoom_out, pan_left, pan_right, pan_up, pan_down, punch_in or none), a still defaulting to a slow zoom in. Spends render credits, separate from what the clips cost: at least 1 credit on success, by render compute time, not video length; admission reserves an estimate. Waits for the clip and returns it in the conversation; if it is still rendering when the wait ends, the reply carries a job_id: the job keeps running and check_generation returns its result. Starting the same job again makes and bills a second one.
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": "combine_clips"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Optional on-screen text: up to 20 titles, hooks, labels or calls to action. | |
| clips | Yes | Ordered list of 1-60 completed clips. The total length after trimming can be at most 180 seconds. | |
| title | No | Optional title for the combined video. | |
| aspect | No | Optional output aspect ratio, e.g. 16:9, 9:16, 1:1. Defaults to the first clip's aspect. | |
| captions | No | Optional burned-in captions timed to the spoken words. Masonry transcribes the voiceover or the clips for the timings, which costs a few credits. | |
| voiceover | No | Optional narration: up to 20 generate_audio speech jobs placed on the timeline. The clips' own sound is lowered under it. A narration that ends more than 1.5 seconds after the last clip is refused, with the seconds of footage that are missing. | |
| music_role | No | How music_job_id plays. background (default): quietly under the clips' own sound, dialogue and voiceover. lead: the music is the soundtrack at full volume and the clips' sound is muted; use it for a song with lyrics, a music video or a dance video. | |
| transition | No | Transition between clips: cut (default; preserves timing and dialogue), crossfade, fade_black, slide_left, slide_up, zoom_in, whip, or flash. Non-cut transitions overlap by up to 0.3 seconds. | |
| music_job_id | No | Optional completed audio job_id from generate_audio (music or a song). | |
| sound_effects | No | Optional sound effects: up to 30 generate_audio sfx jobs, each at a second on the timeline. |