Skip to main content
POST
Gemini Omni Flash R2V

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Gemini Omni Flash reference-to-video request. Fuses 1 to 3 referenceImages guided by the prompt. Supports aspectRatio and duration (up to 10 seconds). Output is fixed at 720p.

prompt
string
required

Video description text

Minimum string length: 1
Example:

"Combine the character and the background style into one scene"

referenceImages
string[]
required

1 to 3 reference image URLs whose subjects or styles are fused into the video, guided by the prompt.

Required array length: 1 - 3 elements
Example:
aspectRatio
enum<string>
default:16:9

Video aspect ratio. Output resolution is fixed at 720p.

Available options:
16:9,
9:16
Example:

"16:9"

duration
enum<string>
default:8

Video duration in seconds (string type). Maximum 10 seconds.

Available options:
4,
6,
8,
10
Example:

"8"

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.