Wan2.6
Wan2.6 動画生成
Generate high-quality videos using Alibaba Cloud Wan2.6 model — supports text-to-video, image-to-video and reference-video
POST
- Alibaba Cloud Wanxiang video generation model
- Supports three modes: Text-to-Video, Image-to-Video, and Reference Video (r2v)
- Server automatically routes to the appropriate upstream model based on your request parameters
- Supports 720p/1080p resolution, 5/10/15 second duration
- Audio is always included in the generated output
Routing Logic
The server automatically selects the upstream model based on what parameters you provide:認証
string
必須
All endpoints require Bearer Token authenticationGet your API Key from the API Key Management PageAdd to request header:
リクエストパラメータ
string
必須
Video generation model name, fixed as
wan2.6string
必須
Video content description必須 for text-to-video mode; optional for image-to-video and reference video modes (describe expected motion or style)Example:
"A cute cat stretching in the sunshine"string[]
Reference image URL array for image-to-video mode (only supports 1 image)⚠️ URL format only (base64 no longer supported)
- Publicly accessible image URL (http:// or https://)
- You can use the Upload 画像API to upload local images and get URLs
["https://example.com/image.jpg"]Note: Cannot be combined with metadata.reference_urlsstring
デフォルト:"16:9"
Video aspect ratio (applies to text-to-video and reference video modes)Available values:
16:9- Landscape (default)9:16- Portrait1:1- Square4:3- Landscape3:4- Portrait
16:9Note: Not supported in image-to-video modestring
デフォルト:"1080p"
Video resolutionAvailable values:
720p- Standard definition1080p- High definition (default)
1080p480p is not supported. Billed per second; different resolutions have different prices — refer to the model marketplace for details.integer
デフォルト:"5"
Video duration (seconds)Supported values:
5, 10, 15Default: 5string
Negative prompt — describe content you do not want in the videoExample:
"blurry, low quality, deformed"integer
Random seed for reproducibilityExample:
12345boolean
デフォルト:"true"
Auto-extend promptWhen enabled, the system automatically optimizes and enriches your prompt. Enabled by default — set to
false to disable.boolean
Include audio in the generated videoNon-flash Wan2.6 models always include audio by default. Set to
true to explicitly enable.string
Shot type (applies to text-to-video and reference video modes)Available values:
single- Single continuous shotmulti- Multi-shot (cinematic cuts)
boolean
Add an Alibaba Cloud watermark to the generated video
object
Extended parameters
Resolution and Aspect Ratio Combinations
レスポンス
string
Unique task identifier for status queries
string
Object type, always
generation.taskstring
モデル name used
string
Task status
queued- Queued for processingin_progress- Processingcompleted- Successfully completedfailed- Failed
integer
Task progress percentage (0-100)
integer
Task creation timestamp (Unix timestamp)
object
Task metadata
Usage Scenarios
Scenario 1: Text-to-Video
Scenario 2: Image-to-Video
Scenario 3: Reference Video (r2v)
Scenario 4: Text-to-Video (Full パラメータ)
Querying Task ResultsVideo generation is an asynchronous task. After submission, a
task_id is returned. Use the Get Video Task ステータス interface to query generation progress and results.