Wan Reference to Video
Submit an asynchronous Ali wan2.7-r2v generation task.
This capability uses the top-level media array as the public multimodal input. Supported media.type values are reference_image, reference_video, and first_frame.
Current public rules:
promptis required;- include at least one
reference_imageorreference_videoitem; - you may provide at most five
reference_image/reference_videoitems in total; first_frameis optional and can appear at most once;sizesupports only720Pand1080P;ratiosupports16:9,9:16,1:1,4:3, and3:4;secondsaccepts integer strings from2to15, but when anyreference_videois included the allowed range is2to10.
Prompt referencing follows the submitted media order. Refer to image references as Image 1, Image 2, and to video references as Video 1, Video 2, counting separately within each media type.
Authorizations
Pass Authorization: Bearer <token> in the request header.
Body
Ali wan2.7-r2v model.
wan2.7-r2v Text prompt describing the desired video. Use Image x and Video x references when multiple reference media items are provided.
Public multimodal input for wan2.7-r2v. Include one or more reference_image or reference_video items, optionally plus one first_frame item.
Output resolution tier for the current public implementation.
720P, 1080P Video duration (seconds) as a string. Default is "5".Range: [2, 15] for reference videos containing video, [2, 10] for reference videos without video.
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 Output aspect ratio.
16:9, 9:16, 1:1, 4:3, 3:4 Optional negative prompt describing content that should not appear in the generated video.
Whether to enable prompt rewriting. The default value is true.
Whether to add a watermark. The default value is false.
Random seed. If omitted, the system generates one automatically.
0 <= x <= 2147483647Response
Submission successful. Returns the unified OpenAI-style video task object.
Public task ID.
Public task ID alias.
"video"
Model name.
Unified video task status.
queued, in_progress, completed, failed, unknown Task progress percentage.
Unix timestamp in seconds.