generate_video
Generate videos from text descriptions or image inputs using various AI models. Supports multiple resolutions, durations, and styles, returning a task ID for asynchronous retrieval of results.
Instructions
Generate a video asynchronously from text or images. Returns a task ID to poll for results. Supports multiple models: CogVideoX-3 (text/image/start-end frame), Vidu Q1 (1080P), Vidu 2 (720P, faster).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | CogVideoX-3 only: Frame rate (30 or 60) | |
| size | No | Video resolution (e.g., "1920x1080", "1280x720"). Model-specific defaults apply. | |
| model | Yes | Video generation model to use | |
| style | No | Vidu Q1 text-to-video only: Style of the video | |
| prompt | No | Text description of the video (max 512 characters). Required for text-to-video models. | |
| quality | No | CogVideoX-3 only: "quality" for higher quality, "speed" for faster generation | |
| user_id | No | Unique end user ID for abuse prevention (6-128 characters) | |
| duration | No | Video duration in seconds. Model-specific: CogVideoX-3: 5 or 10, Vidu Q1: 5, Vidu 2: 4 | |
| image_url | No | Image URL(s) for image-to-video generation. Single URL or array of URLs for start-end frame/reference images. | |
| with_audio | No | Whether to generate AI sound effects (CogVideoX-3, Vidu 2) | |
| aspect_ratio | No | Vidu Q1 text/reference only: Aspect ratio | |
| movement_amplitude | No | Vidu models only: Motion amplitude |