Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Vidu Q4 Preview reference-to-video request. Requires a prompt and 1-15 reference images.

prompt
string
required

Required scene description, up to 20000 characters. Reference tokens such as [@reference_image_1] are passed through unchanged.

Required string length: 1 - 20000
Example:

"In the scene, the character waves hello."

reference_images
string[]
required

Reference image URLs, 1 to 15. Appearance is preserved while the prompt defines the new action.

Required array length: 1 - 15 elements
Minimum string length: 1
Example:
audio_urls
string[]

Optional reference audio URLs, up to 3 mp3 files.

Maximum array length: 3
Minimum string length: 1
Example:
audio
boolean
default:true

Whether to generate audio with the video. Default true. Set false for a silent video.

Example:

true

duration
integer
default:5

Video duration in seconds. Default 5. Allowed range: 3-16.

Required range: 3 <= x <= 16
Example:

5

aspect_ratio
enum<string>
default:16:9

Output aspect ratio. Default 16:9.

Available options:
16:9,
9:16,
1:1,
3:4,
4:3
Example:

"3:4"

resolution
enum<string>
default:720p

Video resolution. Default 720p. Allowed values: 540p, 720p, 1080p, 2K, 4K.

Available options:
540p,
720p,
1080p,
2K,
4K
Example:

"720p"

seed
integer

Random seed. Omit or use 0 for a random seed.

Example:

1

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.