Wan 2.5 Image to Video
/v1/runWan 2.5 by Alibaba - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation.
Request body
Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.
Model identifier. Set to alibaba/wan/2.5/image-to-video.
Default: alibaba/wan/2.5/image-to-video
The text prompt describing the desired video motion. Max 800 characters.
URL of the image to use as the first frame. Must be publicly accessible or base64 data URI.
URL of the audio to use as the background music. Must be publicly accessible. Limit handling: If the audio duration exceeds the duration value (5 or 10 seconds), the audio is truncated to the first 5 or 10 seconds, and the rest is discarded. If the audio is shorter than the video, the remaining part of the video will be silent. For example, if the audio is 3 seconds long and the video duration is 5 seconds, the first 3 seconds of the output video will have sound, and the last 2 seconds will be silent. - Format: WAV, MP3. - Duration: 3 to 30 s. - File size: Up to 15 MB.
Video resolution. Valid values: 480p, 720p, 1080p
Allowed values: 480p, 720p, 1080p
Default: 1080p
Duration of the generated video in seconds. Choose between 5 or 10 seconds.
Allowed values: 5, 10
Default: 5
Random seed for reproducibility. If None, a random seed is chosen.
Response Schema
The submit endpoint returns an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.
Error message if the task failed. Empty on success.
Unique identifier for the generation task.
Model ID used for the prediction.
Array of generated content. Empty when status is not completed.
Status of the task: pending, running, completed, failed, or timeout.
Allowed values: pending, running, completed, failed, timeout
Model capabilities
Capabilities declared by the model registry.
Default: image-to-video
Execution mode declared by the model registry.
Default: async

