Edit a video
edit_videoEdit an existing video clip (MP4, up to 15 seconds, 50 MB) following instructions: put the person from a photo into the clip, change outfit, style, background or scene, while keeping the motion and timing. Costs credits (based on clip length). Returns a task_id; poll get_video.
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": {
"video_url": "<video_url>",
"prompt": "<prompt>"
},
"name": "edit_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What to change, e.g. "Replace the dancer with the person in image 1, keep the moves". | |
| video_url | Yes | Public https URL of the MP4 clip to edit. | |
| image_urls | No | Optional reference photos, referred to as image 1, image 2… in the prompt. |