extend_video
Continue an existing video asset from its last frame by adding a new clip while keeping the original. Provide a prompt for what happens next and call again to extend further.
Instructions
Make a new clip that continues an existing video asset from its last frame, added to that asset as an extension (the original clip is kept). For a brand-new clip use generate_video. 15 credits per second (60 for the default 4 s), charged on every call and refunded if it fails; a run usually takes minutes and returns a job for check_generation. Returns the new clip's MP4 link; call again to keep going, since an empty video continues from the latest extension.
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": {
"assetId": "<assetId>",
"prompt": "<prompt>"
},
"name": "extend_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video | No | Which clip to continue: a file key from get_asset's 'Video extensions' line or the asset's own file. Empty (default) = the latest extension, or the original clip if it has none | |
| width | No | Width in px (default 1280). Match the clip being continued: 1280x720 for 16:9, 720x1280 for 9:16 | |
| height | No | Height in px (default 720). See width | |
| prompt | Yes | What happens next, starting from the clip's last frame, e.g. 'the knight charges toward the camera' | |
| assetId | Yes | The video asset to continue (from generate_video, list_assets type 'video' or get_asset) | |
| duration | No | Length of the new clip in seconds, 4-15 (default 4). Cost is 15 credits per second |