Wan 2.2 Animate 2 API

by Alibaba

A character photo takes the moves from driving footage up to 120 seconds, with a separate motion prompt

alibaba/wan-2.2-animate-2/character-animation
  • Up to 720p
  • Motion Control

About Wan 2.2 Animate 2

A character photo takes the moves from driving footage up to 120 seconds, with a separate motion prompt.

Call it with the model name alibaba/wan-2.2-animate-2/character-animation on POST /jobs/createTask, from $0.048.

Request parameters

ParameterRequiredDescription
image_urlYesThe picture to start from.
motion_promptNoOptional notes on the motion in the driving video, such as the dance or gestures, kept separate from how the character looks.
promptNoDescribe what you want to make.
resolutionNoChoose an available output size. 480p · 720p · Default: 480p
seedNoUse the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647
video_urlYesThe clip to work on.

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per second
resolution 480p$0.048
resolution 720p$0.096

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

API quick start

Call the Wan 2.2 Animate 2 API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model alibaba/wan-2.2-animate-2/character-animation and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "alibaba/wan-2.2-animate-2/character-animation",
  "input": {
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "resolution": "480p"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

Wan 2.2 Animate 2 API questions

How much does the Wan 2.2 Animate 2 API cost?

Wan 2.2 Animate 2 costs $0.048 per second. Prices by option: 480p $0.048 per second, 720p $0.096 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What is the model name for Wan 2.2 Animate 2 in the API?

Put alibaba/wan-2.2-animate-2/character-animation for Motion Control in the model field of POST /jobs/createTask.

What are the limits of the Wan 2.2 Animate 2 API?

Resolutions: 480p · 720p; Largest upload: 90 MB; Longest input clip: 120 s. Requests outside these limits are rejected before anything is charged.

More about Wan 2.2 Animate 2