generate_and_download_video
Generate a video from text or image prompts and download it immediately. Supports various models, durations, and custom settings for instant video file retrieval.
Instructions
Generate a video and automatically download it. Polls for completion and returns the video file. Best for when you want the video data immediately.
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": {
"model": "<model>"
},
"name": "generate_and_download_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | CogVideoX-3 only: Frame rate | |
| size | No | Video resolution | |
| model | Yes | Video generation model to use | |
| style | No | Vidu Q1 text-to-video only: Style | |
| prompt | No | Text description of the video (max 512 characters) | |
| quality | No | CogVideoX-3 only: output mode | |
| user_id | No | Unique end user ID | |
| duration | No | Video duration in seconds | |
| max_wait | No | Maximum seconds to wait for video generation (default: 300) | |
| image_url | No | Image URL(s) for image-to-video generation | |
| with_audio | No | Whether to generate AI sound effects | |
| file_output | No | Absolute path to save the video file. Example: /path/to/video.mp4 | |
| aspect_ratio | No | Aspect ratio | |
| poll_interval | No | Seconds to wait between polling (default: 10, videos take longer than images) | |
| movement_amplitude | No | Vidu models only: Motion amplitude |