Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Gemini Omni Flash text-to-video request. Supports prompt, aspectRatio (16:9 or 9:16), and duration (up to 10 seconds). Output is fixed at 720p with synchronized audio.

prompt
string
required

Video description text

Minimum string length: 1
Example:

"A red paper boat drifting down a rainy street at night, cinematic"

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.