Skip to main content
Wan 2.7

Wan 2.7 -- Generate a video from text

Submit text-to-video task (wan2.7)

POST
/services/aigc/video-generation/video-synthesis
curl --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
  -H 'X-DashScope-Async: enable' \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "wan2.7-t2v",
  "input": {
    "prompt": "A tense detective story with cinematic storytelling. Shot 1 [0\u20133 seconds] wide shot: Rainy New York street at night, neon lights flicker, a detective in a black trench coat walks briskly. Shot 2 [3\u20136 seconds] medium shot: The detective enters an old building, rain wets his coat, the door closes slowly behind him. Shot 3 [6\u20139 seconds] close-up: The detective\u2019s focused eyes, distant sirens sound, he frowns slightly. Shot 4 [9\u201312 seconds] medium shot: The detective moves carefully down a dim hallway, his flashlight illuminating the way. Shot 5 [12\u201315 seconds] close-up: The detective discovers a key clue, his face shows sudden realization."
  },
  "parameters": {
    "resolution": "720P",
    "ratio": "16:9",
    "prompt_extend": true,
    "watermark": true,
    "duration": 15
  }
}'
{
  "request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx",
  "output": {
    "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx",
    "task_status": "PENDING"
  }
}
Generate videos up to 15 seconds at 1080P from text prompts, with optional audio sync and multi-shot narrative.

Changes from wan2.6

  • Resolution control: Set resolution (720P/1080P) + ratio (16:9, 9:16, etc.) instead of exact pixel size.
  • Longer prompts: Up to 5,000 characters (was 1,500).
  • Negative prompt moved: Now under input.negative_prompt instead of parameters.negative_prompt.
  • No shot_type parameter: Describe shots directly in the prompt text.
  • Watermark off by default: watermark defaults to false (was true).

Authorizations

string
header
required

DashScope API Key. Get one from the Qwen Cloud console.

Header Parameters

enum<string>
required

Must be set to enable for asynchronous task submission.

enable

Body

application/json
enum<string>
required

Model identifier. Fixed value: wan2.7-t2v.

wan2.7-t2v
wan2.7-t2v
object
required

Input content for video generation.

object

Video generation parameters.

Response

200-application/json
string

Unique request identifier for tracing and troubleshooting.

4909100c-7b5a-9f92-bfe5-xxxxxx
object