Skip to content

Vidu Q4 Image to Video

POST/v1/run

Vidu Q4 Preview by Shengshu animates a first-frame image into a 3 to 16 second video at up to 4K. Prompts can direct motion, camera cuts, and spoken dialogue, with native speech and sound effects.

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/image-to-video.

Default: vidu/q4/image-to-video

Optional<string>prompt

Text prompt for video generation, max 5000 characters. Can direct motion, camera cuts, and spoken dialogue.

Default:

stringimagerequired

URL or base64 data URI of the image to use as the first frame. Supports png, jpeg, jpg and webp up to 50 MB.

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: image-to-video

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async