Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Gemini Omni Flash image-to-video request. Animates a single input image (used as the opening frame). Supports aspectRatio and duration (up to 10 seconds). Output is fixed at 720p.

prompt
string
required

Video description text

Minimum string length: 1
Example:

"The cat slowly blinks and looks around"

image
string
required

Starting frame. Accepts an image URL (e.g. https://example.com/frame.jpg).

Example:

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

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.