wan_generate_video
Generate AI videos from text prompts using Wan text-to-video, returning task ID and video URLs for creation workflows.
Instructions
Generate AI video from a text prompt using Wan text-to-video model.
This uses the wan2.6-t2v model to create video from text descriptions.
For creating video from images, use wan_generate_video_from_image instead.
Returns:
Task ID and generated video information including URLs and state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional random seed. | |
| size | No | The size of the generated video (e.g., '1280x720'). | |
| audio | No | Whether the generated video should include audio. Default is false. | |
| media | No | Optional media inputs with a type and URL, supported by wan3.0-video. | |
| model | No | Wan model to use. Default: 'wan2.6-t2v'. | wan2.6-t2v |
| ratio | No | Video aspect ratio. Options include 'adaptive', '16:9', and '9:16'. | |
| prompt | Yes | Description of the video to generate. Be descriptive about the scene, motion, style, and mood. | |
| duration | No | Video duration in seconds. Use 2-30, or -1 when supported by the model. | |
| audio_url | No | URL of reference audio to use in the video. Only used when audio is enabled. | |
| watermark | No | Whether to add a watermark. Default is false. | |
| resolution | No | Video resolution. Options: '480P', '720P' (default), '1080P'. | 720P |
| callback_url | No | Webhook callback URL for asynchronous notifications. When provided, the API will call this URL when the video is generated. | |
| prompt_extend | No | Enable LLM-based prompt rewriting for better results. Default is false. | |
| negative_prompt | No | Content to exclude from the video. Maximum 500 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |