Skip to main content
POST
gemini-omni-1.2-flash

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

Must be one of: gemini-omni-1.2-flash.

Available options:
gemini-omni-1.2-flash
duration
integer
default:5

3–10 seconds for interpolation and extend. Omit for edit, upscale, or automatic mode with videos. Defaults to 5.

Required range: 3 <= x <= 15
resolution
enum<string>
default:720P

Upscale requires an explicit 720P, 1080P or 4K target. Defaults to 720P.

Available options:
1080P,
360P,
4K,
720P
size
enum<string>
default:16x9

Omit for edit, extend, upscale, or automatic mode with videos. Defaults to 16x9.

Available options:
16x9,
9x16
extends.omni.task
enum<string>

Leave unset for automatic mode.

Available options:
edit,
extend,
image_to_video,
reference_to_video,
text_to_video,
upscale
first_frame_image
string

First frame URL or Base64 data URI.

last_frame_image
string

This field's allowed values depend on: first_frame_image.

image_list
string[]

Edit and extend accept at most two references. Upscale accepts none.

Maximum array length: 10
video_list
string[]

Edit, extend, and upscale require one source video.

Maximum array length: 3
seed
integer
prompt
string

Required except in upscale mode.

Minimum string length: 1

Response

Business response. code=0 means the task was accepted; validation failures can return HTTP 200 with code=400.

code
enum<integer>
required
Available options:
0
Example:

0

data
object
required
msg
string
required
Example:

"success"

request_id
string<uuid>
Example:

"250b66dd-e1fb-4bb6-b5f6-c668efadc35d"