Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Vidu Q4 Preview image-to-video request. One start frame. Prompt is optional because recommended-prompt mode defaults to true.

first_frame_image
string
required

Start-frame image URL. Exactly one image. png, jpeg, jpg, and webp are accepted.

Minimum string length: 1
Example:

"https://example.com/start-frame.jpg"

prompt
string

Optional motion description, up to 20000 characters.

Required string length: 1 - 20000
Example:

"The astronaut waved and the camera moved up."

is_rec
boolean
default:true

Use the recommended prompt. Default true. Set false to follow the user prompt only.

Example:

true

duration
integer
default:5

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

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

5

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"

audio
boolean
default:true

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

Example:

true

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.