Skip to main content
POST
Gemini Omni Flash Video Edit

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Gemini Omni Flash video editing request. Applies the instruction in prompt to the input video. Output preserves the source video's aspect ratio and length; aspectRatio and duration are not accepted. Source video should be 3 to 10 seconds; output is 720p.

prompt
string
required

Video description text

Minimum string length: 1
Example:

"Change the scene to a snowy winter night"

video
string
required

The video to edit. Accepts a video URL (e.g. https://example.com/clip.mp4).

Example:

"https://example.com/clip.mp4"

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.