Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Vidu Q3 first-last frame to video request. The model animates a seamless transition from first_frame_image to last_frame_image. Both images are required.

first_frame_image
string
required

Opening frame of the video (the scene that the animation starts from). Accepts a URL or base64 data URI.

Minimum string length: 1
Example:

"https://example.com/sunrise.jpg"

last_frame_image
string
required

Closing frame of the video (the scene that the animation ends at). Accepts a URL or base64 data URI.

Minimum string length: 1
Example:

"https://example.com/sunset.jpg"

prompt
string

Description of the transition between the two frames

Required string length: 1 - 5000
Example:

"A flower slowly blooms, petals unfurling in the warm morning light"

duration
integer
default:5

Video duration in seconds

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

8

resolution
enum<string>
default:720p

Video resolution

Available options:
540p,
720p,
1080p
Example:

"1080p"

seed
integer

Random seed for reproducibility

Example:

2468

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.