At a glance
The Wan Video v2.2 API runs Wan Video v2.2 and 1 other variant through Mage at POST https://api.mage.space/v1/wan_22/generate. A request at the default settings costs 40 Gems (about $0.04), with no subscription. Wan Video v2.2 takes no @handle mentions.
Video
Output
2
Variants
40
Gems per clip, default
$0.04
About, in USD
Overview
What the Wan Video v2.2 API does
An open-weights video model, from text or a start frame, with a faster Lightning variant. Up to 720p.
Wan Video v2.2, an open-weights video model from text or a start frame, with a Lightning variant.
It accepts first_image as inputs.
Quick start
Call the Wan Video v2.2 API
Set MAGE_API_KEY, submit to /wan_22/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/wan_22/generate' \
--header "Authorization: Bearer $MAGE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "16:9",
"model_id": "wan22-video"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"Python
import os, time, requests
headers = {"Authorization": f"Bearer {os.environ['MAGE_API_KEY']}"}
request = requests.post(
"https://api.mage.space/v1/wan_22/generate",
headers=headers,
json={
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "16:9",
"model_id": "wan22-video"
},
).json()
while request["status"] in ("queued", "in_progress"):
time.sleep(3)
request = requests.get(request["status_url"], headers=headers).json()
print(request["status"], request["result"] and request["result"]["url"])JavaScript
const headers = {
Authorization: `Bearer ${process.env.MAGE_API_KEY}`,
'Content-Type': 'application/json',
};
let request = await fetch('https://api.mage.space/v1/wan_22/generate', {
method: 'POST',
headers,
body: JSON.stringify({
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "16:9",
"model_id": "wan22-video"
}),
}).then((response) => response.json());
while (['queued', 'in_progress'].includes(request.status)) {
await new Promise((resolve) => setTimeout(resolve, 3000));
request = await fetch(request.status_url, { headers }).then((r) => r.json());
}
console.log(request.status, request.result?.url);Models
Wan Video v2.2 model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| wan22-video | Wan Video v2.2 | Yes |
| wan22-video-lightning | Wan Video v2.2 |
Options
Wan Video v2.2 parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| aspect_ratio | 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21 |
| resolution | 240p, 360p, 480p, 720p |
Inputs
Media inputs Wan Video v2.2 accepts
Send each as an https URL, a data URL, or an upload of up to 100 MB.
| Field | Role |
|---|---|
| first_image | The first frame image. |
More video models
Other video generation APIs on Mage
Video · from 189 Gems
Berry API
Video that stays true to your references
Video · from 360 Gems
Blueberry API
Pin the first and last frame
Video · from 618 Gems
Cherry API
Our flagship video family
Video · from 375 Gems
Grok Video API
Grok Imagine, in motion
Video · from 270 Gems
Kiwi API
Everyday video, zero setup
Video · from 245 Gems
Lemon API
Every video feature, at a friendlier price
FAQ
Frequently asked questions
How much does the Wan Video v2.2 API cost?
A Wan Video v2.2 request at the default settings (Wan Video v2.2) costs 40 Gems, about $0.04. Other resolutions, durations, and variants change the price; the response reports the exact charge. A generation that fails is refunded; one Mage's content policy blocks is not.
What is the Wan Video v2.2 API endpoint?
POST https://api.mage.space/v1/wan_22/generate with an Authorization: Bearer header carrying your Mage API key. The response includes a status_url to poll for the result.
Which Wan Video v2.2 models can I call?
wan22-video, wan22-video-lightning. The default is Wan Video v2.2.
Does Wan Video v2.2 support reference images or characters?
Wan Video v2.2 accepts first_image. Wan Video v2.2 takes no @handle mentions.
Can I use Wan Video v2.2 from Claude or ChatGPT?
Yes. Connect the Mage MCP server to Claude, ChatGPT, Claude Code, Grok, or Cursor and ask for Wan Video v2.2 by name. Your assistant reads its options with get_model and quotes the price before it generates.
How long are Wan Video v2.2 results kept?
Results and inputs are kept for 30 days. Download anything you want to keep to your own storage.
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.