Extend video
extend_videoExtend an existing completed video node with a continuation. prompt describes what happens next; pass endNodeId (a completed image node) to steer toward an end frame. modelKey comes from list_models (a video model) and durationSeconds must be one that model supports. Spends credits; use estimate_cost first if unsure. Returns immediately with a new nodeId and status, plus the parent node it extended so you can confirm it was the right one; poll get_generation_status until it is COMPLETED or FAILED. If the user's intent is ambiguous across branches, call get_thread and ask which node before spending credits.
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": {
"threadId": "<threadId>",
"nodeId": "<nodeId>",
"prompt": "<prompt>",
"modelKey": "<modelKey>",
"durationSeconds": "<durationSeconds>"
},
"name": "extend_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Completed video node to extend. | |
| prompt | Yes | What happens next in the video. | |
| modelKey | Yes | Video model key from list_models. | |
| threadId | Yes | Thread containing the node. | |
| endNodeId | No | Optional completed image node to use as the end frame. | |
| resolution | No | Resolution. Defaults to 480p. | |
| aspectRatio | No | Aspect ratio. Defaults to auto. | |
| sourceFileIds | No | Optional extra input image file ids. | |
| durationSeconds | Yes | Clip length in seconds; must be supported by the model. |