Alibaba logoAlibabaVideo1 route

Wan 2.1 (text-to-video) API

Make videos with Wan 2.1 (text-to-video) through MartLLM.

wan/wan-2-1-text-to-videoConnect to ClaudeGet an API key
Show more

Made by Alibaba. MartLLM does not run this model. Here, sellers serve it through their own provider accounts.

Wan 2.1 (text-to-video) pricing

per second of video
ResolutionList priceOffYou pay
480plowest$0.0238
720p$0.0428

A clip is billed at the price of the resolution you ask for, times its length in seconds. Our routing technology picks the best seller offering this model now. If that seller fails before it starts answering, the request moves to another one. No MartLLM fee on requests. Adding credit by card costs 5.5% + $0.50.

Show more

Request

curl https://api.martllm.com/v1/video/generations \
  -H "Authorization: Bearer $UBERLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/wan-2-1-text-to-video",
  "prompt": "A traveler in a long coat walks into a neon-lit train station at night, slow tracking shot from behind, rain on the glass roof, reflections on the wet floor, cinematic lighting, the shot ends on the departure board",
  "resolution": "480p",
  "duration_seconds": 5
}'

# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}

Set UBERLLM_API_KEY to your key. Ask /v1/video/generations/<job id> every 5 seconds until status is "succeeded", then download the file with your key. A job that fails says why and costs nothing. Full API guide

Options

Tasks
Text to video
Resolutions
480p, 720p
Lengths
5 s, 10 s
Shapes
16:9, 9:16
Billing unit
per second of video
Your LoRAs
Up to 3
Model id
wan/wan-2-1-text-to-video

Try Wan 2.1 (text-to-video)

Settings

A link to a .safetensors file, or the link of a LoRA you trained here. Up to 3 in the JSON tab.

About $0.12 Before it starts you see the most it can cost. If it fails, you pay nothing.

The same request as the settings on the left, ready to copy.

curl https://api.martllm.com/v1/video/generations \
  -H "Authorization: Bearer $UBERLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/wan-2-1-text-to-video",
  "prompt": "",
  "resolution": "480p",
  "duration_seconds": 5
}'

# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}

What the Wan 2.1 (text-to-video) API is good at

  • Clips up to 10 seconds long in one request.
  • Output at 480p, 720p.
  • Shapes: 16:9, 9:16.

Examples to start from

01

A cinematic shot

A traveler in a long coat walks into a neon-lit train station at night, slow tracking shot from behind, rain on the glass roof, reflections on the wet floor, cinematic lighting, the shot ends on the departure board

Prompt only · 16:9

02

City timelapse

Locked-off timelapse of a city skyline from golden hour to blue hour, clouds drifting, windows lighting up one by one, no camera movement, no warped buildings

Prompt only · 16:9

03

Product shot

A glass perfume bottle turns slowly on a white studio turntable, soft key light from the left, shallow depth of field, clean commercial look, vertical framing for social ads

Prompt only · 9:16 · 5 s

Wan 2.1 (text-to-video) API parameters

ParameterTypeWhat it does
modelwan/wan-2-1-text-to-videoRequired
promptstringRequired. What to make.
resolution480p, 720pOptional · 480p. The seller needs one: left out, 480p is sent.
duration_seconds5, 10Optional. Length in seconds. Left out: the model's shortest.
aspect_ratio16:9, 9:16Optional. Shape of the video.
lorasarray<object>, Up to 3Optional. Optional: up to 3 LoRAs to apply (a style or a person you trained). Each path is an https:// link to the weights, a file id from POST /v1/files (.safetensors), or the file link of your own finished training job.

Read from GET https://api.martllm.com/v1/models/wan/wan-2-1-text-to-video: the same rules the API checks every request against.

Wan models compared

ModelModel idFrom, a secondUp toLongest
Wan 2.1 (text-to-video)wan/wan-2-1-text-to-video$0.0238720p10 s
Wan 2.7 Text-to-Videowan/wan-2-7-text-to-video$0.1115 s
Wan 2.2 A14B Text-to-Videowan/wan-2-2-a14b-text-to-video$0.02865 s
Wan 2.5 Preview Text-to-Videowan/wan-2-5-preview-text-to-video$0.033610 s
Wan 2.6 Text-to-Videowan/wan-2-6-text-to-video$0.1115 s
Wan 2.6 Flash Image-to-Videowan/wan-2-6-flash-image-to-video$0.0341080p15 s
Wan 2.7 (image-to-video)wan/wan-2-7-image-to-video$0.08621080p15 s
Wan 2.5 Preview (image-to-video)wan/wan-2-5-preview-image-to-video$0.06711080p10 s
Wan 2.6 (image-to-video)wan/wan-2-6-image-to-video$0.06711080p15 s
Wan 2.7 (reference-to-video)wan/wan-2-7-reference-to-video$0.03361080p10 s

Wan 2.1 (text-to-video) API FAQ

How much does Wan 2.1 (text-to-video) cost per second?

On November 28, 2026, Wan 2.1 (text-to-video) costs from $0.0238 per second of video through MartLLM. The rate rises with resolution and with sound, and the reply to a request states the most it can cost. A video that fails costs nothing, and MartLLM adds no fee.

How do I make a video with Wan 2.1 (text-to-video)?

Send a POST to https://api.martllm.com/v1/video/generations with your MartLLM key, model "wan/wan-2-1-text-to-video" and a prompt. You get a job id back; ask https://api.martllm.com/v1/video/generations/<job id> until it says "succeeded", then download it from https://api.martllm.com/v1/media/artifacts/<job id>/0.

Are there other fees?

MartLLM adds no fee to model prices. A card fee of 5.5% + $0.50 is added when you buy credit, and a request that fails is not billed.

Guides

Compare with similar models

Embed this price

Show these prices on your own site. The table reads the current prices from MartLLM, so it stays up to date.

Script: the table sets its own height

<script async src="https://martllm.com/embed.js" data-models="wan/wan-2-1-text-to-video"></script>

Plain iframe, for sites that allow no scripts

<iframe src="https://martllm.com/embed/prices?models=wan/wan-2-1-text-to-video" title="AI model API prices" width="100%" height="127" loading="lazy" style="border:0;max-width:720px"></iframe>

Price badge for a README (Markdown)

[![Wan 2.1 (text-to-video) API price on MartLLM](https://api.martllm.com/api/v1/public/badge/wan/wan-2-1-text-to-video.svg)](https://martllm.com/models/wan/wan-2-1-text-to-video?utm_source=embed&utm_medium=referral&utm_campaign=price-badge)

Every option is in the embed docs.