Skip to content

Vidu Q4 Reference to Video

POST/v1/run

Vidu Q4 Preview by Shengshu builds a 3 to 16 second video at up to 4K from up to 12 reference images and 3 voice clips, keeping characters, products, and voices consistent across the clip.

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 vidu/q4/reference-to-video.

Default: vidu/q4/reference-to-video

stringpromptrequired

Text prompt for video generation, max 5000 characters. Refer to references by position: [@reference_image_1], [@reference_image_2], ... for images and [reference_audio_1], [reference_audio_2], ... for audio clips.

array<string>reference_image_urlsrequired

URLs of 1 to 12 reference images (png, jpeg, jpg, webp) used to keep characters, products, objects, or locations consistent.

Optional<array<string>>reference_audio_urls

URLs of up to 3 mp3 reference audio clips (3-12 seconds each, max 50 MB) used to keep voices consistent.

Optional<string>aspect_ratio

The aspect ratio of the output video.

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

Default: 16:9

Optional<boolean>audio

Whether to generate audio (dialogue and sound effects) with the video. When false, the output video is silent.

Default: true

Optional<string>resolution

Output video resolution. Sets the per-second rate.

Allowed values: 540p, 720p, 1080p, 2K, 4K

Default: 720p

Optional<integer>duration

Duration of the video in seconds (3-16)

Range: 3 to 16

Default: 5

Optional<integer>seed

Random seed for reproducibility. If None, a random seed is chosen.

Response Schema

The submit endpoint returns a run response. If its status is pending or running, poll GET /v1/run/{id} with the returned opaque ID until it reaches a terminal state.

stringidrequired

Opaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.

stringstatusrequired

Current public run status.

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

Optional<string>model

Public SandBase model name used for this run.

Optional<array<object>>outputs

Present only for completed runs. Each object is capability-specific; inspect the selected model schema for its fields.

Optional<object>error

Present only for failed or timeout runs. Contains a public error type and sanitized message.

Optional<string>error.type

Stable public error category.

Optional<string>error.message

Sanitized error message safe to show to clients.

Optional<object>usage

Usage details when available.

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