Edit video
edit_videoChange an existing video from a written instruction ("make it winter, add falling snow"). Point at the source with job_id (a clip this connector made earlier) or a public video_url. It takes a source of 3-30 seconds, at least 700 px on each side. The default editor bills the source plus the equally long edited clip, about 23 credits per second of source at 720p (a 5-second clip costs about 113 credits) against the workspace's Masonry balance (list_models has exact per-model prices), and takes about 1-5 minutes. To change what a person in the clip says, pass speech_job_id instead of an instruction: the clip is lip-synced to that recording and nothing else changes. To put a different person into the clip, pass image_url of that person (mode motion makes the image's character perform the clip's motion). Changing a real person's words or face is meant for the user's own image, or someone who has agreed to it, and the result is not real footage of them. 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. Call list_skills and pass skill_slug when relevant; write prompt from the user's request. Omit model to use a video-editing model.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "edit_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | With image_url only: swap (default; the image's person replaces the one in the video) or motion (the image's character performs the video's motion). | |
| model | No | Optional video-editing model key (see list_models, kind=video). Defaults to a video-editing model. | |
| job_id | No | The video to edit: job_id of a prior video generation, a render job_id (render:...) or a media_id from add_media. Provide this OR video_url. | |
| prompt | No | Edit instruction for the source video, e.g. 'make it winter, add falling snow'. | |
| options | No | Optional model-specific settings by name, for example swap_mode to swap a product instead of a person. Only settings the chosen model has; a wrong name is refused with the list it accepts. | |
| image_url | No | Optional image of a new person or character to put into the source video: a direct https image URL or masonry:// reference (masonry://generations/<job_id>). The clip keeps its cuts, motion and sound with that person in it. With mode motion, the image's character performs the video's motion instead. | |
| video_url | No | Public https URL (or masonry:// reference) of the source video to edit. Provide this OR job_id. | |
| skill_slug | No | Optional Masonry skill slug from list_skills. Uses the selected skill for provenance and model routing only; skill text is guidance, and the prompt describes the user's request. | |
| speech_job_id | No | Optional speech to lip-sync the person in the source video to, keeping the picture and motion: the job_id of a generate_audio speech job, or an add_media media_id of a recording. The default model takes clips of 2-10 seconds and at least 720 px. With it, prompt is not used. |