Guide
How to use the Wan API: Wan 3.0 in Python and curl, with no SDK and cost per second
Prices checked Nov 26, 2026 · 4 min read

To use the Wan API, send one POST /v1/tasks with model set to wan-3-0, a prompt, a duration and a resolution. Then poll GET /v1/tasks/{id} or pass a callback_url, and read the video from output.urls. Wan 3.0 costs $0.04 per second at 480p, $0.08 at 720p and $0.16 at 1080p on TapModels. You don't need to install an SDK, since plain HTTP is the whole integration.
Wan 2.5 and the Wan SDK
Two searches land here, so two plain answers.
- Wan 2.5 API. Our catalog lists Wan 3.0 (
wan-3-0) and no older Wan version. If you built against Wan 2.5 elsewhere, change the model id and recheck the fields below, because each model has its own schema. - Wan SDK. We do not ship one. A task is one JSON POST and one GET, so
requestsorcurlis enough. Anything a model's maker publishes is outside this page, and we make no claim about it.
The request
Wan runs as an asynchronous task. The base URL is https://api.tapmodels.com/v1 and auth is Authorization: Bearer sk_live_....
{
"model": "wan-3-0",
"input": {
"prompt": "A lighthouse beam sweeping over fog at night, slow push-in, waves below",
"duration": "10",
"resolution": "720p",
"aspect_ratio": "16:9",
"audio": true
},
"callback_url": "https://your.app/hooks/tapmodels"
}
The reply is 202 { "id": "task_...", "status": "queued", "estimated_credits": 80 }, which is 10 seconds x 8 credits.
Parameters and valid values
| Field | Required | Valid values | Default |
|---|---|---|---|
prompt | yes | The shot, the motion and the camera | none |
image_url | no | First frame; turns the request into image to video | none |
duration | no | 5, 10, 15 (seconds) | 5 |
resolution | no | 480p, 720p, 1080p | 480p |
aspect_ratio | no | 16:9, 9:16, 1:1 | 16:9 |
audio | no | true, false | true |
The catalog says Wan 3.0 accepts text, images, video or audio as references for longer scenes, and it lists text to video and image to video. The schema above is what the catalog defines. Confirm the live schema at GET /v1/models/wan-3-0. Wrong values return 422 invalid_input, and the message names the field.
Python example
import os, time, requests
BASE = "https://api.tapmodels.com/v1"
H = {"Authorization": f"Bearer {os.environ['TAPMODELS_API_KEY']}"}
r = requests.post(f"{BASE}/tasks", headers=H, json={
"model": "wan-3-0",
"input": {
"prompt": "A lighthouse beam sweeping over fog at night, slow push-in",
"duration": "10", "resolution": "720p",
},
})
r.raise_for_status()
task = r.json()
print("hold:", task["estimated_credits"], "credits")
while task["status"] in ("queued", "running"):
time.sleep(5)
task = requests.get(f"{BASE}/tasks/{task['id']}", headers=H).json()
print(task["status"], task.get("output"), task["credits_charged"])
curl example
curl https://api.tapmodels.com/v1/tasks \
-H "Authorization: Bearer $TAPMODELS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"wan-3-0","input":{"prompt":"A lighthouse beam sweeping over fog at night","duration":"10","resolution":"720p"}}'
curl https://api.tapmodels.com/v1/tasks/task_123 \
-H "Authorization: Bearer $TAPMODELS_API_KEY"
For image to video, upload the first frame with POST /v1/files (up to 30 MB) and pass the returned URL as image_url. Uploaded and output files are kept for 14 days. If you pass callback_url we POST the task object to it on a final status, with an X-Signature header (t=<unix>,v1=<hex hmac-sha256 of "t.body">), and retry non-2xx replies for 24 hours.
Wan API cost per second
Wan is priced per second of video. List price is the provider's published rate as recorded in our catalog on 2026-11-26.
| Resolution | TapModels per second | List per second | 5 seconds | 10 seconds | 15 seconds |
|---|---|---|---|---|---|
| 480p | $0.04 | $0.05 | $0.20 | $0.40 | $0.60 |
| 720p | $0.08 | $0.1125 | $0.40 | $0.80 | $1.20 |
| 1080p | $0.16 | $0.20 | $0.80 | $1.60 | $2.40 |
Worked example: 50 clips of 10 seconds for a social feed.
- At 480p: 50 x 10 x $0.04 = $20.00
- At 720p: 50 x 10 x $0.08 = $40.00
- At 1080p: 50 x 10 x $0.16 = $80.00
At list price, the 720p run is 50 x 10 x $0.1125 = $56.25, so the TapModels price is $16.25 lower. Price doubles at each step, so draft at 480p and render only the keepers at 720p or 1080p. Say you make ten 10-second drafts at 480p ($4.00), and two are good. Rerunning those two at 1080p costs $3.20, so you spend $7.20 in total.
To see how it stacks up against other video models, read Veo vs Wan, Kling vs Wan and Seedance vs Wan. We publish no quality ranking, so test your own prompts.
Common errors
| HTTP | Code | What to do |
|---|---|---|
| 401 | unauthorized | Check the key is present and not revoked |
| 402 | insufficient_credits | Balance minus held credits is below the estimate |
| 402 | key_limit_reached | The key's spend limit would be exceeded |
| 403 | model_not_allowed | The key's allowed_models excludes wan-3-0 |
| 422 | invalid_input | A field is outside the valid values above, for example 4K |
| 429 | rate_limited | Wait for Retry-After, then retry |
task failed | upstream_error | Resubmit: 0 credits were charged |
Credits are held at submit and charged only on success. The default limit is 20 new tasks per 10 seconds per account.
Next step: see all rates on the Wan pricing page.
Frequently asked questions
How do I use the Wan API?
Send POST /v1/tasks with model wan-3-0 and an input object with a prompt, a duration of 5, 10 or 15 seconds and a resolution of 480p, 720p or 1080p. Poll GET /v1/tasks/{id} or pass a callback_url, then read the video URL from output.urls.
Is there a Wan SDK?
TapModels does not ship a Wan SDK, and you do not need one. Wan runs through the same task endpoint as every media model, so plain HTTP with the Python requests library or curl is enough. We make no claim about any SDK from the model's maker.
How much does the Wan API cost?
Wan 3.0 on TapModels costs $0.04 per second at 480p, $0.08 at 720p and $0.16 at 1080p. A 10 second 720p clip is 10 x $0.08 = $0.80. Catalog list prices are $0.05, $0.1125 and $0.20 per second at the same resolutions.
Is Wan 2.5 available?
Our catalog lists Wan 3.0, with model id wan-3-0. We do not list a Wan 2.5 model, so for the Wan family through our API use wan-3-0. Check GET /v1/models for the current list before you build on it.
Sources
- Provider list prices as recorded in the TapModels model catalog · checked Nov 26, 2026