generate_video
Creates MP4 videos from text prompts or animates a local image guided by a prompt, with configurable resolution, frame count, and seed.
Instructions
Generate a video from a text prompt, or animate input_image (a local image path) guided by the prompt.
Default model: Wan 2.2 TI2V 5B at 1280x704, 49 frames (about 2 s) at 24 fps, 20 steps, MP4 (H.264). frames must be 4n+1 (rounded down otherwise), up to 121 (5 s). Expect several minutes per clip on this GPU; longer clips and higher resolutions take proportionally longer. Returns the MP4 path, seed, settings, timings and the effective backend idle timeout.
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 |
|---|---|---|---|
| fps | No | ||
| seed | No | ||
| model | No | ||
| steps | No | ||
| width | No | ||
| frames | No | ||
| height | No | ||
| prompt | Yes | ||
| output_dir | No | ||
| input_image | No | ||
| negative_prompt | No | ||
| idle_timeout_seconds | No |