Skip to main content
POST
Create video generation task (Alibaba Wan compatible protocol)
This endpoint is fully compatible with the Alibaba Wan (DashScope) protocol, so you can reuse the parameter structure from the official documentation. The X-DashScope-Async header is not required because async semantics are built into the gateway. model must be a platform model identifier (e.g. wan2.7-t2v / wan2.7-i2v / wan2.7-r2v / wan2.7-videoedit), which the gateway rewrites to the channel model name after routing.

Request structure

The request body consists of three parts:
  • model: platform model identifier (required)
  • input: input content, including prompt / negative_prompt / audio_url and the media element list media (first frame / last frame / reference image / reference video / video to edit; accepts public URLs or base64 data URIs, with reference_voice to specify the subject’s voice timbre)
  • parameters: generation parameters, including resolution / ratio / duration / watermark / seed / prompt_extend / audio_setting
audio_setting is only effective for video editing models: auto (default) lets the model decide whether to regenerate audio based on the prompt; origin forcibly keeps the original sound of the input video.

Authentication

Include the Authorization header in the format Bearer YOUR_API_KEY.

Supported Video Models

Quick example

A successful creation returns the task ID:

Next steps

Headers

Authorization
string
required

API Key token (Bearer sk-xxx)

Content-Type
string

Body

application/json
model
string
required

Platform model identifier (e.g. wan2.7-t2v / wan2.7-i2v / wan2.7-r2v / wan2.7-videoedit), rewritten to the channel model name by the gateway after routing

input
object

Input content (prompt and media elements)

parameters
object

Generation parameters

Response

200 - application/json
request_id
string

Gateway request ID

output
object

Task output