The Wan-I2V model supports multimodal input (text/image/audio) and can generate videos up to 15 seconds in length at 1080P resolution.
- Basic settings: Supports integer-level video duration (2 to 15 seconds), specified video resolution (480P/720P/1080P), intelligent prompt rewriting, and adding watermarks.
- Audio capabilities: Supports automatic dubbing or audio upload to achieve audio-visual synchronization. (Supported by wan2.5 and wan2.6)
- Multi-shot narrative: Can generate videos containing multiple shots, keeping the subject consistent across shot transitions. (Only supported by wan2.6)
QuickStart
| Input prompt | Input first-frame image | Output video (multi-shot, with audio) |
| The camera slowly moves up from beneath the sea turtle, which swims leisurely with the details of its belly clearly visible. | ![]() |
- Python SDK
- Java SDK
- curl
video_url is valid for 24 hours. Please download the video in time.
Scope of application
- The models supported vary by region, and resources are independent of each other. For the models supported in each region, see the Model Studio console.
- When making calls, make sure that the model, Endpoint URL, and API Key all belong to the same region; cross-region calls will fail.
Core capabilities
Creating multi-shot videos
Supported models: wan2.6 series models.
Overview: The model can automatically switch between shots, for example from a wide shot to a close-up, making it suitable for scenarios such as MV production.
Parameter settings:
shot_type: must be set to"multi".prompt_extend: must be set totrue(enables smart rewriting to optimize shot descriptions).
| Input prompt | Input first-frame image | Output video (wan2.6, multi-shot video) |
| An urban fantasy art scene. A dynamic graffiti art character. A teenager painted with spray paint is coming to life from a concrete wall. While performing an English rap at an extremely fast pace, he strikes a classic, energetic rapper pose. The scene is set at night under an urban railway bridge. The lighting comes from a lone street lamp, creating a cinematic atmosphere full of high energy and stunning details. The audio portion of the video consists entirely of rap, with no other dialogue or noise. | Input audio: |
- Python SDK
- Java SDK
- curl
Please ensure that the DashScope Python SDK version is 2.0.1 or later. For updates, see Install SDK.
Achieve audio-visual synchronization
Supported models: wan2.5 and wan2.6 series models.
Overview: Make the person in a photo speak or sing, with lip movements matched to the audio. For more examples, see Video voice generation.
Parameter settings:
- Provide an audio file: Pass in
audio_url. The model aligns lip movements with the audio file. - Automatic dubbing: No need to pass in
audio_url; the output is a video with audio by default. The model automatically generates background sound effects, music, or vocals based on the visuals.
| Input prompt | Input first-frame image | Output video (video with audio) |
| An urban fantasy art scene. A dynamic graffiti art character. A teenager painted with spray paint is coming to life from a concrete wall. While performing an English rap at an extremely fast pace, he strikes a classic, energetic rapper pose. The scene is set at night under an urban railway bridge. The lighting comes from a lone street lamp, creating a cinematic atmosphere full of high energy and stunning details. The audio portion of the video consists entirely of rap, with no other dialogue or noise. | Input audio: |
- Python SDK
- Java SDK
- curl
Please ensure that the DashScope Python SDK version is 2.0.1 or later. For updates, see Install SDK.
Generate silent videos
Supported models: wan2.6-i2v-flash, wan2.2 series models, wan2.1 series models.
Overview: Suitable for purely visual display scenarios that do not require audio, such as animated posters and silent short videos.
Parameter settings:
wan2.6-i2v-flash: Generates videos with audio by default. To generate a silent video, you must explicitly setaudio=false. Even ifaudio_urlis passed in, as long asaudio=false, the output is still a silent video and is billed under silent video billing.wan2.2 and earlier series models: Generate silent videos by default; no additional configuration is required.
| Prompt | Input first-frame image | Output video (silent video) |
| A cat running on the grass | ![]() |
- Python SDK
- Java SDK
- curl
Please ensure that the DashScope Python SDK version is 2.0.1 or later. For updates, see Install SDK.
How to provide images and audio
Provide an image
- Number of images: 1.
- Input methods: Image URL, local file path, or Base64-encoded string.
Method 1: Image URL (HTTP API, SDK) (Recommended)
Method 1: Image URL (HTTP API, SDK) (Recommended)
-
Public URL: Supports HTTP or HTTPS protocols.
- Sample value: https://help-static-aliyun-doc.aliyuncs.com/xxx.png.
Method 2: Local file path (SDK only)
Method 2: Local file path (SDK only)
Operating system | File path to pass in | Example (absolute path) | Example (relative path) |
|---|---|---|---|
Linux / macOS | file://{absolute or relative path of the file} | file:///home/images/test.png | file://./images/test.png |
Windows | file://D:/images/test.png | file://./images/test.png |
Operating system | File path to pass in | Example (absolute path) |
|---|---|---|
Linux / macOS | file://{absolute path of the file} | file:///home/images/test.png |
Windows | file:///{absolute path of the file} | file:///D:/images/test.png |
Method 3: Base64-encoded string (HTTP API, SDK)
Method 3: Base64-encoded string (HTTP API, SDK)
-
Sample value:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDg......(truncated for demonstration only). -
Format requirements: Follow the
data:{MIME_type};base64,{base64_data}format, where:- {base64_data}: The string obtained by Base64-encoding the image file.
-
{MIME_type}: The media type of the image, which must match the file format.
Image format
MIME Type
JPEG
image/jpeg
JPG
image/jpeg
PNG
image/png
BMP
image/bmp
WEBP
image/webp
Sample code: three input methods
Input audio
- Number of audio files: 1.
-
Input method:
- Public URL: HTTP or HTTPS protocols are supported.
Output video
- Number of videos: 1.
- Output video specifications: Supported output specifications vary by model. See Applicable scope.
- Output video URL validity: 24 hours.
-
Output video dimensions: Determined by the input image and the set resolution
resolution.- The model tries to keep the aspect ratio of the input image unchanged while scaling to a total pixel count close to the target. Due to encoding specifications, width and height must be divisible by 16, and the model automatically fine-tunes the dimensions.
- For example: with an input image of 750×1000 (aspect ratio 3:4 = 0.75) and resolution set to "720P" (target total pixels of about 920,000), the final output may be 816 × 1104 (aspect ratio ≈ 0.739, total pixels ≈ 900,000), with both width and height being multiples of 16.
Billing and rate limits
- For model free quotas and billing unit prices, see Model Price.
- For model rate limits, see Wan series.
-
Billing details:
- Input is not billed; output is billed. Billing is based on the video seconds of successfully generated videos.
- Failed model calls or processing errors incur no fees and do not consume the new-user free quota.
- I2V also supports the savings plan.
API docs
I2V - first-frame-based API reference
FAQ
Q: Why can't I directly set the video aspect ratio (such as 16:9)?
A: The current API does not support directly specifying the video aspect ratio. You can only set the video resolution through the resolution parameter.
resolution controls the total number of pixels in the video, not a fixed ratio. The model prioritizes preserving the original aspect ratio of the input first-frame image (approximately) and makes minor adjustments on this basis to meet the video encoding requirements (that is, both the width and height must be multiples of 16).
Q: Why does the "url error, please check url!" error occur when I run SDK code?
A: Please ensure:
- The DashScope Python SDK version is 2.0.1 or later.
- The DashScope Java SDK version is
2.22.6or later.


