generate_video
Generates videos from text prompts via OpenRouter, polls asynchronously until complete, and downloads the video file to disk.
Instructions
Generate video from text prompt via OpenRouter (Veo, etc). Async — polls until complete, downloads video file.
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 |
|---|---|---|---|
| seed | No | Seed for deterministic output | |
| model | No | Model ID (default: google/veo-3.1) | |
| prompt | Yes | Text description of the video | |
| duration | No | Duration in seconds | |
| output_dir | No | Save directory (default: ./generated) | |
| resolution | No | 480p, 720p, 1080p, 2K, 4K | |
| aspect_ratio | No | 16:9, 9:16, 1:1, 4:3, 3:4 | |
| generate_audio | No | Generate audio track (default: false) |