Skip to content

Wan 2.7 Reference to Video

POST/v1/run

Alibaba Wan 2.7 reference-to-video model generating video guided by reference content.

Request body

Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.

stringmodelrequired

Model identifier. Set to alibaba/wan/2.7/reference-to-video.

Default: alibaba/wan/2.7/reference-to-video

stringpromptrequired

The text prompt to generate a video from.

Default: A golden retriever puppy running through a field of wildflowers in slow motion, ears flapping, tongue out, soft backlight

array<string>imagesrequired

The URLs of reference images to guide video generation. Provide at least one reference image or video.

Optional<array<string>>videos

The URLs of reference videos to guide video generation.

Optional<array<string>>audios

The URLs of reference audio files to guide video generation.

Optional<integer>duration

The duration of the generated video in seconds.

Allowed values: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

Default: 5

Optional<string>aspect_ratio

The aspect ratio of the generated video.

Allowed values: 16:9, 9:16, 1:1, 4:3, 3:4

Optional<string>resolution

The resolution of the video to generate.

Allowed values: 720p, 1080p

Default: 720p

Response Schema

The submit endpoint returns an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.

Optional<string>error

Error message if the task failed. Empty on success.

stringidrequired

Unique identifier for the generation task.

Optional<string>model

Model ID used for the prediction.

Optional<array>outputs

Array of generated content. Empty when status is not completed.

stringstatusrequired

Status of the task: pending, running, completed, failed, or timeout.

Allowed values: pending, running, completed, failed, timeout

Model capabilities

array<string>capability_tagsrequired

Capabilities declared by the model registry.

Default: reference-to-video

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async