Generate a video clip
generate_videoRender a clip and return a run id. Text-to-video, or image-to-video by passing image_url. Several models produce native audio — set generate_audio and check list_models for which support it. Takes minutes; poll get_run_status.
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": {
"prompt": "<prompt>",
"model": "<model>"
},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| model | Yes | Required. Video models differ sharply in price and length — read list_models first. | |
| prompt | Yes | The shot: subject, action, framing, light. | |
| duration | No | Seconds. Each model allows only specific values; list_models gives them. | |
| image_url | No | Source frame for image-to-video. Required by i2v models. | |
| image_urls | No | Reference images for reference-to-video models. | |
| resolution | No | From the model's declared resolutions. | |
| aspect_ratio | No | 9:16 | |
| end_image_url | No | Final frame, for models that interpolate. | |
| generate_audio | No | Native audio where the model supports it. Priced higher — quote first. | |
| negative_prompt | No |