Wan2.7 reference-to-video, enhanced consistency and performance. Delivers superior stability for characters, props, and scenes. Supports hybrid referencing with up to five mixed image/video inputs and audio timbre cloning. Combined with core engine upgrades, it achieves unprecedented cinematic expressive power. https://bailian.console.alibabacloud.com/cn-beijing?tab=model#/model-market/detail/wan2.7-r2v?serviceSite=asia-pacific-china
Generate video
All API requests must be authenticated using a Bearer token in the Authorization header. Please ensure your API key is active.Authorization: Bearer sk-xxxxxx
These parameters come from the selected model form_schema. Switching models updates this list and the request example.
reference_image*stringRequired. Upload a reference image of the character (JPEG/PNG/BMP/WEBP, 240-8000px, ≤20MB). Refer to it as 'Image 1' in the prompt.
reference_video?stringOptional. Upload a video to guide motion and expressions (mp4/mov, 1-30s, ≤100MB). Reference images + videos must total ≤5.
reference_voice?stringOptional. Upload audio to clone the voice timbre (wav/mp3, 1-10s, ≤15MB). Only the timbre is referenced, not the spoken content.
first_frame?stringOptional. Specify the starting frame; the video is generated from it. When provided, the aspect ratio follows the first frame and the 'Aspect Ratio' setting is ignored.
prompt*stringRequired. Describe the scene and content, max 5000 chars. The reference character is blended into the scene; refer to inputs as 'Image 1' / 'Video 1'.
negative_prompt?stringOptional. Describe content to exclude, max 500 chars.
resolution?stringOutput resolution tier, 720P or 1080P; directly affects cost. Default 1080P.
ratio?stringOutput video aspect ratio: 16:9 / 9:16 / 1:1 / 4:3 / 3:4. Ignored when a first frame is provided. Default 16:9.
duration?numberVideo duration in seconds. 2-15s without a reference video, 2-10s with one. Default 5s; directly affects cost.
prompt_extend?booleanWhen on, an LLM intelligently rewrites your prompt. Enabled by default.
watermark?booleanAdd a fixed 'AI生成' watermark to the bottom-right of the video. Disabled by default.
seed?numberRandom seed, range [0, 2147483647]. System generates a random seed when unspecified.
task_id?stringParameter description for Task Id
status?stringParameter description for Status
error?objectParameter description for Error
message?stringError Message
type?stringError Type
param?stringRelated Parameters
code?stringError Code