The Wan Image-to-Video model accepts multimodal input (text, image, or audio) and generates videos up to 15 seconds long at 1080P resolution.
- Basic Settings: Supports integer video durations from 2 to 15 seconds, configurable video resolution (480P, 720P, or 1080P), smart prompt rewriting, and optional watermarking.
- Audio Capabilities: Supports automatic dubbing or uploading an audio file to achieve audio-visual synchronization. (Supported by Wan 2.5 and Wan 2.6)
- Multi-shot Narrative: Generates multi-shot videos while preserving subject consistency across shot transitions. (Supported by Wan 2.6 only)
- Video Effects: Includes built-in templates such as “Magic Float” and “Balloon Expand.” Use them directly.
Getting Started
| Input Prompt | Input First Frame Image | Output Video (Multi-shot, Audio Video) |
| The camera slowly moves up from below the turtle, which swims gracefully, its belly details clearly visible. | ![]() |
- Python SDK
- Java SDK
- curl
The video_url is valid for 24 hours. Download the video promptly.
Applicable scope
- The models supported vary by region, and resources are independent of each other. For the models supported in each region, see the Bailian console.
- When making calls, ensure 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 intelligent 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 youth painted with spray paint is coming to life from a concrete wall. He performs an English rap at a breakneck pace while striking a classic, energetic rapper pose. The scene is set under an urban railway bridge at night. The lighting comes from a single lonely streetlamp, creating a cinematic atmosphere full of high energy and stunning detail. The audio portion of the video consists entirely of rap, with no other dialogue or noise. | Input audio: |
- Python SDK
- Java SDK
- curl
Make sure the DashScope Python SDK version is no lower than 2.0.1. See Install SDK to update.
Achieving 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; a video with audio is output 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 youth painted with spray paint is coming to life from a concrete wall. He performs an English rap at a breakneck pace while striking a classic, energetic rapper pose. The scene is set under an urban railway bridge at night. The lighting comes from a single lonely streetlamp, creating a cinematic atmosphere full of high energy and stunning detail. The audio portion of the video consists entirely of rap, with no other dialogue or noise. | Input audio: |
- Python SDK
- Java SDK
- curl
Make sure the DashScope Python SDK version is no lower than 2.0.1. See Install SDK to update.
Generate silent videos
Supported models: wan2.6-i2v-flash, wan2.2 series models, and wanx2.1 series models.
Overview: Suitable for purely visual display scenarios that do not require audio, such as dynamic 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 as a silent video.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
Make sure the DashScope Python SDK version is no lower than 2.0.1. See Install SDK to update.
Use video effects
Supported models: wanx2.1-i2v-turbo and wanx2.1-i2v-plus.
Overview: No prompt is required. Simply use the built-in effect templates (such as "magic levitation" and "balloon inflation") to bring static images to life.
Parameter settings:
template: Required. Specifies the effect name (for example, "flying" for magic levitation). Before calling, check the video effects list to confirm that the model supports the effect, to avoid call failures.prompt: Ignored. When using effects, the prompt field is invalid; it is recommended to leave it empty or not pass it.
| Prompt | Input First Frame Image | Output video ("magic levitation" effect) |
| None | ![]() |
- Python SDK
- Java SDK
- curl
Make sure the DashScope Python SDK version is no lower than 2.0.1. See Install SDK to update.
How to input images and audio
Input an image
- Number of images: 1.
- Input methods: Image URL, local file path, or Base64-encoded string.
Method 1: Image URL (HTTP interface and SDK) Recommended
Method 1: Image URL (HTTP interface and SDK) Recommended
-
Public URL: Supports HTTP or HTTPS protocols.
- Example value: https://help-static-aliyun-doc.aliyuncs.com/xxx.png.
-
Temporary URL: Supports the OSS protocol. You must upload a file to obtain a temporary URL.
- Example value: oss://dashscope-instant/xxx/xxx.png.
Method 2: Local file path (SDK only)
Method 2: Local file path (SDK only)
Operating system | Input file path | 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 | Input file path | 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 interface and SDK)
Method 3: Base64-encoded string (HTTP interface and SDK)
-
Example value:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDg......(The example is truncated for demonstration purposes only). -
Format requirements: Follow the
data:{MIME_type};base64,{base64_data}format, where:- {base64_data}: The Base64-encoded string of the image file.
-
{MIME_type}: The Multipurpose Internet Mail Extensions (MIME) type of the image. It must correspond to the file format.
Image format
MIME Type
JPEG
image/jpeg
JPG
image/jpeg
PNG
image/png
BMP
image/bmp
WEBP
image/webp
Example code: Three input methods
Input Audio
- Number of audio files: One.
-
Input methods:
- Public URL: Supports the HTTP or HTTPS protocol.
- Temporary URL: Supports the OSS protocol. You must upload a file to obtain a temporary URL.
Output video
- Number of videos: 1.
- Output video specifications: Output specifications vary by model. For more information, see Scope.
- Output video URL validity period: 24 hours.
-
Output video dimensions: Dimensions depend on the input image and the configured
resolution.- The model attempts to maintain the input image’s aspect ratio while scaling it to a total pixel count near the target value. To comply with encoding standards, the width and height must be multiples of 16. The model automatically fine-tunes the dimensions.
- For example: For an input image of 750 × 1000 pixels (aspect ratio 3:4 = 0.75) with resolution set to “720P” (target pixel count of about 920,000), the final output might be 816 × 1104 pixels (aspect ratio ≈ 0.739, total pixels ≈ 900,000). Both the width and height are multiples of 16.
Billing and throttling
- For the model’s free quota and pricing, see Model pricing.
- For model throttling, see Wan series.
-
Billing details:
- Inputs are not billed. Outputs are billed based on the duration in seconds of successfully generated videos.
- Failed model invocations or processing faults do not incur any fees and do not consume the free quota for new users.
- Image-to-video also supports savings plans.
API reference
Image-to-video (first frame) API reference
FAQ
Q: Why can’t I set the video aspect ratio directly (such as 16:9)?
A: The current API does not support setting the video aspect ratio directly. You can only configure the video resolution using the resolution parameter.
The resolution parameter controls the total number of pixels—not a fixed aspect ratio. The model preserves the original aspect ratio of the first input frame (approximately) and then fine-tunes it to meet video encoding requirements. Specifically, both the width and height must be multiples of 16.
Q: Why does the SDK code return “url error, please check url!”?
A: Make sure that:
- Your DashScope Python SDK version is at least 2.0.1.
- Your DashScope Java SDK version is at least
2.22.6.


