Mage API · Video model
Wan 3.0 API
Wan 3.0, with a strict filter
POST https://api.mage.space/v1/wan_3/generateAt a glance
The Wan 3.0 API runs Wan 3.0 through Mage at POST https://api.mage.space/v1/wan_3/generate. A request at the default settings costs 245 Gems (about $0.245), with no subscription. Wan 3.0 takes saved characters, references, audio references by @handle in the prompt.
- VideoOutput
- 1Variant
- 245Gems per clip, default
- $0.245About, in USD
Overview
What the Wan 3.0 API does
Alibaba's all-in-one Wan 3.0. Start and end frames, up to 10 references or Characters, Voices and audio, and clips from 2 to 30 seconds at up to 1080p. Strict Filter: the provider's content filter applies.
Alibaba's Wan 3.0, one video model for text, frames, reference images, reference videos, and Voices, in clips from 2 to 30 seconds with generated audio. Strict Filter: the provider's content filter checks the prompt, the input media, and the finished video; a request it refuses fails with `content_blocked` and a reason, and is refunded.
It accepts first_image, last_image, image, additional_images, videos as inputs.
Quick start
Call the Wan 3.0 API
Set MAGE_API_KEY, submit to /wan_3/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/wan_3/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",
"duration": "3",
"model_id": "wan-3.0"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('wan_3', {
prompt: 'A slow push-in on a lighthouse at dusk, waves breaking below',
aspect_ratio: '16:9',
duration: '3',
model_id: 'wan-3.0',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("wan_3", {
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "16:9",
"duration": "3",
"model_id": "wan-3.0",
})
print(request["result"]["url"])Models
Wan 3.0 model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| wan-3.0 | Wan 3.0 | Yes |
Options
Wan 3.0 parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| aspect_ratio | 16:9, 4:3, 1:1, 3:4, 9:16 |
| resolution | 480p, 720p, 1080p |
| duration | 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 |
Inputs
Media inputs Wan 3.0 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. |
| last_image | The last frame image. |
| image | The reference image. |
| additional_images | Additional reference images. |
| videos | The source videos. |
Rules
What the Wan 3.0 API enforces
- First and last frames cannot be combined with reference images or videos: send one kind or the other.
- Up to 10 reference images and 5 reference videos.
- Each reference video is 1 to 15 seconds long, at most 15 seconds combined, and the combined length plus `duration` is at most 30 seconds. Reference-video seconds bill like output seconds.
More video models
Other video generation APIs on Mage
Wan Video v2.2 API
Open-weights video with a Lightning variant
Berry API
Video that stays true to your references
Blueberry API
Pin the first and last frame
Cherry API
Our flagship video family
Grok Video API
Grok Imagine, in motion
Kiwi API
Everyday video, zero setup
FAQ
Frequently asked questions
How much does the Wan 3.0 API cost?
What is the Wan 3.0 API endpoint?
Which Wan 3.0 models can I call?
Does Wan 3.0 support reference images or characters?
Can I use Wan 3.0 from Claude or ChatGPT?
How long are Wan 3.0 results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.