LiveWan 3.0 is live: 30-second clips, 1080p, native sound and dialogue. Try it now →
The Wan
API.
Generate AI video programmatically with Alibaba's Wan 3.0 model. One REST call turns a prompt or image into a finished MP4 with native sound.
One endpoint for AI video generation.
Text-to-video & image-to-video
Send a prompt, an image, or both. The Wan API runs the same Wan 3.0, 2.7 and 2.5 models as the studio, with native sound on every clip.
Async, webhook-driven
Submit a job and get an ID back instantly. Poll the status endpoint or register a webhook, we call you when the render is ready so you never hold a request open.
Predictable, usage-based pricing
You pay per generated second of video, billed from the credits on your plan. No per-seat fees, no minimums, scale from a prototype to production on the same key.
Generate a video in one call.
curl https://trywan.ai/api/v1/generate \
-H "Authorization: Bearer $WAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan-3.0",
"prompt": "A cinematic dolly shot of a neon-lit alley at night, rain, steam",
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "1080p"
}'The call returns a job ID. Poll the status endpoint or register a webhook, and download the finished MP4 with sound when the render completes.
From key to rendered clip.
- 01
Get an API key
Create an account and generate a key from your dashboard. Every paid plan includes API access.
- 02
Submit a generation job
POST a prompt, references and options to the generate endpoint. You get a job ID back immediately.
- 03
Receive the finished video
Poll the job or listen on your webhook. When it's done, download the MP4 with sound from the returned URL.
Usage-based, billed from your plan credits.
API access is included on every paid plan, starting at $14/month. You pay per second of generated video, no per-seat fees, no minimums. See full Wan pricing.
Wan API FAQ.
What is the Wan API?+
The Wan API is a REST endpoint that generates AI video programmatically using Alibaba's Wan model family. You send a prompt and optional references, and receive a rendered MP4 with native sound, the same output as the Wan Studio app, driven from your own code.
How much does the Wan API cost?+
API usage is billed from the credits included in your plan (from $14/month), so you effectively pay per second of generated video. There are no per-seat fees or minimums, and the same key works from prototype to production.
How do I get access to the Wan API?+
Create an account, choose any paid plan, and generate an API key from your dashboard. Authenticate requests with a bearer token and you're ready to submit generation jobs.
Does the Wan API support image-to-video?+
Yes. You can send a text prompt, a first-frame image, or on Wan 2.7 reference images and clips in a single request, for text-to-video, image-to-video and reference-driven generation.
Is the API synchronous or asynchronous?+
It's asynchronous. Submitting a job returns an ID immediately; you then poll the status endpoint or register a webhook, so a slow render never blocks your request.
Build with the Wan API.
Grab a key and ship AI video generation into your product today.
Get an API key