Skip to main content
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
Important Change: For better performance and cost control, we no longer support passing base64 image data directly in image_urls. Please use the Upload 이미지 API first to upload images and get URLs, then call this endpoint.

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.6
string
필수
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
Example: ["https://example.com/image.jpg"]Note: Cannot be combined with metadata.reference_urls
string
기본값:"16:9"
Video aspect ratio (applies to text-to-video and reference video modes)Available values:
  • 16:9 - Landscape (default)
  • 9:16 - Portrait
  • 1:1 - Square
  • 4:3 - Landscape
  • 3:4 - Portrait
Default: 16:9Note: Not supported in image-to-video mode
string
기본값:"1080p"
Video resolutionAvailable values:
  • 720p - Standard definition
  • 1080p - High definition (default)
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: 5
string
Negative prompt — describe content you do not want in the videoExample: "blurry, low quality, deformed"
integer
Random seed for reproducibilityExample: 12345
boolean
기본값:"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 shot
  • multi - 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.task
string
모델 name used
string
Task status
  • queued - Queued for processing
  • in_progress - Processing
  • completed - Successfully completed
  • failed - 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.