Gemini Omni 1.2 Flash
gemini-omni-1.2-flashGenerate 360p or 720p video with native audio using the Gemini Omni 1.2 Flash API. Use text or up to six reference images for a 3–15 second clip, or set a first frame with an optional last frame. A clip with a last frame can run up to 10 seconds. Make a product demo from photos taken at different angles, or connect two storyboard images into a shot that moves through a shop entrance. Find video generation request examples, supported parameters, and usage pricing on the model page.
Auto route pricing
Route source: yir
This route has conditional pricing. Review its tiers and requirements before calling.
- Published rate
- Conditional pricing
- Billing unit
- / second
- Context / Max output
- — / —
- Live routes
- 1
On this page
Overview
Overview for yir
Gemini Omni 1.2 Flash API Guide for Reference Images and Frame Transitions
Gemini Omni 1.2 Flash makes short videos with audio from written prompts, product photos, or storyboards. OpenAny offers text-to-video, image-to-video with a first frame and optional last frame, and video generation with multiple reference images. Use frames to set how a shot begins and ends, or use several references to guide the look of a product, setting, or material. Google DeepMind model card · OpenAny route parameters
Example output
Watch Google's Pantheon fly-through ↗
Watch Google's ramen shop opening and closing frame comparison ↗
Example | Input and action | What to check |
|---|---|---|
Pantheon fly-through | Two architectural references guide a camera through the plaza and bronze doors and up toward the dome. | Check whether the layout makes sense as the camera moves indoors and whether the shot feels continuous. |
Ramen shop transition | An exterior opening frame and an interior closing frame guide a forward move into the shop. | Check how the two frames connect and whether the furniture stays consistent during the move. |
Google published both demos. The ramen shop clip compares versions 1.1 and 1.2 side by side. The OpenAny quickstart below lets you try a similar continuous move. Google announcement and demos
Modes and settings
Mode | Input | Duration |
|---|---|---|
Text to video | Describe the subject, movement, camera path, and sound in one prompt. | 3–15 seconds |
First and optional last frame to video | Supply one | 3–15 seconds with only a first frame, or 3–10 seconds with a last frame |
Reference images to video | Supply one to six images with the | 3–15 seconds |
All three OpenAny modes offer 360p or 720p, in 16:9 or 9:16, with one clip per task. Use publicly accessible HTTPS URLs for images.
Quickstart
In the OpenAny Playground, choose Text to video. This prompt generates one continuous shot from the street into a bookstore. Send a POST request to https://api.openany.si/v1/videos with the header Authorization: Bearer $OPENANY_API_KEY.
{
"model": "gemini-omni-1.2-flash",
"route": { "provider": "yir" },
"route_mode": "balanced",
"input": {
"type": "text",
"prompt": "One continuous eye-level dolly shot from a rain-wet sidewalk through the open door of a small bookstore. Pass a row of shelves and stop on a warm reading lamp beside an armchair. Maintain a steady walking pace and consistent lighting transitions. Include distant rain fading into quiet indoor ambience, with no dialogue."
},
"parameters": {
"duration": 8,
"resolution": "720p",
"aspect_ratio": "16:9",
"n": 1
}
}
Poll GET /v1/videos/{task_id} and retrieve the video URL from the result's file list when the task succeeds. Check the layout around the doorway, the change in lighting, and whether the camera comes to rest at the reading nook. If you have an exterior image and an interior image, try the first-and-last-frame mode and keep the clip within 10 seconds.
Generation and editing
Google also demonstrates conversational editing of previously generated clips. The OpenAny modes covered here generate new clips through the asynchronous video API. Google's native API capabilities
Playground
Submit a Yir Standard video job, then query its task ID to retrieve the result.
Result preview
yir · 221ms
This example shows the response structure. Generated video appears here after the run completes.
{
"id": "YOUR_TASK_ID",
"model": "google/gemini-omni-1.2-flash",
"object": "job",
"status": "queued",
"parameters": {
"n": 1,
"duration": 10,
"resolution": "720p",
"aspect_ratio": "16:9"
}
}Agent handoff preview
Providers
| Provider | Pricing | Latency | Uptime | Supply | Route |
|---|---|---|---|---|---|
Live | Input $0.023 / second | 221ms | — | Verified |
| Video specification | Price per second |
|---|---|
| Estimated output · 360p | $0.023 |
| Estimated output · 720p | $0.070 |
Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.
API
- Base URL
https://api.openany.si/v1- POST
/v1/videos- GET
/v1/videos/{task_id}- Authentication
Authorization: Bearer $OPENANY_API_KEY
Request parameters
| Parameter | Type / range | Default value | Required | Description |
|---|---|---|---|---|
prompt | string | A paper lantern drifts across a still lake at dusk. The camera follows it slowly as ripples catch the light. | Yes | Describe the scene, movement, and camera behavior. |
duration | integer · 3 ~ 15 | 10 | No | Output length in whole seconds. |
resolution | string · 360p | 720p | 720p | No | Output video resolution. |
aspect_ratio | string · 16:9 | 9:16 | 16:9 | No | Aspect ratio of the output. Available values depend on the selected input mode. |
n | integer · 1 1 ~ 1 | 1 | No | Each submitted job generates one video. |
Request example
curl 'https://api.openany.si/v1/videos' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A paper lantern drifts across a still lake at dusk. The camera follows it slowly as ripples catch the light.",
"type": "text"
},
"model": "gemini-omni-1.2-flash",
"parameters": {
"aspect_ratio": "16:9",
"duration": 10,
"n": 1,
"resolution": "720p"
},
"route_mode": "balanced"
}'Response example
Configured response example · not a live result
{
"id": "YOUR_TASK_ID",
"model": "google/gemini-omni-1.2-flash",
"object": "job",
"status": "queued",
"parameters": {
"n": 1,
"duration": 10,
"resolution": "720p",
"aspect_ratio": "16:9"
}
}Error handling
400Check the model ID and request fields.429Retry with exponential backoff.5xxRetry only temporary provider failures.JSON Schema
{
"type": "object",
"required": [
"model",
"input",
"parameters"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"prompt"
],
"properties": {
"type": {
"const": "text"
},
"prompt": {
"type": "string",
"minLength": 1,
"description": "Describe the scene, motion, and camera movement in English or your preferred language."
}
},
"additionalProperties": false
},
"model": {
"type": "string",
"const": "gemini-omni-1.2-flash"
},
"route": {
"type": "object",
"properties": {
"provider": {
"const": "yir"
}
}
},
"parameters": {
"type": "object",
"properties": {
"n": {
"enum": [
1
],
"type": "integer",
"default": 1,
"description": "Each submitted job generates one video."
},
"duration": {
"type": "integer",
"default": 10,
"maximum": 15,
"minimum": 3,
"description": "Output length in whole seconds."
},
"resolution": {
"enum": [
"360p",
"720p"
],
"type": "string",
"default": "720p",
"description": "Output video resolution."
},
"aspect_ratio": {
"enum": [
"16:9",
"9:16"
],
"type": "string",
"default": "16:9",
"description": "Aspect ratio of the output. Available values depend on the selected input mode."
}
},
"additionalProperties": false
},
"route_mode": {
"type": "string",
"default": "balanced"
}
}
}Examples
Request example
POST /v1/videoscurl 'https://api.openany.si/v1/videos' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A paper lantern drifts across a still lake at dusk. The camera follows it slowly as ripples catch the light.",
"type": "text"
},
"model": "gemini-omni-1.2-flash",
"parameters": {
"aspect_ratio": "16:9",
"duration": 10,
"n": 1,
"resolution": "720p"
},
"route_mode": "balanced"
}'