The Wan image-to-animation model generates a video of a moving person based on a character image and a reference video.
Feature summary: This feature transfers the actions and expressions from a character in a video to a character in an image to animate the character.
Scenarios: Replicate dances, complex body movements, and facial expressions from film and television performances. This model provides a low-cost alternative to motion capture.
Examples
wan2.2-animate-move offers two service modes: standard mode (wan-std) and professional mode (wan-pro). The modes differ in their effects and billing. For more information, see Billing and rate limiting.
Character image | Reference video | Output video (standard mode | Output video (professional mode |
|
HTTP
You must obtain an API key and set the API key as an environment variable.
The Beijing and Singapore regions have separate API keys and request endpoints. Do not use them interchangeably. Cross-region calls cause authentication failures or service errors.
Singapore: POST https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/image2video/video-synthesis
Beijing: POST https://dashscope.aliyuncs.com/api/v1/services/aigc/image2video/video-synthesis
Because video generation is time-consuming, the HTTP API uses an asynchronous mode. The call process consists of two steps:
Create a task and obtain the task ID: Send a request to create a task. The response contains a task_id.
Query the result using the task ID: Use the task_id to poll the task status until the task is complete and you retrieve the video URL.
Step 1: Create a task and get the task ID
After the task is created, use the returned
task_idto query the result. The task_id is valid for 24 hours. Do not create duplicate tasks. Use polling to retrieve the result.
Request parameters | Image to animationThe base_url is for the Singapore region. To use a model in the Beijing region, replace the base_url with the following: |
Headers | |
Content-Type The content type of the request. Set this parameter to | |
Authorization The identity authentication credentials for the request. This API uses an Model Studio API key for identity authentication. Example: Bearer sk-xxxx. | |
X-DashScope-Async The asynchronous processing configuration parameter. HTTP requests support only asynchronous processing. You must set this parameter to Important If this request header is missing, the error message "current user api does not support synchronous calls" is returned. | |
Request body | |
model The model name. This parameter must be set to | |
input The input parameter object. It contains the following fields: | |
parameters |
Response parameters | Successful responseSave the task_id to query the task status and result. Error responseThe task creation failed. For more information, see Error messages to resolve the issue. |
output The output information of the task. | |
request_id The unique request ID. You can use this ID to trace and troubleshoot issues. | |
message The detailed information about a failed request. This parameter is not returned if the request is successful. For more information, see Error messages. | |
code The error code for a failed request. This parameter is not returned if the request is successful. For more information, see Error messages. |
Step 2: Query the result by task ID
Singapore region: GET https://dashscope-intl.aliyuncs.com/api/v1/tasks/{task_id}
Beijing region: GET https://dashscope.aliyuncs.com/api/v1/tasks/{task_id}
Polling suggestion: Video generation takes several minutes. Use a polling mechanism and set a reasonable query interval, such as 15 seconds, to retrieve the result.
Task status transition: PENDING → RUNNING → SUCCEEDED or FAILED.
Result link: After the task is successful, a video link is returned. The link is valid for 24 hours. After you retrieve the link, immediately download and save the video to a permanent storage service, such as Object Storage Service.
task_id validity: 24 hours. After this period, you cannot query the result, and the API returns a task status of
UNKNOWN.
Request parameters | Query task resultReplace The base_url is for the Singapore region. If you use a model in the Beijing region, replace base_url with: |
Headers | |
Authorization The identity authentication credentials for the request. This API uses an Model Studio API key for identity authentication. Example: Bearer sk-xxxx. | |
URL path parameters | |
task_id The task ID. |
Response parameters | Task successfulVideo URLs are retained for only 24 hours and are automatically purged after this period. You must save the generated videos promptly. Task failedIf a task fails, task_status is set to FAILED, and an error code and message are provided. For more information, see Error messages to resolve the issue. |
output The output information of the task. | |
usage The statistics about the output. Only successful results are counted. | |
request_id The unique request ID. You can use this ID to trace and troubleshoot issues. |
Limitations
Data validity: The task_id and video URL are valid for only 24 hours. After they expire, you can no longer query the task or download the video. We recommend that you download the video to your local device promptly.
Content Moderation: Both input and output content are subject to Content Moderation. Requests that contain non-compliant content return an "IPInfringementSuspect" or "DataInspectionFailed" error. For more information, see Error messages.
Network access configuration: The video links are stored in Alibaba Cloud OSS. If your business system cannot access external OSS links because of security policies, you must add the following OSS domain names to your network access whitelist.
# OSS domain name list
dashscope-result-bj.oss-cn-beijing.aliyuncs.com
dashscope-result-hz.oss-cn-hangzhou.aliyuncs.com
dashscope-result-sh.oss-cn-shanghai.aliyuncs.com
dashscope-result-wlcb.oss-cn-wulanchabu.aliyuncs.com
dashscope-result-zjk.oss-cn-zhangjiakou.aliyuncs.com
dashscope-result-sz.oss-cn-shenzhen.aliyuncs.com
dashscope-result-hy.oss-cn-heyuan.aliyuncs.com
dashscope-result-cd.oss-cn-chengdu.aliyuncs.com
dashscope-result-gz.oss-cn-guangzhou.aliyuncs.com
dashscope-result-wlcb-acdr-1.oss-cn-wulanchabu-acdr-1.aliyuncs.comBilling and rate limiting
wan2.2-animate-move offers two service modes, standard mode (wan-std) and professional mode (wan-pro), to meet the needs for image-to-animation effects in different scenarios.
International (Singapore)
Model | Service | Description | Rate limiting (shared by Alibaba Cloud account and RAM users) | Unit price | Free quota (View) | |
RPS limit for task submission API | Number of concurrent tasks | |||||
wan2.2-animate-move | Standard mode | Fast generation speed. Meets basic needs such as simple animation demos. Cost-effective. | 5 | 1 | $0.12/second | 50 seconds shared by both modes |
Professional mode | High animation smoothness. Natural transitions for actions and expressions. The effect is closer to a real video. | $0.18/second | ||||
Mainland China (Beijing)
Model | Service | Description | Rate limiting (shared by Alibaba Cloud account and RAM users) | Unit price | Free quota (View) | |
RPS limit for task submission API | Number of concurrent tasks | |||||
wan2.2-animate-move | Standard mode | Fast generation speed. Meets basic needs such as simple animation demos. Cost-effective. | 5 | 1 | $0.06/second | No free quota |
Professional mode | High animation smoothness. Natural transitions for actions and expressions. The effect is closer to a real video. | $0.09/second | ||||
Billing rules
Billing method: This service uses the pay-as-you-go billing method. You are charged based on the duration (in seconds) of the successfully generated video. The billable duration is the value of the
usage.video_durationfield in the response for a successful task.Offset order: The free quota is applied first. After the free quota is exhausted, the pay-as-you-go method is used by default. You can enable the Free quota only feature to prevent extra charges after your free quota is exhausted. For more information, see Free quota for new users.
No charge for failed calls: If a model call fails or a processing error occurs, no fees are charged, and your free quota is not consumed.
Rate limiting: The total request frequency limit for an Alibaba Cloud account and its RAM users is 5 requests per second. A maximum of 1 task can be processed at a time. New tasks that exceed this limit are added to a queue. For more information about model throttling rules and FAQs, see Rate limits.
Error codes
If a model call fails and an error message is returned, see Error messages to resolve the issue.
FAQ
Q: How can I view model usage?
A: Model calling information is subject to an hourly delay. About one hour after a model is called, you can go to the Model Observation (Singapore or Beijing) page to view metrics such as call volume, number of calls, and success rate. For more information, see How do I view model call records?
Q: How can I optimize the quality of the generated video?
A: Consider the following recommendations:
Make sure the person occupies a similar portion of the frame in both the input image and the reference video.
Try to keep the body proportions of the person consistent between the image and the video.
Use high-definition source materials. Avoid blurry images or low-frame-rate videos to ensure accurate detail recognition.
Q: How can I convert a temporary video link to a permanent one?
A: You cannot convert the link directly. The correct procedure is to have your backend service download the video file using the URL and then upload it to a permanent object storage service, such as Alibaba Cloud OSS, to generate a new, permanent access link.
Q: Can the returned video link be played directly in a browser?
A: This is not recommended because the link expires after 24 hours. The best practice is to have your backend download and save the video, and then use a permanent link for playback.
