wan_generate_video_from_image
Generate an AI video from a reference image using Wan image-to-video models. Returns a task ID and video URLs for text-to-video or character reference workflows.
Instructions
Generate AI video from a reference image using Wan image-to-video models.
This supports three models:
- wan2.6-i2v: Standard image-to-video generation
- wan2.6-r2v: Reference video-to-video with character/timbre extraction
- wan2.6-i2v-flash: Fast image-to-video generation
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-i2v'. | wan2.6-i2v |
| ratio | No | Video aspect ratio. Options include 'adaptive', '16:9', and '9:16'. | |
| prompt | Yes | Description of the video motion and content. Describe what should happen in the video. | |
| 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. | |
| image_url | Yes | URL of the reference image for video generation. The video will be generated based on this image. | |
| shot_type | No | Shot type: 'single' for continuous shot, 'multi' for multi-cut editing. | |
| 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. | |
| prompt_extend | No | Enable LLM-based prompt rewriting. Default is false. | |
| negative_prompt | No | Content to exclude from the video. Maximum 500 characters. | |
| reference_video_urls | No | JSON array of reference video URLs for character/timbre extraction. Used with the wan2.6-r2v model. Pass each URL as a separate array item; never join URLs with commas and never JSON-stringify the array. Legacy comma-separated strings are still accepted for backward compatibility. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |