All Products
Search
Document Center

Alibaba Cloud Model Studio:Wanx-I2V First Frame API Reference (2.1-2.6)

Last Updated:Nov 24, 2026

The Wanx-I2V model generates a smooth video based on the first frame image and a text prompt.

Related documents: User Guide

NoteThe newly launched Wanx2.7-I2V supports three major tasks: first-frame video generation, first-and-last-frame video generation, and video extension. We recommend that you prioritize it.

The I2V First Frame (wan2.6 and earlier models) described in this document supports only first-frame video generation.

Scope

To ensure successful calls, make sure that the model, endpoint URL, and API Key belong to the same region. Cross-region calls will fail.

NoteThe sample code in this document applies to the Singapore region.

ImportantAlibaba Cloud Model Studio provides workspace-dedicated domains for the North China 2 (Beijing) and Singapore regions, which deliver superior performance and higher stability for inference requests. We recommend that you migrate to the new domains:

  • North China 2 (Beijing) region: migrate from https://dashscope.aliyuncs.com to https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com
  • Singapore region: migrate from https://dashscope-intl.aliyuncs.com to https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com

{WorkspaceId} is your workspace ID, which you can view on the Workspace Details page in the Alibaba Cloud Model Studio console. The existing domains remain available.

HTTP calls

I2V tasks are time-consuming (usually 1 to 5 minutes), so the API uses asynchronous calls. The entire process consists of two core steps: "Create a task -> poll for results", as follows:

Step 1: Create a task to obtain the task ID

Singapore

POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis

Virginia

POST https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis

Beijing

POST https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis

Frankfurt

POST https://{WorkspaceId}.eu-central-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis

When you call the API, replace {WorkspaceId} with your actual workspace ID.

Note

  • After the task is created, use the task_id returned by the API to query the result. The task_id is valid for 24 hours. Do not create the task repeatedly; poll for the result instead.
  • For a quick start guide, see Postman.

Request parameters

Request headers

Content-Typestring(required)

The request content type. This parameter must be set to application/json.

Authorizationstring(required)

Request authentication. The API uses the Alibaba Cloud Bailian API Key for authentication. Example value: Bearer sk-xxxx.

X-DashScope-Asyncstring (Required)

Asynchronous processing configuration parameter. HTTP requests only support asynchronous calls, and it must be set toenable.

ImportantIf this request header is missing, an error will be reported: "current user api does not support synchronous calls".

Request Body

model string (Required)

Model name. For the model list and prices, see Model Price.

Example value: wan2.6-i2v-flash.

input object (Required)

Basic input information, such as the prompt.

Property

prompt string (Optional)

Text prompt. Used to describe the elements and visual features expected in the generated image.

Supports Chinese and English. Each Chinese character or letter counts as one character, and any excess is automatically truncated. The length limit varies by model version:

  • For wan2.6 and wan2.5 series models: no more than 1500 characters.
  • For wan2.2 and wan2.1 series models: no more than 800 characters.

Example value: A little cat running on the grass.

For prompt usage tips, see T2V/I2V Prompt Guide.

negative_prompt string (Optional)

Negative prompt, used to describe content you do not want to see in the video, which can constrain the video output.

Supports Chinese and English, with a length of no more than 500 characters; any excess is automatically truncated.

Example value: low resolution, error, worst quality, low quality, incomplete, extra fingers, bad proportions, etc.

img_url string (Required)

The URL or Base64-encoded data of the first frame image.

Image limits:

  • Image format: JPEG, JPG, PNG (transparent channels not supported), BMP, WEBP.

  • Image resolution: the image width and height range is [240,8000], in pixels.

  • File size:

    • wan2.6 and wan2.5 series models: no more than 20MB.
    • wan2.2 and wan2.1 series models: no more than 10MB.

Supported input formats:

  1. Public URL:

  2. Base64-encoded image string:

    • Data format: data:{MIME_type};base64,{base64_data}.
    • Example value: data:image/png;base64,GDU7MtCZzEbTbmRZ...... (The encoded string is too long; only a fragment is shown.)
    • For more information, see Pass in an image.

audio_url string (optional)

Supported models: wan2.6 and wan2.5 series models.

The URL of the audio file. The model will use this audio to generate the video.

Supported input formats:

  1. Public URL:

Audio limits:

  • Format: wav or mp3.
  • Duration: 3 to 30s.
  • File size: no more than 15MB.
  • Handling of exceeding limits: If the audio length exceeds the duration value (5 or 10 seconds), the first 5 or 10 seconds are automatically captured and the rest is discarded. If the audio length is shorter than the video duration, the portion beyond the audio length will be a silent video. For example, if the audio is 3 seconds and the video duration is 5 seconds, the first 3 seconds of the output video have sound and the last 2 seconds are silent.

Example value: https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/ozwpvi/rap.mp3.

parameters object (optional)

Video processing parameters, such as setting the video resolution, setting the video duration, enabling intelligent prompt rewriting, adding a watermark, and more.

Property

resolution string (optional)

Importantresolution directly affects the fee. Confirm the Model Price before you make a call.

Specifies the video resolution tier for generation, which adjusts the video clarity (total pixels). Based on the selected resolution tier, the model automatically scales to a similar total pixel count. The video aspect ratio will try to stay consistent with the aspect ratio of the input image img_url. For more information, see FAQ.

The default value and available enumeration values of this parameter depend on the model parameter, as follows:

  • wan2.6-i2v-flash: Valid values: 720P, 1080P. Default value: 1080P.
  • wan2.6-i2v: Valid values: 720P, 1080P. Default value: 1080P.
  • wan2.5-i2v-preview: Valid values: 480P, 720P, 1080P. Default value: 1080P.
  • wan2.2-i2v-flash: Valid values: 480P, 720P. Default value: 720P.
  • wan2.2-i2v-plus: Valid values: 480P, 1080P. Default value: 1080P.
  • wan2.1-i2v-turbo: Valid values: 480P, 720P. Default value: 720P.
  • wan2.1-i2v-plus: Valid value: 720P. Default value: 720P.

Example value: 1080P.

duration integer (optional)

Importantduration directly affects the fee. Confirm the Model Price before you make a call.

The duration of the generated video, in seconds. The value of this parameter depends on the model parameter:

  • wan2.6-i2v-flash: The value is an integer in [2, 15]. Default value: 5.
  • wan2.6-i2v: The value is an integer in [2, 15]. Default value: 5.
  • wan2.5-i2v-preview: Valid values: 5, 10. Default value: 5.
  • wan2.2-i2v-plus: Fixed at 5 seconds and cannot be modified.
  • wan2.2-i2v-flash: Fixed at 5 seconds and cannot be modified.
  • wan2.1-i2v-plus: Fixed at 5 seconds and cannot be modified.
  • wan2.1-i2v-turbo: Valid values: 3, 4, or 5. Default value: 5.

Example value: 5.

prompt_extendboolean (optional)

Whether to enable intelligent prompt rewriting. When enabled, a large language model is used to intelligently rewrite the input prompt. It significantly improves the generation results for short prompts, but increases the processing time.

  • true: Default value. Intelligent rewriting is enabled.
  • false: Intelligent rewriting is disabled.

Example value: true.

shot_type string (optional)

Supported models: wan2.6 series models.

Specifies the shot type of the generated video, that is, whether the video consists of one continuous shot or multiple switching shots.

Effective condition: Only effective when "prompt_extend": true.

Parameter priority: shot_type > prompt. For example, if shot_type is set to "single", even if the prompt contains "generate a multi-shot video", the model still outputs a single-shot video.

Valid values:

  • single: Default value, outputs a single-shot video.
  • multi: Outputs a multi-shot video.

Example value: single.

NoteWhen you want to strictly control the narrative structure of the video (for example, single-shot for product showcases, multi-shot for story short films), you can specify it through this parameter.

audio boolean (optional)

ImportantThe audio parameter directly affects the fee. Videos with audio and silent videos are priced differently. Go to the Model Studio console to check the prices.

Supported models: wan2.6-i2v-flash.

Whether to generate a video with audio.

Parameter priority: audio > audio_url. When audio=false, even if audio_url is passed in, the output is still a silent video, and billing is based on silent videos.

Valid values:

  • true: Default value, outputs a video with audio.
  • false: Outputs a silent video.

Example value: true.

watermark boolean (optional)

Whether to add a watermark. The watermark is located in the lower-right corner of the video, with fixed text "AI-generated".

  • false: Default value, no watermark added.
  • true: Adds a watermark.

Example value: false.

seedinteger(optional)

Random number seed, with a value range of [0, 2147483647].

If not specified, the system automatically generates a random seed. To improve the reproducibility of generation results, it is recommended to fix the seed value.

Note that model generation is probabilistic, so even with the same seed, the generation results are not guaranteed to be identical each time.

Example value: 12345.

Multi-shot narrative

Only wan2.6 series models support this feature.

Can be enabled by setting "prompt_extend": true and "shot_type":"multi".

# The following URL is for the Singapore region. Replace {WorkspaceId} with your actual workspace ID. URLs differ by region.

curl --location 'https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
    -H 'X-DashScope-Async: enable' \
    -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
    -H 'Content-Type: application/json' \
    -d '{
    "model": "wan2.6-i2v-flash",
    "input": {
        "prompt": "一幅都市奇幻艺术的场景。一个充满动感的涂鸦艺术角色。一个由喷漆所画成的少年,正从一面混凝土墙上活过来。他一边用极快的语速演唱一首英文rap,一边摆着一个经典的、充满活力的说唱歌手姿势。场景设定在夜晚一个充满都市感的铁路桥下。灯光来自一盏孤零零的街灯,营造出电影般的氛围,充满高能量和惊人的细节。视频的音频部分完全由他的rap构成,没有其他对话或杂音。",
        "img_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png",
        "audio_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/ozwpvi/rap.mp3"
    },
    "parameters": {
        "resolution": "720P",
        "prompt_extend": true,
        "duration": 10,
        "shot_type":"multi"
    }
}'

Automatic dubbing

Only wan2.6 and wan2.5 series models support this feature.

If input.audio_url is not provided, the model automatically generates matching background music or sound effects based on the video content.

# The following URL is for the Singapore region. Replace {WorkspaceId} with your actual workspace ID. URLs differ by region.

curl --location 'https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
    -H 'X-DashScope-Async: enable' \
    -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
    -H 'Content-Type: application/json' \
    -d '{
    "model": "wan2.5-i2v-preview",
    "input": {
        "prompt": "一幅都市奇幻艺术的场景。一个充满动感的涂鸦艺术角色。一个由喷漆所画成的少年,正从一面混凝土墙上活过来。他一边用极快的语速演唱一首英文rap,一边摆着一个经典的、充满活力的说唱歌手姿势。场景设定在夜晚一个充满都市感的铁路桥下。灯光来自一盏孤零零的街灯,营造出电影般的氛围,充满高能量和惊人的细节。视频的音频部分完全由他的rap构成,没有其他对话或杂音。",
        "img_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png"
    },
    "parameters": {
        "resolution": "480P",
        "prompt_extend": true,
        "duration": 10
    }
}'

Pass in an audio file

Only wan2.6 and wan2.5 series models support this feature.

To specify background music or dubbing for a video, you can pass in the URL of a custom audio file through the input.audio_url parameter.

# The following URL is for the Singapore region. Replace {WorkspaceId} with your actual workspace ID. URLs differ by region.

curl --location 'https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
    -H 'X-DashScope-Async: enable' \
    -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
    -H 'Content-Type: application/json' \
    -d '{
    "model": "wan2.5-i2v-preview",
    "input": {
        "prompt": "一幅都市奇幻艺术的场景。一个充满动感的涂鸦艺术角色。一个由喷漆所画成的少年,正从一面混凝土墙上活过来。他一边用极快的语速演唱一首英文rap,一边摆着一个经典的、充满活力的说唱歌手姿势。场景设定在夜晚一个充满都市感的铁路桥下。灯光来自一盏孤零零的街灯,营造出电影般的氛围,充满高能量和惊人的细节。视频的音频部分完全由他的rap构成,没有其他对话或杂音。",
        "img_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png",
        "audio_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/ozwpvi/rap.mp3"
    },
    "parameters": {
        "resolution": "480P",
        "prompt_extend": true,
        "duration": 10
    }
}'

Generate a silent video

Only the following models support generating silent videos:

  • wan2.6-i2v-flash: To generate a silent video, you must explicitly set parameters.audio = false.
  • wan2.2 and wan2.1 series models: Silent videos are generated by default, no additional parameter configuration required.
# The following URL is for the Singapore region. Replace {WorkspaceId} with your actual workspace ID. URLs differ by region.

curl --location 'https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
    -H 'X-DashScope-Async: enable' \
    -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
    -H 'Content-Type: application/json' \
    -d '{
    "model": "wan2.2-i2v-plus",
    "input": {
        "prompt": "一只猫在草地上奔跑",
        "img_url": "https://cdn.translate.alibaba.com/r/wanx-demo-1.png"
    },
    "parameters": {
        "resolution": "480P",
        "prompt_extend": true
    }
}'

Use negative prompts

Use negative_prompt to specify that the generated video should avoid the "flower" element.

# The following URL is for the Singapore region. Replace {WorkspaceId} with your actual workspace ID. URLs differ by region.

curl --location 'https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
    -H 'X-DashScope-Async: enable' \
    -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
    -H 'Content-Type: application/json' \
    -d '{
    "model": "wan2.2-i2v-plus",
    "input": {
        "prompt": "一只猫在草地上奔跑",
        "negative_prompt": "花朵",
        "img_url": "https://cdn.translate.alibaba.com/r/wanx-demo-1.png"
    },
    "parameters": {
        "resolution": "480P",
        "prompt_extend": true
    }
}'

Response parameters

output object

Task output information.

Property

task_id string

Task ID. The query validity period is 24 hours.

task_status string

Task status.

Enumerated values

  • PENDING: Task queuing
  • RUNNING: Task processing
  • SUCCEEDED: Task executed successfully
  • FAILED: Task execution failed
  • CANCELED: Task canceled
  • UNKNOWN: Task does not exist or status is unknown

request_idstring

The unique identifier of the request. It can be used for request detail tracing and troubleshooting.

codestring

The error code returned when the request fails. This parameter is not returned when the request succeeds. For more information, see Error codes.

messagestring

The detailed error information returned when the request fails. This parameter is not returned when the request succeeds. For more information, see Error codes.

Successful response

Save the task_id for querying the task status and results.

{
    "output": {
        "task_status": "PENDING",
        "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx"
    },
    "request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx"
}

Error response

Failed to create the task. See Error codes for troubleshooting.

{
    "code": "InvalidApiKey",
    "message": "No API-key provided.",
    "request_id": "7438d53d-6eb8-4596-8835-xxxxxx"
}

Step 2: Query the results by task ID

Singapore

GET https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/tasks/{task_id}

Virginia

GET https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/api/v1/tasks/{task_id}

Beijing

GET https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/tasks/{task_id}

Frankfurt

GET https://{WorkspaceId}.eu-central-1.maas.aliyuncs.com/api/v1/tasks/{task_id}

When you call the API, replace {WorkspaceId} with your actual workspace ID.

Note

  • Polling recommendation: Video generation takes several minutes. We recommend that you use the polling mechanism and set a reasonable query interval (for example, 15 seconds) to obtain the results.
  • Task status transitions: PENDING (Queuing) → RUNNING (Processing) → SUCCEEDED (Success) / FAILED (Failure).
  • Result link: After the task succeeds, a video link is returned, which is valid for 24 hours. We recommend that you download the video immediately after obtaining the link and transfer it to permanent storage (such as Alibaba Cloud OSS).
  • task_id validity: 24 hours. After the validity period expires, the results cannot be queried, and the API returns the task status UNKNOWN.

Request parameters

Request headers

Authorizationstring(required)

Request authentication. The API uses the Alibaba Cloud Bailian API Key for authentication. Example value: Bearer sk-xxxx.

URL path parameters

task_id string (Required)

Task ID.

Query task results

Replace {task_id} with the value of task_id returned by the API in the previous step. The task_id query validity period is 24 hours. Replace {WorkspaceId} with your actual Workspace ID.

curl -X GET https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/tasks/{task_id} \
--header "Authorization: Bearer $DASHSCOPE_API_KEY"

Response parameters

outputobject

Task output information.

Property

task_id string

Task ID. The query validity period is 24 hours.

task_status string

Task status.

Enumerated values

  • PENDING: Task queuing
  • RUNNING: Task processing
  • SUCCEEDED: Task executed successfully
  • FAILED: Task execution failed
  • CANCELED: Task canceled
  • UNKNOWN: Task does not exist or status is unknown
Status transitions during polling:
  • PENDING (Queuing) → RUNNING (Processing) → SUCCEEDED (Success) / FAILED (Failure).
  • The status of the first query is usually PENDING (Queuing) or RUNNING (Processing).
  • When the status changes to SUCCEEDED, the response contains the URL of the generated video.
  • If the status is FAILED, check the error message and try again.
  • If the status is CANCELED, the task has been canceled. To continue, submit the task again.
  • If the status is UNKNOWN, the task does not exist or the status is unknown. This may occur when the task_id does not exist or the 24-hour validity period has expired.

submit_time string

The time when the task was submitted. The time zone is UTC+8, and the format is YYYY-MM-DD HH:mm:ss.SSS.

scheduled_time string

The task execution time. The time zone is UTC+8, and the format is YYYY-MM-DD HH:mm:ss.SSS.

end_time string

The time when the task was completed. The time zone is UTC+8, and the format is YYYY-MM-DD HH:mm:ss.SSS.

video_urlstring

The video URL. Returned only when task_status is SUCCEEDED.

The link is valid for 24 hours, and you can download the video via this URL. The video format is MP4 (H.264 encoding).

orig_prompt string

The original input prompt, corresponding to the request parameter prompt.

actual_prompt string

When prompt_extend=true, the system intelligently rewrites the input prompt, and this field returns the optimized prompt actually used for generation.

  • If prompt_extend=false, this field is not returned.
  • Note: wan2.6 models do not return this field regardless of the value of prompt_extend.

codestring

The error code returned when the request fails. This parameter is not returned when the request succeeds. For more information, see Error codes.

messagestring

The detailed error information returned when the request fails. This parameter is not returned when the request succeeds. For more information, see Error codes.

usage object

Output information statistics, counting only successful results.

Property

Parameters returned by wan2.6 series models

input_video_duration integer

The duration of the input video, in seconds. Currently, passing in videos is not supported, so this value is fixed to 0.

output_video_duration integer

Returned only when wan2.6 models are used.

The duration of the output video, in seconds. Its value is equal to the value of input.duration.

duration integer

The total video duration, used for billing.

Billing formula: duration=input_video_duration+output_video_duration.

SR integer

Returned only when wan2.6 models are used. The resolution tier of the generated video. Example value: 720.

video_count integer

The number of generated videos. Fixed to 1.

audioboolean

Returned only when the wan2.6-i2v-flash model is used. Indicates whether the output video contains audio.

Parameters returned by wan2.2 and wan2.5 series models

duration integer

The duration of the generated video, in seconds. Enumerated values: 5 and 10.

Billing formula: Fee = Video duration in seconds × unit price.

SR integer

The resolution of the generated video. Enumerated values: 480, 720, and 1080.

video_count integer

The number of generated videos. Fixed to 1.

Parameters returned by wan2.1 series models

video_duration integer

The duration of the generated video, in seconds. Enumerated values: 3, 4, and 5.

Billing formula: Fee = Video duration in seconds × unit price.

video_ratio string

The ratio of the generated video. Fixed to standard.

video_count integer

The number of generated videos. Fixed to 1.

request_idstring

The unique identifier of the request. It can be used for request detail tracing and troubleshooting.

Task executed successfully

The video URL is retained for only 24 hours and is automatically cleared after it expires. Save the generated video in a timely manner.

{
    "request_id": "2ca1c497-f9e0-449d-9a3f-xxxxxx",
    "output": {
        "task_id": "af6efbc0-4bef-4194-8246-xxxxxx",
        "task_status": "SUCCEEDED",
        "submit_time": "2025-09-25 11:07:28.590",
        "scheduled_time": "2025-09-25 11:07:35.349",
        "end_time": "2025-09-25 11:17:11.650",
        "orig_prompt": "一幅都市奇幻艺术的场景。一个充满动感的涂鸦艺术角色。一个由喷漆所画成的少年,正从一面混凝土墙上活过来。他一边用极快的语速演唱一首英文rap,一边摆着一个经典的、充满活力的说唱歌手姿势。场景设定在夜晚一个充满都市感的铁路桥下。灯光来自一盏孤零零的街灯,营造出电影般的氛围,充满高能量和惊人的细节。视频的音频部分完全由他的rap构成,没有其他对话或杂音。",
        "video_url": "https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/xxx.mp4?Expires=xxx"
    },
    "usage": {
        "duration": 10,
        "input_video_duration": 0,
        "output_video_duration": 10,
        "video_count": 1,
        "SR": 720
    }
}

Task execution failed

If the task execution fails, task_status is set to FAILED, and an error code and message are provided. See Error codes for troubleshooting.

{
    "request_id": "e5d70b02-ebd3-98ce-9fe8-759d7d7b107d",
    "output": {
        "task_id": "86ecf553-d340-4e21-af6e-a0c6a421c010",
        "task_status": "FAILED",
        "code": "InvalidParameter",
        "message": "The size is not match xxxxxx"
    }
}

Task query expired

task_id can be queried within 24 hours; after that, queries are no longer available and the following error message is returned.

{
    "request_id": "a4de7c32-7057-9f82-8581-xxxxxx",
    "output": {
        "task_id": "502a00b1-19d9-4839-a82f-xxxxxx",
        "task_status": "UNKNOWN"
    }
}

Invoking the DashScope SDK

The SDK parameter naming is basically the same as that of the HTTP API, and the parameter structure is encapsulated according to the characteristics of each language.

Since image-to-video tasks are time-consuming (usually 1-5 minutes), the SDK encapsulates the HTTP asynchronous invocation process at the underlying layer, supporting both synchronous and asynchronous invocation methods.

The actual processing time depends on the number of queued tasks and service execution status. Please wait patiently while retrieving the result.

Python SDK calls

ImportantEnsure that your DashScope Python SDK version is no earlier than 2.0.1 before running the following code.

If the version is too old, errors such as "url error, please check url!" may occur. Please refer to Install SDK to update it.

Set region based on the region where the model is located (pass it in when constructing the Client; the region value varies by region):

Singapore

region="ap-southeast-1"

Virginia

region="us-east-1"

Beijing

region="cn-beijing"

Frankfurt

region="eu-central-1"

When you call the API, replace {WorkspaceId} with your actual workspace ID.

Sample Code

Synchronous Call

A synchronous call blocks and waits until video generation is completed and the result is returned. This example demonstrates three image input methods: public URL, Base64 encoding, and local file path.

Request example
import base64
import os
import mimetypes
import dashscope
from dashscope import DashScopeError

# The following configuration is for the Singapore region. Replace {WorkspaceId} with your actual workspace ID. The region value varies by region.
# For the endpoints of each region, see https://www.alibabacloud.com/help/model-studio/image-to-video-api-reference
client = dashscope.Client(
    # If the environment variable is not configured, set your Model Studio API key directly: api_key="sk-xxx"
    # To get an API key, see https://www.alibabacloud.com/help/model-studio/get-api-key
    api_key=os.getenv("DASHSCOPE_API_KEY"),
    workspace="{WorkspaceId}",
    region="ap-southeast-1",
)

# --- Helper function for Base64 encoding ---
# The format is data:{MIME_type};base64,{base64_data}
def encode_file(file_path):
    mime_type, _ = mimetypes.guess_type(file_path)
    if not mime_type or not mime_type.startswith("image/"):
        raise ValueError("不支持或无法识别的图像格式")
    with open(file_path, "rb") as image_file:
        encoded_string = base64.b64encode(image_file.read()).decode('utf-8')
    return f"data:{mime_type};base64,{encoded_string}"

"""
图像输入方式说明:
以下提供了三种图片输入方式,

1. 使用公网URL - 适合已有公开可访问的图片
2. 使用本地文件 - 适合本地开发测试
3. 使用Base64编码 - 适合私有图片或需要加密传输的场景
"""

# [Method 1] Use a publicly accessible image URL
# Example: Use a public image URL
img_url = "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png"

# [Method 2] Use a local file (supports absolute and relative paths)
# Format: file:// + file path
# Example (absolute path):
# img_url = "file://" + "/path/to/your/img.png"    # Linux/macOS
# img_url = "file://" + "/C:/path/to/your/img.png"  # Windows
# Example (relative path):
# img_url = "file://" + "./img.png"                # Relative to the current script's directory

# [Method 3] Use a Base64-encoded image
# img_url = encode_file("./img.png")

# Set the audio url
audio_url = "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/ozwpvi/rap.mp3"

def sample_call_i2v():
    print('please wait...')
    # generate is a one-step call (submit the task and wait for completion) and returns a completed Job
    # audio_url / negative_prompt are input-section fields that are not part of the named signature, and are passed through via extra_input
    try:
        job = client.videos.generate(model='wan2.6-i2v-flash',
                                     prompt='一幅都市奇幻艺术的场景。一个充满动感的涂鸦艺术角色。一个由喷漆所画成的少年,正从一面混凝土墙上活过来。他一边用极快的语速演唱一首英文rap,一边摆着一个经典的、充满活力的说唱歌手姿势。场景设定在夜晚一个充满都市感的铁路桥下。灯光来自一盏孤零零的街灯,营造出电影般的氛围,充满高能量和惊人的细节。视频的音频部分完全由他的rap构成,没有其他对话或杂音。',
                                     image_url=img_url,
                                     extra_input={'audio_url': audio_url,
                                                  'negative_prompt': ""},
                                     resolution="720P",
                                     duration=10,
                                     prompt_extend=True,
                                     watermark=False,
                                     seed=12345)
        print(job)
        print("video_url:", job.video_url)
    except DashScopeError as e:
        print(f"HTTP status code: {e.status_code}")
        print(f"Error code: {e.code}")
        print(f"Error message: {e.message}")
        print("See the documentation: https://www.alibabacloud.com/help/model-studio/developer-reference/error-code")

if __name__ == '__main__':
    sample_call_i2v()
Response example

The video_url is valid for 24 hours. Download the video promptly.

{
    "request_id": "2794c7a3-fe8c-4dd4-a1b7-xxxxxx",
    "task_id": "c15d5b14-07c4-4af5-b862-xxxxxx",
    "status": "SUCCEEDED",
    "video_url": "https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/xxx.mp4?Expires=xxx",
    "task_metrics": {
        "TOTAL": 1,
        "SUCCEEDED": 1,
        "FAILED": 0
    },
    "usage": {
        "video_count": 1,
        "duration": 10,
        "input_video_duration": 0,
        "output_video_duration": 10,
        "audio": true,
        "SR": 720
    }
}

Asynchronous Call

This example demonstrates the asynchronous calling method. This method immediately returns a task ID, and you need to poll on your own or wait for the task to complete.

Request example
import os
import dashscope
from dashscope import DashScopeError

# The following configuration is for the Singapore region. Replace {WorkspaceId} with your actual workspace ID. The region value varies by region.
# For the endpoints of each region, see https://www.alibabacloud.com/help/model-studio/image-to-video-api-reference
client = dashscope.Client(
    # If the environment variable is not configured, set your Model Studio API key directly: api_key="sk-xxx"
    # To get an API key, see https://www.alibabacloud.com/help/model-studio/get-api-key
    api_key=os.getenv("DASHSCOPE_API_KEY"),
    workspace="{WorkspaceId}",
    region="ap-southeast-1",
)

# Use a publicly accessible image URL
img_url = "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png"

# Set the audio url
audio_url = "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/ozwpvi/rap.mp3"

def sample_async_call_i2v():
    # Asynchronous call, which returns a task_id
    # audio_url / negative_prompt are input-section fields that are not part of the named signature, and are passed through via extra_input
    try:
        job = client.videos.jobs.create(model='wan2.6-i2v-flash',
                                        prompt='一幅都市奇幻艺术的场景。一个充满动感的涂鸦艺术角色。一个由喷漆所画成的少年,正从一面混凝土墙上活过来。他一边用极快的语速演唱一首英文rap,一边摆着一个经典的、充满活力的说唱歌手姿势。场景设定在夜晚一个充满都市感的铁路桥下。灯光来自一盏孤零零的街灯,营造出电影般的氛围,充满高能量和惊人的细节。视频的音频部分完全由他的rap构成,没有其他对话或杂音。',
                                        image_url=img_url,
                                        extra_input={'audio_url': audio_url,
                                                     'negative_prompt': ""},
                                        resolution="720P",
                                        duration=10,
                                        prompt_extend=True,
                                        watermark=False,
                                        seed=12345)
        print(job)
        print("task_id: %s" % job.task_id)
    except DashScopeError as e:
        print(f"HTTP status code: {e.status_code}")
        print(f"Error code: {e.code}")
        print(f"Error message: {e.message}")
        print("See the documentation: https://www.alibabacloud.com/help/model-studio/developer-reference/error-code")
        return

    # Obtain information about the asynchronous task.
    try:
        snapshot = client.videos.jobs.fetch(job.task_id)
        print(snapshot.status)
    except DashScopeError as e:
        print(f"HTTP status code: {e.status_code}")
        print(f"Error code: {e.code}")
        print(f"Error message: {e.message}")
        print("See the documentation: https://www.alibabacloud.com/help/model-studio/developer-reference/error-code")

    # Wait for the asynchronous task to complete (polling with exponential backoff, default total budget 24 hours)
    try:
        done = client.videos.jobs.wait(job)
        print(done)
        print(done.video_url)
    except DashScopeError as e:
        print(f"HTTP status code: {e.status_code}")
        print(f"Error code: {e.code}")
        print(f"Error message: {e.message}")
        print("See the documentation: https://www.alibabacloud.com/help/model-studio/developer-reference/error-code")

if __name__ == '__main__':
    sample_async_call_i2v()
Response example
  1. Response example of creating a task
{
    "request_id": "6dc3bf6c-be18-9268-9c27-xxxxxx",
    "task_id": "686391d9-7ecf-4290-a8e9-xxxxxx",
    "status": "PENDING"
}
  1. Response example of querying the task result

The video_url is valid for 24 hours. Download the video promptly.

{
    "request_id": "2794c7a3-fe8c-4dd4-a1b7-xxxxxx",
    "task_id": "c15d5b14-07c4-4af5-b862-xxxxxx",
    "status": "SUCCEEDED",
    "video_url": "https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/xxx.mp4?Expires=xxx",
    "task_metrics": {
        "TOTAL": 1,
        "SUCCEEDED": 1,
        "FAILED": 0
    },
    "usage": {
        "video_count": 1,
        "duration": 10,
        "input_video_duration": 0,
        "output_video_duration": 10,
        "audio": true,
        "SR": 720
    }
}

Java SDK calls

ImportantEnsure that your DashScope Java SDK version is no earlier than 2.22.6 before running the following code.

If the version is too old, errors such as "url error, please check url!" may occur. Please refer to Install SDK to update it.

Set baseHttpApiUrl based on the region where the model is located:

Singapore

Constants.baseHttpApiUrl = "https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1";

Virginia

Constants.baseHttpApiUrl = "https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/api/v1";

Beijing

Constants.baseHttpApiUrl = "https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1";

Frankfurt

Constants.baseHttpApiUrl = "https://{WorkspaceId}.eu-central-1.maas.aliyuncs.com/api/v1";

When you call the API, replace {WorkspaceId} with your actual workspace ID.

Sample Code

Synchronous Call

A synchronous call blocks and waits until video generation is completed and the result is returned. This example demonstrates three image input methods: public URL, Base64 encoding, and local file path.

Request example
// Copyright (c) Alibaba, Inc. and its affiliates.

import com.alibaba.dashscope.aigc.videosynthesis.VideoSynthesis;
import com.alibaba.dashscope.aigc.videosynthesis.VideoSynthesisParam;
import com.alibaba.dashscope.aigc.videosynthesis.VideoSynthesisResult;
import com.alibaba.dashscope.exception.ApiException;
import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.alibaba.dashscope.utils.JsonUtils;
import com.alibaba.dashscope.utils.Constants;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;

public class Image2Video {

    static {
        // The following URL is for the Singapore region. Replace {WorkspaceId} with your actual workspace ID. URLs differ by region.
        // Get the URL: https://www.alibabacloud.com/help/model-studio/image-to-video-api-reference
        Constants.baseHttpApiUrl = "https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1";
    }

    // If you have not configured the environment variable, replace the following line with your Model Studio API key: apiKey="sk-xxx"
    // Get an API key: https://www.alibabacloud.com/help/model-studio/get-api-key
    static String apiKey = System.getenv("DASHSCOPE_API_KEY");

    /**
     * Image input methods: Choose one of the following three.
     *
     * 1. Use a public URL - suitable for publicly accessible images.
     * 2. Local file: Suitable for local development and testing.
     * 3. Base64 encoding: Best for private images or when data must be securely transmitted.
     */

    //[Method 1] Public URL
    static String imgUrl = "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png";

    //[Method 2] Local file path (file:// + absolute path)
    // static String imgUrl = "file://" + "/your/path/to/img.png";    // Linux/macOS
    // static String imgUrl = "file://" + "/C:/your/path/to/img.png";  // Windows

    //[Method 3] Base64 encoding
    // static String imgUrl = Image2Video.encodeFile("/your/path/to/img.png");

    // Set the audio URL
    static String audioUrl = "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/ozwpvi/rap.mp3";

    public static void image2video() throws ApiException, NoApiKeyException, InputRequiredException {
        // Set the parameters
        Map<String, Object> parameters = new HashMap<>();
        parameters.put("prompt_extend", true);
        parameters.put("watermark", false);
        parameters.put("seed", 12345);

        VideoSynthesis vs = new VideoSynthesis();
        VideoSynthesisParam param =
                VideoSynthesisParam.builder()
                        .apiKey(apiKey)
                        .model("wan2.6-i2v-flash")
                        .prompt("一幅都市奇幻艺术的场景。一个充满动感的涂鸦艺术角色。一个由喷漆所画成的少年,正从一面混凝土墙上活过来。他一边用极快的语速演唱一首英文rap,一边摆着一个经典的、充满活力的说唱歌手姿势。场景设定在夜晚一个充满都市感的铁路桥下。灯光来自一盏孤零零的街灯,营造出电影般的氛围,充满高能量和惊人的细节。视频的音频部分完全由他的rap构成,没有其他对话或杂音。")
                        .imgUrl(imgUrl)
                        .audioUrl(audioUrl)
                        .duration(10)
                        .parameters(parameters)
                        .resolution("720P")
                        .negativePrompt("")
                        .build();
        System.out.println("please wait...");
        VideoSynthesisResult result = vs.call(param);
        System.out.println(JsonUtils.toJson(result));
    }

     /**
     * Encodes a file into a Base64 string.
     * @param filePath The file path.
     * @return A Base64 string in the format data:{MIME_type};base64,{base64_data}.
     */
    public static String encodeFile(String filePath) {
        Path path = Paths.get(filePath);
        if (!Files.exists(path)) {
            throw new IllegalArgumentException("文件不存在: " + filePath);
        }
        // Detect MIME type
        String mimeType = null;
        try {
            mimeType = Files.probeContentType(path);
        } catch (IOException e) {
            throw new IllegalArgumentException("无法检测文件类型: " + filePath);
        }
        if (mimeType == null || !mimeType.startsWith("image/")) {
            throw new IllegalArgumentException("不支持或无法识别的图像格式");
        }
        // Read file content and encode
        byte[] fileBytes = null;
        try{
            fileBytes = Files.readAllBytes(path);
        } catch (IOException e) {
            throw new IllegalArgumentException("无法读取文件内容: " + filePath);
        }

        String encodedString = Base64.getEncoder().encodeToString(fileBytes);
        return "data:" + mimeType + ";base64," + encodedString;
    }

    public static void main(String[] args) {
        try {
            image2video();
        } catch (ApiException | NoApiKeyException | InputRequiredException e) {
            System.out.println(e.getMessage());
        }
        System.exit(0);
    }
}
Response example

The video_url is valid for 24 hours. Download the video promptly.

{
    "request_id": "87c091bb-7a3c-4904-8501-xxxxxx",
    "output": {
        "task_id": "413ed6e4-5f3a-4f57-8d58-xxxxxx",
        "task_status": "SUCCEEDED",
        "video_url": "https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/xxx.mp4?Expires=xxx",
        "orig_prompt": "一幅都市奇幻艺术的场景。一个充满动感的涂鸦艺术角色。一个由喷漆所画成的少年,正从一面混凝土墙上活过来。他一边用极快的语速演唱一首英文rap,一边摆着一个经典的、充满活力的说唱歌手姿势。场景设定在夜晚一个充满都市感的铁路桥下。灯光来自一盏孤零零的街灯,营造出电影般的氛围,充满高能量和惊人的细节。视频的音频部分完全由他的rap构成,没有其他对话或杂音。",
        "submit_time": "2026-01-22 23:25:45.729",
        "scheduled_time": "2026-01-22 23:25:45.771",
        "end_time": "2026-01-22 23:26:44.942"
    },
    "usage": {
        "video_count": 1,
        "duration": 10.0,
        "input_video_duration": 0.0,
        "output_video_duration": 10.0,
        "SR": "720"
    },
    "status_code": 200,
    "code": "",
    "message": ""
}

Asynchronous Call

This example demonstrates the asynchronous calling method. This method immediately returns a task ID, and you need to poll on your own or wait for the task to complete.

Request example
// Copyright (c) Alibaba, Inc. and its affiliates.

import com.alibaba.dashscope.aigc.videosynthesis.VideoSynthesis;
import com.alibaba.dashscope.aigc.videosynthesis.VideoSynthesisListResult;
import com.alibaba.dashscope.aigc.videosynthesis.VideoSynthesisParam;
import com.alibaba.dashscope.aigc.videosynthesis.VideoSynthesisResult;
import com.alibaba.dashscope.exception.ApiException;
import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.alibaba.dashscope.task.AsyncTaskListParam;
import com.alibaba.dashscope.utils.JsonUtils;
import com.alibaba.dashscope.utils.Constants;

import java.util.HashMap;
import java.util.Map;

public class Image2Video {

    static {
        // The following URL is for the Singapore region. Replace {WorkspaceId} with your actual workspace ID. URLs differ by region.
        // Get the URL: https://www.alibabacloud.com/help/model-studio/image-to-video-api-reference
        Constants.baseHttpApiUrl = "https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1";
    }

    // If the environment variable is not configured, replace the following line with your Model Studio API key: api_key="sk-xxx"
    // Get an API key: https://www.alibabacloud.com/help/model-studio/get-api-key
    static String apiKey = System.getenv("DASHSCOPE_API_KEY");
    //Set input image URL
    static String imgUrl = "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png";

    // Set the audio URL
    static String audioUrl = "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/ozwpvi/rap.mp3";

    public static void image2video() throws ApiException, NoApiKeyException, InputRequiredException {
        // Set the parameters
        Map<String, Object> parameters = new HashMap<>();
        parameters.put("prompt_extend", true);
        parameters.put("watermark", false);
        parameters.put("seed", 12345);

        VideoSynthesis vs = new VideoSynthesis();
        VideoSynthesisParam param =
                VideoSynthesisParam.builder()
                        .apiKey(apiKey)
                        .model("wan2.6-i2v-flash")
                        .prompt("一幅都市奇幻艺术的场景。一个充满动感的涂鸦艺术角色。一个由喷漆所画成的少年,正从一面混凝土墙上活过来。他一边用极快的语速演唱一首英文rap,一边摆着一个经典的、充满活力的说唱歌手姿势。场景设定在夜晚一个充满都市感的铁路桥下。灯光来自一盏孤零零的街灯,营造出电影般的氛围,充满高能量和惊人的细节。视频的音频部分完全由他的rap构成,没有其他对话或杂音。")
                        .imgUrl(imgUrl)
                        .audioUrl(audioUrl)
                        .duration(10)
                        .parameters(parameters)
                        .resolution("720P")
                        .negativePrompt("")
                        .build();
        // Asynchronous call
        VideoSynthesisResult task = vs.asyncCall(param);
        System.out.println(JsonUtils.toJson(task));
        System.out.println("please wait...");

        //Retrieve the result.
        VideoSynthesisResult result = vs.wait(task, apiKey);
        System.out.println(JsonUtils.toJson(result));
    }

    // Retrieve the task list.
    public static void listTask() throws ApiException, NoApiKeyException {
        VideoSynthesis is = new VideoSynthesis();
        AsyncTaskListParam param = AsyncTaskListParam.builder().build();
        param.setApiKey(apiKey);
        VideoSynthesisListResult result = is.list(param);
        System.out.println(result);
    }

    // Retrieve the result of a single task.
    public static void fetchTask(String taskId) throws ApiException, NoApiKeyException {
        VideoSynthesis is = new VideoSynthesis();
        // If DASHSCOPE_API_KEY is set as an environment variable, apiKey may be empty
        VideoSynthesisResult result = is.fetch(taskId, apiKey);
        System.out.println(result.getOutput());
        System.out.println(result.getUsage());
    }

    public static void main(String[] args) {
        try {
            image2video();
        } catch (ApiException | NoApiKeyException | InputRequiredException e) {
            System.out.println(e.getMessage());
        }
        System.exit(0);
    }
}
Response example
  1. Response example of creating a task
{
    "request_id": "5dbf9dc5-4f4c-9605-85ea-xxxxxxxx",
    "output": {
        "task_id": "7277e20e-aa01-4709-xxxxxxxx",
        "task_status": "PENDING"
    }
}
  1. Response example of querying the task result

The video_url is valid for 24 hours. Download the video promptly.

{
    "request_id": "87c091bb-7a3c-4904-8501-xxxxxx",
    "output": {
        "task_id": "413ed6e4-5f3a-4f57-8d58-xxxxxx",
        "task_status": "SUCCEEDED",
        "video_url": "https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/xxx.mp4?Expires=xxx",
        "orig_prompt": "一幅都市奇幻艺术的场景。一个充满动感的涂鸦艺术角色。一个由喷漆所画成的少年,正从一面混凝土墙上活过来。他一边用极快的语速演唱一首英文rap,一边摆着一个经典的、充满活力的说唱歌手姿势。场景设定在夜晚一个充满都市感的铁路桥下。灯光来自一盏孤零零的街灯,营造出电影般的氛围,充满高能量和惊人的细节。视频的音频部分完全由他的rap构成,没有其他对话或杂音。",
        "submit_time": "2026-01-22 23:25:45.729",
        "scheduled_time": "2026-01-22 23:25:45.771",
        "end_time": "2026-01-22 23:26:44.942"
    },
    "usage": {
        "video_count": 1,
        "duration": 10.0,
        "input_video_duration": 0.0,
        "output_video_duration": 10.0,
        "SR": "720"
    },
    "status_code": 200,
    "code": "",
    "message": ""
}

Limits

  • Data validity: The task task_id and video URL are retained for only 24 hours and cannot be queried or downloaded after they expire.
  • Content moderation: Input content (such as prompts and images) and output videos are subject to content safety review. Content containing violations will return the "IPInfringementSuspect" or "DataInspectionFailed" error. For more information, see Error codes.

Known Limitations

When using wan2.6-i2v-flash to generate animations of circular objects rotating continuously (such as rings, gears, or dials), the video may briefly stutter after about 3 seconds (the image freezes for about 1 second). To generate such continuous rotation effects, we recommend using the Wan2.7-I2V model to avoid this issue.

Error codes

If a model call fails and returns an error message, see Error codes to resolve the issue.

FAQ

Q: How do I generate a video with a specific aspect ratio (such as 3:4)?

A: The aspect ratio of the output video is determined by the first frame image (img_url) you provide, but the exact ratio cannot be guaranteed (for example, a strict 3:4), so some deviation may exist.

  • Why does the deviation occur?

    The model uses the aspect ratio of the input image as the baseline and, combined with the total pixels of the configured resolution tier (resolution), automatically calculates the closest valid resolution. Because the width and height of the video must be multiples of 16, the model fine-tunes the final resolution. Therefore, the output ratio cannot be strictly equal to 3:4, but it will be very close.

    • For example: with an input image of 750×1000 (aspect ratio 3:4 = 0.75) and resolution = "720P" (target total pixels of about 920,000), the actual output is 816×1104 (aspect ratio ≈ 0.739, about 900,000 total pixels).
  • Best practices:

    • Input control: Use an image that matches the target ratio as the first frame input whenever possible.
    • Post-processing: If you have strict ratio requirements, we recommend using an editing tool after the video is generated to perform simple cropping or black-bar padding.

Q: How do I obtain the access domain whitelist for video storage?

A: Videos generated by the model are stored in Alibaba Cloud OSS, and the API returns a temporary public URL. If you need to configure a firewall whitelist for this download URL, note that the underlying storage changes dynamically based on business conditions. To prevent outdated information from affecting access, this documentation does not provide a fixed OSS domain whitelist. If you have security control requirements, contact your account manager to obtain the latest list of OSS domains.