altrouter.ai
Models/Alibaba/Wan 2.7 Video
WN

Alibaba: Wan 2.7 Video

Videowan-2.7-video

Alibaba Wan 2.7 Video: 720p–1080p clips up to 15 seconds from text or a first frame, with audio.

API docs
Playgroundwan-2.7-video
Reference image
duration
Resolution
Negative prompt
Seed
Latency17.5 s
24hnow
Specifications
Authoralibaba
ModalityVideo
Price$0.092 / second$0.10 / second
Savings8%
ReleasedJul 23, 2026
Quick start
# Video is asynchronous: create, then poll.
curl https://api.altrouter.ai/v1/videos \
  -H "Authorization: Bearer ar-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan-2.7-video",
    "prompt": "a drone shot over a coastline"
  }'
# → { "id": "vid_...", "status": "queued" }

curl https://api.altrouter.ai/v1/videos/vid_... \
  -H "Authorization: Bearer ar-..."
# → { "status": "completed", "url": "https://api.altrouter.ai/media/videos/..." }

Same OpenAI-compatible endpoint — just swap base_url and key.

API

An asynchronous endpoint: the call returns immediately in queued, and you poll GET /v1/videos/{id} for the result. The finished mp4 is re-hosted on our CDN, and only a completed render is charged.

POST/v1/videos
Body parameters
modelstringrequired"wan-2.7-video"
The model id.
promptstringrequired
The text description of the scene.
secondsinteger
Clip length; `duration` is accepted as an alias.
imagestringURL or base64
A reference frame — its presence routes to the model’s image-to-video variant.
durationnumber2–15default 5
Clip length in seconds (affects price).
resolutionenum720p · 1080pdefault 720p
Resolution tier (affects price).
negative_promptstring
What to exclude from the image.
seednumber0–2147483647
Seed for reproducibility.
Response

The same object comes back from GET /v1/videos/{id}; the finished file is also served directly from GET /v1/videos/{id}/content.

idstring
The render id (vid_…) — this is what you poll.
statusenumqueued · in_progress · completed · failed
The state of the render.
urlstring
The finished mp4 on our CDN — appears at status: completed.
secondsinteger
The clip length the price was computed on.
errorobject
Why it failed at status: failed: { code, message }.
Example
cURLPythonJSON
curl https://api.altrouter.ai/v1/videos \
  -H "Authorization: Bearer ar-..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-2.7-video",
  "prompt": "a drone shot over a rocky coastline at sunrise",
  "resolution": "720p"
}'
Errors
400Invalid request.
401Missing or invalid API key.
402Insufficient credits, or the key’s spending cap is exhausted.
404Model not found.
429Rate limit exceeded.
More from Alibaba
Qwen Image
qwen-image
Wan 2.7
wan-2.7