Models / Video / Alibaba

Wan 2.5 Text to Video API

Wan 2.5 Text to Video API: $0.1875 to $0.5625 per generation, prepaid, no subscription. Alibaba's video model on one key; a failed generation is not charged.

wan-2.5-text-to-videoVideoper generation

Price · per generation, USD

Get a key
SettingsUplinkSwitch
aspect ratio 832*480, duration 5$0.1875
aspect ratio 480*832, duration 5$0.1875
aspect ratio 1280*720, duration 5$0.375
aspect ratio 720*1280, duration 5$0.375
aspect ratio 1920*1080, duration 5$0.5625
aspect ratio 1080*1920, duration 5$0.5625
Charged when the request is accepted; refunded in full if the generation fails.

What a run costs · USD, live

The lowest-priced settings (aspect ratio 832*480, duration 5) bill $0.1875 per generation; the highest-priced (aspect ratio 1080*1920, duration 5) $0.5625.

RunAt $0.1875 per generationAt $0.5625 per generation
One clip$0.1875$0.5625
10 clips$1.88$5.63
100 clips$18.75$56.25

Compare · per generation, live

Wan 2.5 Text to Video from $0.1875 per generation; Wan 2.5 Image to Video from $0.1875; Wan 2.6 Text to Video from $0.50.

Call it · POST /v1/generations

curl
curl https://api.uplinkswitch.com/v1/generations \
  -H "Authorization: Bearer $UPLINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-2.5-text-to-video",
  "input": {
    "prompt": "A red paper boat on a calm blue pond, morning light",
    "aspect_ratio": "832*480"
  }
}'

# then poll until "status" is "succeeded":
curl https://api.uplinkswitch.com/v1/generations/gen_... -H "Authorization: Bearer $UPLINK_API_KEY"
Python, requests
import os, time, requests

BASE = "https://api.uplinkswitch.com/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['UPLINK_API_KEY']}"}
payload = {
    "model": "wan-2.5-text-to-video",
    "input": {
        "prompt": "A red paper boat on a calm blue pond, morning light",
        "aspect_ratio": "832*480"
    }
}

gen = requests.post(f"{BASE}/generations", headers=HEADERS, json=payload, timeout=30).json()
while gen["status"] not in ("succeeded", "failed"):
    time.sleep(5)
    gen = requests.get(f"{BASE}/generations/{gen['id']}", headers=HEADERS, timeout=30).json()

if gen["status"] == "succeeded":
    url = gen["outputs"][0]["url"]
    with open(url.rsplit("/", 1)[-1], "wb") as f:
        f.write(requests.get(url, headers=HEADERS, timeout=120).content)

The request is charged when it is accepted and answers 202 with a generation id. Poll GET /v1/generations/{id} until the status is succeeded, then download outputs[0].url; files stay downloadable for 30 days, and a failed generation is refunded in full.

Settings · in input

NameTypeValuesDefault
prompt requiredstring——
aspect_ratio requiredstring832*480, 480*832, 1280*720, 720*1280, 1920*1080, 1080*1920—
durationinteger5, 105
audiostring——
negative_promptstring——
seedinteger——

Questions

From $0.1875 per generation. The price depends on the settings in the table and is fixed when the request is accepted.

Create one in the console at uplinkswitch.ai/console: prepaid credit from $10, no subscription, and the key is live at once. Send it as the bearer token to /v1/generations with model wan-2.5-text-to-video; the same key calls every other model in the catalog.

No. You add credit and each request is paid from it. There is no monthly fee and no minimum per request.

It is refunded in full, automatically. You pay only for files you receive.

Thirty days, at a URL on api.uplinkswitch.com. Download what you want to keep.

Yes. The same key calls every image, video, speech and 3D model and every chat model in the catalog.
Join on Telegram
Help