Skip to main content

Overview

Wan 2.2 Animate is an Alibaba video model for character animation and character replacement. Use this page when you are ready to call the API after trying the model in the APIXO playground.

Endpoint and authentication

Base URL:
All requests require your APIXO API key:
Submit requests also require:

Copy-paste async quickstart

This minimal request submits an animate task and returns a taskId.
Successful response:
Save the taskId; you need it to poll for the final result.

Poll for result

Processing response:
Success response:
Failed response:
Parse resultJson after state becomes success:

Request body

Animate

Use type: "animate" to animate the character in the source image with motion from the reference video.

Replace

Use type: "replace" to replace the character in the motion video with the character from the source image.

Parameters

string
default:"async"
Result delivery mode. Use async for polling with statusTask, or callback for webhook delivery.
string
Required when request_type is callback. Must be a public HTTPS URL that can receive the final task payload. See Webhooks.
object
required
Wan 2.2 Animate input parameters.

Response format

Submit task response

POST /generateTask/wan-2-2-animate returns a task ID when the task is accepted:
integer
API status code. 200 means the task was accepted.
string
Human-readable status message.
string
Unique task identifier used with the status endpoint.

Status response fields

string
Unique task identifier.
string
Current task state: pending, processing, success, or failed.
string
JSON string containing the generated video URLs. Present when state is success.
string
Machine-readable failure code. Present when state is failed.
string
Human-readable failure message. Present when state is failed.
integer
Task creation timestamp in Unix milliseconds.
integer
Task completion timestamp in Unix milliseconds. Present after completion.
integer
Processing duration in milliseconds. Present after successful completion when timing data is available.

Webhook callback mode

Use callback mode when your backend should receive the final result automatically instead of polling.
See Webhooks for delivery requirements and retry behavior.

Billing

Wan 2.2 Animate is billed per generated video second. The selected resolution determines the unit price, and billable duration is detected from video_urls[0]. If the reference video is shorter than 5 seconds, billing uses 5 seconds. If it is longer than 120 seconds, billing is capped at 120 seconds. For current route and market comparison pricing, see Pricing.

Latency and polling

Actual latency may vary by reference video duration, resolution, queue load, and current route health.
Video generation can take several minutes. For production workloads, use callback mode to avoid frequent polling.
Rate limits and concurrency can vary by account, API key, and route. If you receive 429, slow down requests and retry with backoff. For account-level details, see System APIs.

Errors and troubleshooting

HTTP errors

Task failure causes

Common fixes

See Error Codes for the full error reference.