generate_video
Generate a video from a text prompt with an optional first-frame image URL, returning a video URL for text-to-video workflows.
Instructions
Generate a video from a text prompt (optional first-frame image_url).
Blocks until the task finishes or timeout (seconds). Returns video_url. Video rendering is slow; if the host may time out, use submit_video_task
get_video_task instead.
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>"
},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| model | No | wan2.2-t2v-plus | |
| ratio | No | ||
| prompt | Yes | ||
| timeout | No | ||
| duration | No | ||
| image_url | No | ||
| resolution | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |