Skip to main content
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 a task_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-xxxxxxxxxx

Supported models

Call flow

  1. Submit: POST /v1/video/generations with model, prompt, duration, and Wan parameters in metadata.
  2. Poll: GET /v1/video/generations/{task_id} every 3–15 seconds until succeeded or failed.
  3. Result: On success, url contains the video (typically valid for 24 hours—download promptly).

Request structure

Submit response

Query response (success)

Usage scenarios

Generate video from text with multi-shot prompts, prompt rewriting, and optional custom audio.
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 1080P
string
default:"16:9"
Aspect ratio: 16:9, 9:16, 1:1, 4:3, 3:4
integer
default:"5"
Duration in seconds, 2–15
boolean
default:"true"
Enable prompt rewriting
boolean
default:"false"
Add watermark
Multi-shot example:

Parameter reference

Common parameters

T2V & R2V

Media limits

Error handling

On failure, status is failed and error.message has details.

FAQ

url and task_id are typically valid for 24 hours. Download and store promptly.
Only wan2.7-r2v supports reference_voice on reference_image or reference_video (1–10s audio URL).
  • First frame: first_frame (optional driving_audio)
  • First + last: first_frame + last_frame
  • Continuation: first_clip
Wan 2.7 uses metadata.input / metadata.parameters and media; Wan 2.5 uses flat top-level fields. See Submit video task.

Submit video task

Unified submit endpoint and multi-model parameters

Query video task

Poll status and get video URL