Models/Alibaba/Wan 2.2 Animate
Alibabavideo1 route

Wan Animate API: Run Wan 2.2 Animate on One Key

Alibaba's Wan 2.2 Animate: video to video, up to 720p.

wan-2.2-animateConnect to ClaudeGet API key

Pricing per second of video

ResolutionPer second
720p$0.088 credits

Billed in credits per second of video (100 credits = $1, rounded up to a whole credit). Charged once, only for the route that succeeds. Failed attempts cost $0.00.

Request

# One Idempotency-Key per request, made once and sent again with every resend of it
KEY=$(uuidgen)

# 1. Submit. max_cost_usd is your cap: the most this may cost ($0.08 a second: $0.80 for a 10 s clip).
#    No id after a timeout, a 429 or a 5xx? Run step 1 again: the same $KEY never makes a second one.
RESP=$(curl -s https://api.revana.si/v1/generations \
  -H "Authorization: Bearer $REVANA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $KEY" \
  -d '{
    "model": "wan-2.2-animate",
    "input": {
      "video_url": "https://example.com/dance.mp4",
      "image_url": "https://example.com/character.png",
      "resolution": "720p"
    },
    "max_cost_usd": 1.2
  }')
ID=$(echo "$RESP" | jq -r '.id // empty')
echo "${ID:-no id: ${RESP:-no answer}}"

# 2. Poll it until status is "succeeded" or "failed". A failed one is free; to try it again,
#    make a new key first (KEY=$(uuidgen)): the old one answers with the failure.
curl -s https://api.revana.si/v1/generations/${ID:?no id from step 1} \
  -H "Authorization: Bearer $REVANA_API_KEY"

# 3. Download the file once it has succeeded
curl -L https://api.revana.si/v1/generations/${ID:?no id from step 1}/content \
  -H "Authorization: Bearer $REVANA_API_KEY" \
  -o out.mp4

Set REVANA_API_KEY to your key. Full reference in the quickstart.

Options

Tasks
Video to video
Resolutions
720p
Audio
Silent only
Billing unit
per second of video
Model id
wan-2.2-animate

1 route

One route today. If it fails you are not charged.

What you can build with video to video

Wan Animate (Wan 2.2 Animate) takes two things: a picture of a character and a video of someone moving. It gives back the character from the picture making the same moves, at 720p. No prompt is needed.

The result has no sound of its own. Add a voice or music afterwards with ElevenLabs V3 and Suno V6, on the same key.

Getting good results from your source clip

Price the job before you send it

Wan Animate is billed $0.08 a second (November 2026) for the length of the clip you send, rounded up to a whole second: the output is as long as the clip. A job that fails costs nothing. Price your own clip with POST /v1/generations/quote first: it measures the clip and answers with the exact cost, without making anything.

Clip lengthCost
5 s$0.40
10 s$0.80
15 s$1.20
30 s$2.40
curl https://api.revana.si/v1/generations/quote \
  -H "Authorization: Bearer $REVANA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"wan-2.2-animate","input":{"video_url":"https://example.com/dance.mp4","image_url":"https://example.com/character.png","resolution":"720p"}}'
# {"quoted_usd": ..., "reserved_usd": ..., "estimated_seconds": ..., "available_usd": ...}

Use it from Claude, Cursor or your own stack

The request body: the clip in input.video_url and the character in input.image_url, both public https links (upload a local file with POST /v1/uploads first). Send it to POST https://api.revana.si/v1/generations with an Idempotency-Key header, then poll GET /v1/generations/{id}.

{
  "model": "wan-2.2-animate",
  "input": {
    "video_url": "https://example.com/dance.mp4",
    "image_url": "https://example.com/character.png",
    "resolution": "720p"
  },
  "max_cost_usd": 1.2
}

Python

import os, sys, time, uuid, requests

API = "https://api.revana.si/v1"
headers = {"Authorization": f"Bearer {os.environ['REVANA_API_KEY']}"}
body = {
  "model": "wan-2.2-animate",
  "input": {
    "video_url": "https://example.com/dance.mp4",
    "image_url": "https://example.com/character.png",
    "resolution": "720p"
  },
  "max_cost_usd": 1.2  # your cap: the most this may cost ($0.08 a second: $0.80 for a 10 s clip)
}

# One Idempotency-Key per request, made once. Every resend carries it, so a timeout,
# a 429 or a 5xx can never make (or charge for) a second generation.
key = str(uuid.uuid4())
for attempt in range(1, 6):
    try:
        r = requests.post(f"{API}/generations", json=body, timeout=60,
                          headers={**headers, "Idempotency-Key": key})
        if r.status_code != 429 and r.status_code < 500:
            break
    except requests.RequestException:
        pass  # no answer: it may have been made, so resend with the same key
    if attempt == 5:
        sys.exit(f"Not accepted yet; resend later with Idempotency-Key {key}")
    time.sleep(5 * attempt)
gen = r.json()
if not r.ok:  # refused: nothing was made or charged
    sys.exit(gen["error"]["message"])
gen_id = gen["id"]

# Poll for up to 20 minutes
deadline = time.time() + 20 * 60
while gen["status"] not in ("succeeded", "failed"):
    if time.time() > deadline:
        sys.exit(f"{gen_id} is still {gen['status']}; poll it again later")
    time.sleep(5)
    r = requests.get(f"{API}/generations/{gen_id}", headers=headers, timeout=60)
    if r.status_code == 429 or r.status_code >= 500:
        continue  # a hiccup: poll again
    gen = r.json()
    if not r.ok:
        sys.exit(gen["error"]["message"])

# A failed generation is free. To try it again, make a new key: this one answers with the failure.
if gen["status"] == "failed":
    sys.exit(gen["error"]["message"])

file = requests.get(f"{API}/generations/{gen_id}/content", headers=headers, timeout=300)
open("out.mp4", "wb").write(file.content)
print("saved out.mp4", gen["cost_usd"])

Node.js

import { randomUUID } from "node:crypto";
import { writeFile } from "node:fs/promises";

const API = "https://api.revana.si/v1";
const headers = {
  Authorization: `Bearer ${process.env.REVANA_API_KEY}`,
  "Content-Type": "application/json",
};
const body = JSON.stringify({
  "model": "wan-2.2-animate",
  "input": {
    "video_url": "https://example.com/dance.mp4",
    "image_url": "https://example.com/character.png",
    "resolution": "720p"
  },
  "max_cost_usd": 1.2 // your cap: the most this may cost ($0.08 a second: $0.80 for a 10 s clip)
});

// One Idempotency-Key per request, made once. Every resend carries it, so a timeout,
// a 429 or a 5xx can never make (or charge for) a second generation.
const key = randomUUID();
let res;
for (let attempt = 1; ; attempt++) {
  res = await fetch(`${API}/generations`, {
    method: "POST",
    headers: { ...headers, "Idempotency-Key": key },
    body,
    signal: AbortSignal.timeout(60000),
  }).catch(() => null); // no answer: it may have been made, so resend with the same key
  if (res && res.status !== 429 && res.status < 500) break;
  if (attempt === 5) throw new Error(`Not accepted yet; resend later with Idempotency-Key ${key}`);
  await new Promise((r) => setTimeout(r, attempt * 5000));
}
let gen = await res.json();
if (!res.ok) throw new Error(gen.error.message); // refused: nothing was made or charged
const id = gen.id;

// Poll for up to 20 minutes
const deadline = Date.now() + 20 * 60 * 1000;
while (!["succeeded", "failed"].includes(gen.status)) {
  if (Date.now() > deadline) throw new Error(`${id} is still ${gen.status}; poll it again later`);
  await new Promise((r) => setTimeout(r, 5000));
  res = await fetch(`${API}/generations/${id}`, { headers });
  if (res.status === 429 || res.status >= 500) continue; // a hiccup: poll again
  gen = await res.json();
  if (!res.ok) throw new Error(gen.error.message);
}
// A failed generation is free. To try it again, make a new key: this one answers with the failure.
if (gen.status === "failed") throw new Error(gen.error.message);

const file = await fetch(`${API}/generations/${id}/content`, { headers });
await writeFile("out.mp4", Buffer.from(await file.arrayBuffer()));
console.log("saved out.mp4", gen.cost_usd);

Add Revana to Claude, Cursor, ChatGPT or any MCP client as a connector at https://revana.si/api/mcp and ask in plain words: "animate my mascot picture with the dance in this clip using Wan Animate". The agent quotes the price first, makes the clip on your credit once you agree, and hands back a download link. Set-up for each app is on the MCP page.

Which video-to-video model to pick

ModelPrice a secondPick it for
Wan 2.2 Animate$0.08 at 720pA character picture moved by your clip, at 720p.
Kling 2.6 Motion Control$0.08 at 720p and $0.12 at 1080pMotion transfer like Wan Animate, at 720p and 1080p.
Kling 3.0 Motion Control$0.13 at 720p and $0.18 at 1080pMotion transfer like Wan Animate, at 720p and 1080p.
Wan 3.0$0.04 at 480p, $0.07 at 720p and $0.14 at 1080pA new clip from text, frames or references, or a clip restyled with a prompt.

About the Wan 2.2 Animate API

How much does the Wan 2.2 Animate API cost?

Wan 2.2 Animate costs $0.08 per second of video on Revana. You pay in prepaid credits, 100 credits to the dollar, with no subscription or monthly minimum. A generation that fails costs nothing.

How is the Wan Animate source clip billed?

By its length: $0.08 a second for every second of the clip you send, rounded up to a whole second, because the result is as long as the clip. A 10 second clip costs $0.80. Price your own clip for free with POST /v1/generations/quote.

Does Wan Animate make sound?

No, the result is a silent 720p clip. Add a voice or music afterwards, for example with ElevenLabs V3 and Suno V6 on the same Revana key.

What footage works best with Wan Animate?

One person, whole body in frame, a steady camera and a plain background, in a short clip under 10 MB. Pair it with a character picture in a similar pose, facing the camera.

Can I try Wan Animate before buying credit?

You can price any clip for free with the quote endpoint, and a job that fails costs nothing. A 5 second clip costs $0.40.

How do I call Wan 2.2 Animate from code?

Send POST https://api.revana.si/v1/generations with {"model": "wan-2.2-animate", "input": {...}} and your Revana API key as a Bearer token, poll GET /v1/generations/{id} until it succeeds, then download GET /v1/generations/{id}/content. Every model on Revana takes the same request shape.

What happens if a Wan 2.2 Animate generation fails?

You are charged once, only for the route that delivers. A failed generation costs $0.00.

What can Wan 2.2 Animate do on Revana?

Wan 2.2 Animate supports video to video, resolutions 720p and silent output. A value it does not offer is refused with 422 before anything is charged.

Can my AI agent use Wan 2.2 Animate?

Yes. Connect the Revana MCP server (https://revana.si/api/mcp) to Claude, ChatGPT, Cursor or Codex, or have the agent call the REST API. The agent can list models, get a free quote and generate on your credits.

Compare with similar models

Also as markdown for agents. Every model and price: models.json.