Image to video
image_to_videoAnimate an existing completed image node into a video. The node is used as the start frame; pass endNodeId (another completed image node) to interpolate between two frames. 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; poll get_generation_status until it is COMPLETED or FAILED.
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": "image_to_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Completed image node to use as the start frame. | |
| prompt | Yes | How the image should move. | |
| 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 (interpolation). | |
| 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. |