Wan 2.7 Video Generation
Video Series
Wan 2.7 Video Generation
Alibaba Wan 2.7 text-to-video, image-to-video, and reference-to-video
POST
Wan 2.7 Video Generation
Introduction
Wan 2.7 is Alibaba Cloud Bailian’s video generation family: text-to-video (Wan2.7-t2v), image-to-video (Wan2.7-i2v), reference-to-video (Wan2.7-r2v), and video editing (Wan2.7-videoedit). It supports 720P and 1080P output. Use TenndaAI’s unified video API: submit a task to get atask_id, then query the task to poll status and get url.
Wan 2.7 passes underlying DashScope parameters via
metadata.input and metadata.parameters, unlike the flat fields used by Wan 2.5.Authentication
string
required
Bearer Token, e.g.
Bearer sk-xxxxxxxxxxSupported models
Call flow
- Submit:
POST /v1/video/generationswithmodel,prompt,duration, and Wan parameters inmetadata. - Poll:
GET /v1/video/generations/{task_id}every 3–15 seconds untilsucceededorfailed. - Result: On success,
urlcontains the video (typically valid for 24 hours—download promptly).
Request structure
Submit response
Query response (success)
Usage scenarios
- Text-to-video (T2V)
- Image-to-video (I2V)
- Reference-to-video (R2V)
Generate video from text with multi-shot prompts, prompt rewriting, and optional custom audio.Multi-shot example:
string
required
Text prompt. Use shot timestamps, e.g. “Shot 1 [0-3s] … Shot 2 [3-6s] …”
string
Negative prompt, max 500 characters
string
Custom audio URL (wav/mp3), 2–30s, max 15MB
string
default:"720P"
720P or 1080Pstring
default:"16:9"
Aspect ratio:
16:9, 9:16, 1:1, 4:3, 3:4integer
default:"5"
Duration in seconds, 2–15
boolean
default:"true"
Enable prompt rewriting
boolean
default:"false"
Add watermark
Parameter reference
Common parameters
T2V & R2V
Media limits
Error handling
On failure,
status is failed and error.message has details.
FAQ
How long is the video URL valid?
How long is the video URL valid?
url and task_id are typically valid for 24 hours. Download and store promptly.How do I use voice reference?
How do I use voice reference?
Only wan2.7-r2v supports
reference_voice on reference_image or reference_video (1–10s audio URL).What I2V modes are supported?
What I2V modes are supported?
- First frame:
first_frame(optionaldriving_audio) - First + last:
first_frame+last_frame - Continuation:
first_clip
How is Wan 2.7 different from Wan 2.5?
How is Wan 2.7 different from Wan 2.5?
Wan 2.7 uses
metadata.input / metadata.parameters and media; Wan 2.5 uses flat top-level fields. See Submit video task.Related endpoints
Submit video task
Unified submit endpoint and multi-model parameters
Query video task
Poll status and get video URL
