Wan 3.0 API: 30-Second Clips With References
Wan 3.0 by API: clips up to 30 seconds with sound, reference pictures and a first frame, from 480p to 1080p. Request bodies, options and cost checks.
Updated 5 min read
The Wan 3.0 API makes clips from 2 to 30 seconds long, with sound, from a prompt, a first frame or reference pictures, at 480p, 720p and 1080p. On Frameport you call Alibaba's Wan 3.0 with one API key for $0.12 per second at 720p, so a full 30-second take costs $3.60, and a clip that fails costs nothing.
This page covers what the model takes, the code for a first request, when one long take beats several short clips, pictures, the price and how to get the result back.
What Wan 3.0 takes and returns
| Option | Wan 3.0 |
|---|---|
| Model id | wan-3 |
| Clip length | 2 to 30 seconds, 5 when the request names none |
| Resolution | 480p, 720p and 1080p, 720p by default |
| Aspect ratio | 16:9, 4:3, 1:1, 3:4 and 9:16 |
| Sound | On or off, same price |
| What it does | Text to video and Image to video |
| Reference pictures | Up to 3 |
| Seed | Yes |
| Output | A video file behind a signed link that opens for about an hour |
Sound is rendered with the picture. Put lines in quotes after the speaker and the model voices them, or send "audio": false for a silent clip. Wan 3.0 takes a first frame but no last frame, and no negative prompt. A value it does not take is refused with 400 invalid_request before anything is held, and the message lists what it does take. The Wan 3.0 model page has a request body for each mode.
Your first Wan 3.0 API request
This one asks for a 20-second take at 720p with a seed, so a take you like can be rendered again with one phrase changed. The submit answers at once with 202 Accepted and the price held on your balance.
# 1. Submit: the price is held on your balance (reserved_usd)
curl https://frameport.ai/v1/videos/generations \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan-3",
"prompt": "A slow walk through a night market as the lanterns flicker on. First the stalls light up one by one, then the crowd thickens, then the camera rises above the rooftops. Handheld, crowd murmur and sizzling food.",
"duration": 20,
"resolution": "720p",
"aspect_ratio": "16:9",
"seed": 81
}'
# 2. Poll with the id it returns, until "succeeded" or "failed"
curl https://frameport.ai/v1/videos/generations/$GENERATION_ID \
-H "Authorization: Bearer $FRAMEPORT_API_KEY"
# 3. Download outputs[0].url once it has succeeded (a signed link, no key needed)
curl -L "$OUTPUT_URL" -o market.mp4{
"id": "gen_9sLq2VbX7mN4kR1tYc8WpE",
"object": "generation",
"type": "video",
"model": "wan-3",
"status": "queued",
"input": {
"prompt": "A slow walk through a night market as the lanterns flicker on. First the stalls light up one by one, then the crowd thickens, then the camera rises above the rooftops. Handheld, crowd murmur and sizzling food.",
"duration": 20,
"resolution": "720p",
"aspect_ratio": "16:9",
"audio": true,
"reference_images": 0,
"end_image": false,
"seed": 81
},
"reserved_usd": 2.4,
"cost_usd": null,
"outputs": [{ "id": "file_2Tn7XcQ9vLm4Ra8Ws1KbZd", "status": "queued" }],
"error": null,
"created_at": "2026-11-28T10:00:00.000Z",
"completed_at": null
}Long takes: when one long clip beats three short ones
Wan 3.0 bills the same rate for every second, whatever the length. A 30-second take at 720p costs $3.60, and three 10-second clips cost $1.20 each, the same in total. So the choice is about the film, not the bill:
- One long take keeps the camera, the light, the people and the sound unbroken: a walk-and-talk, a slow reveal, a continuous product demo. There is no cut to hide.
- Short clips are better when each shot needs its own angle, or when you want to keep the best of several takes per shot. A take you do not like is still a take you paid for, and redoing a short shot costs less than redoing a long one.
For a long take, write the action in order, beginning, middle and end, so the clip has somewhere to go. Draft at 480p, where a second costs $0.06, and render the keeper at 720p or 1080p with the same seed.
Starting from a first frame or reference pictures
Wan 3.0 uses pictures in two ways, set by reference_mode:
- A first frame. One picture in
reference_imagesand the clip starts on it. Describe only the motion: the frame already sets the subject, the wardrobe and the set. Wan 3.0 takes noend_image, so the clip cannot be pinned to a last frame. - Reference pictures. With
"reference_mode": "identity", up to 3 pictures show the person, product or place to keep, and the prompt builds the scene around them.
{
"model": "wan-3",
"prompt": "The sneaker from the first picture splashes through puddles on a city street at night, low tracking shot, rain and traffic hiss",
"duration": 8,
"resolution": "1080p",
"aspect_ratio": "9:16",
"reference_images": [
"https://example.com/sneaker-side.jpg",
"https://example.com/sneaker-sole.jpg"
],
"reference_mode": "identity"
}A picture is an https URL, a base64 data URI, an upload (upl_…) or one of your image outputs (file_…). In frame mode the model reads one picture: a request with more is refused before anything is held. The image to video API guide compares how each model of the catalog takes a starting picture.
How Wan 3.0 stacks up against Seedance 2.5 and Hailuo 3 is in Seedance 2.5 vs Wan 3.0 vs Hailuo 3.
What a Wan 3.0 clip costs
A clip costs the rate of its resolution times its length.
| Resolution | Per second | 5 s clip | 10 s clip | 30 s take |
|---|---|---|---|---|
| 480p | $0.06 | $0.30 | $0.60 | $1.80 |
| 720p | $0.12 | $0.60 | $1.20 | $3.60 |
| 1080p | $0.235 | $1.175 | $2.35 | $7.05 |
The price is held when you submit (reserved_usd), charged when the clip succeeds (cost_usd) and given back when it fails. To check a body first, send it to POST /v1/generations/quote: nothing is held, and the answer says whether your balance covers it.
{
"object": "quote",
"model": "wan-3",
"type": "video",
"mode": "generate",
"price_usd": 7.05,
"reserved_usd": 7.05,
"breakdown": "30 s at 1080p × $0.235/s",
"available_usd": 42.5,
"enough_balance": true
}Pricing explains the balance, which starts from $10 with no subscription.
Polling or webhooks for the Wan 3.0 result
A generation moves from queued to running, then to succeeded or failed. A script can read it every few seconds, as above: reads do not count against your limits. A service that runs many takes should add a webhook instead, under Webhooks in the dashboard. Each delivery is a POST with the generation as GET returns it, signed in the Frameport-Signature header with your endpoint's secret.
import crypto from 'node:crypto'
import { createServer } from 'node:http'
const SECRET = process.env.WEBHOOK_SECRET // whsec_..., shown once when you add the endpoint
function verify(raw, header = '', tolerance = 300) {
const parts = Object.fromEntries(header.split(',').map(part => part.split('=')))
if (!parts.t || !parts.v1 || Math.abs(Date.now() / 1000 - Number(parts.t)) > tolerance) return false
const expected = crypto.createHmac('sha256', SECRET).update(`${parts.t}.${raw}`).digest('hex')
return expected.length === parts.v1.length
&& crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1))
}
createServer(async (req, res) => {
const chunks = []
for await (const chunk of req) chunks.push(chunk)
const raw = Buffer.concat(chunks).toString('utf8')
if (!verify(raw, req.headers['Frameport-Signature'.toLowerCase()])) return res.writeHead(400).end()
const event = JSON.parse(raw)
console.log(event.type, event.data.id, event.data.status) // queue the download, answer fast
res.writeHead(204).end()
}).listen(3000)Answer with a 2xx within 10 seconds and do the work afterwards. A delivery that fails is sent again after 1, 5 and 15 minutes with the same id. The webhooks reference covers signatures and retries, and the video generation API guide in Python shows the same flow with Flask.
Every length and resolution is priced in Wan 3.0 API pricing.
FAQ
How much does the Wan 3.0 API cost?
$0.06 per second at 480p, $0.12 at 720p and $0.235 at 1080p. A 10-second clip at 720p costs $1.20, and a clip that fails costs nothing.
How long can a Wan 3.0 clip be?
2 to 30 seconds, in whole seconds. A request without duration gets 5 seconds.
Can Wan 3.0 start from an image?
Yes, from a first frame: send one picture in reference_images. It takes no last frame. With "reference_mode": "identity", up to 3 pictures become references to keep instead.
Is there a Wan 3.0 free trial?
The account and the API key are free, and quotes cost nothing. Clips are paid from a prepaid balance, with no subscription, and a clip that fails is not charged. You can try Wan 3.0 online or open it in the Studio before you write code.
Wan 3.0 or Seedance 2.5 for long clips?
Both make long takes in one request: Wan 3.0 up to 30 seconds at up to 1080p, Seedance 2.5 up to 30 seconds at up to 720p. Seedance 2.5 also takes a last frame. Wan 3.0 starts at $0.06 per second, Seedance 2.5 at $0.12. The Seedance 2.5 API guide covers it.