Gemini Omni Flash API reference
Everything you need to call Gemini Omni Flash from your code. Base URL https://cheapergen.com/api/v1. Try it first in the playground.
Authentication
Create a key in Dashboard → API keys and send it as a bearer token. Keep keys server-side.
export CHEAPERGEN_API_KEY="cg_live_…"
# every request
Authorization: Bearer $CHEAPERGEN_API_KEYGemini Omni Flash Text to Video API
/api/v1/run/google/gemini-omni-flash/text-to-videoSubmits an asynchronous job and returns 202 with a generation id. Poll GET /api/v1/generations/{id} or pass webhook_url. See job lifecycle.
Input parameters
| Name | Type | Description | Affects price |
|---|---|---|---|
promptrequired | string | Describe the shot: subject, action, camera movement, lighting and style. | No |
aspect_ratio | string (enum) | Landscape or portrait. Values: 16:9 · 9:16 Default: 16:9 | Yes |
resolution | string (enum) | 720p (1080p and 4K aren't available on our channel yet). Values: 720p Default: 720p | Yes |
duration | integer (enum) | Clip length: 4, 6, 8 or 10 seconds. Values: 4 · 6 · 8 · 10 Default: 8 | Yes |
seed | integer | Use the same seed and settings to reproduce a result. Leave empty for random. | No |
webhook_url | string (URL) | Optional. We POST the finished generation here, signed with your webhook secret. Webhooks | No |
Request
curl -X POST https://cheapergen.com/api/v1/run/google/gemini-omni-flash/text-to-video \
-H "Authorization: Bearer $CHEAPERGEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A jazz trio plays in a smoky basement club, the singer leans into the mic and the crowd snaps along",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 8
}'Response
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "google/gemini-omni-flash",
"endpoint": "google/gemini-omni-flash/text-to-video",
"mode": "text-to-video",
"status": "queued",
"input": {
"prompt": "A jazz trio plays in a smoky basement club, the singer leans into the mic and the crowd snaps along",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 8
},
"output": null,
"error": null,
"cost": {
"amount_usd": 0.2255,
"currency": "usd",
"estimated": true,
"official_usd": null,
"saved_usd": null
},
"source": "api",
"started_at": null,
"completed_at": null,
"urls": {
"get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
"cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
},
"created_at": "2026-10-15T09:21:04Z"
}Gemini Omni Flash Image to Video API
/api/v1/run/google/gemini-omni-flash/image-to-videoSubmits an asynchronous job and returns 202 with a generation id. Poll GET /api/v1/generations/{id} or pass webhook_url. See job lifecycle.
Input parameters
| Name | Type | Description | Affects price |
|---|---|---|---|
promptrequired | string | Describe the shot: subject, action, camera movement, lighting and style. | No |
image_urlrequired | string (URL) | Image used as the opening frame. JPG/PNG/WebP, URL or upload. | No |
end_image_url | string (URL) | Optional closing frame — the model animates between the two. | No |
aspect_ratio | string (enum) | Landscape or portrait. Values: 16:9 · 9:16 Default: 16:9 | Yes |
resolution | string (enum) | 720p (1080p and 4K aren't available on our channel yet). Values: 720p Default: 720p | Yes |
duration | integer (enum) | Clip length: 4, 6, 8 or 10 seconds. Values: 4 · 6 · 8 · 10 Default: 8 | Yes |
seed | integer | Use the same seed and settings to reproduce a result. Leave empty for random. | No |
webhook_url | string (URL) | Optional. We POST the finished generation here, signed with your webhook secret. Webhooks | No |
Request
curl -X POST https://cheapergen.com/api/v1/run/google/gemini-omni-flash/image-to-video \
-H "Authorization: Bearer $CHEAPERGEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "The still comes to life: steam rises, the cook turns and smiles at the camera",
"image_url": "https://cdn.cheapergen.ai/samples/portrait.jpg",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 8
}'Response
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "google/gemini-omni-flash",
"endpoint": "google/gemini-omni-flash/image-to-video",
"mode": "image-to-video",
"status": "queued",
"input": {
"prompt": "The still comes to life: steam rises, the cook turns and smiles at the camera",
"image_url": "https://cdn.cheapergen.ai/samples/portrait.jpg",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 8
},
"output": null,
"error": null,
"cost": {
"amount_usd": 0.2255,
"currency": "usd",
"estimated": true,
"official_usd": null,
"saved_usd": null
},
"source": "api",
"started_at": null,
"completed_at": null,
"urls": {
"get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
"cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
},
"created_at": "2026-10-15T09:21:04Z"
}Gemini Omni Flash Reference to Video API
/api/v1/run/google/gemini-omni-flash/reference-to-videoSubmits an asynchronous job and returns 202 with a generation id. Poll GET /api/v1/generations/{id} or pass webhook_url. See job lifecycle.
Input parameters
| Name | Type | Description | Affects price |
|---|---|---|---|
promptrequired | string | Describe the shot: subject, action, camera movement, lighting and style. | No |
reference_image_urlsrequired | string[] (URLs) | Up to 6 images for characters, products, style or scene. Refer to them in the prompt as @Image1, @Image2… Max items: 6 | No |
aspect_ratio | string (enum) | Landscape or portrait. Values: 16:9 · 9:16 Default: 16:9 | Yes |
resolution | string (enum) | 720p (1080p and 4K aren't available on our channel yet). Values: 720p Default: 720p | Yes |
duration | integer (enum) | Clip length: 4, 6, 8 or 10 seconds. Values: 4 · 6 · 8 · 10 Default: 8 | Yes |
seed | integer | Use the same seed and settings to reproduce a result. Leave empty for random. | No |
webhook_url | string (URL) | Optional. We POST the finished generation here, signed with your webhook secret. Webhooks | No |
Request
curl -X POST https://cheapergen.com/api/v1/run/google/gemini-omni-flash/reference-to-video \
-H "Authorization: Bearer $CHEAPERGEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "@Image1 walks into the shop from @Image2 and picks up the bag from @Image3",
"reference_image_urls": [
"https://cdn.cheapergen.ai/samples/reference-1.jpg",
"https://cdn.cheapergen.ai/samples/reference-2.jpg",
"https://cdn.cheapergen.ai/samples/reference-3.jpg"
],
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 8
}'Response
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "google/gemini-omni-flash",
"endpoint": "google/gemini-omni-flash/reference-to-video",
"mode": "reference-to-video",
"status": "queued",
"input": {
"prompt": "@Image1 walks into the shop from @Image2 and picks up the bag from @Image3",
"reference_image_urls": [
"https://cdn.cheapergen.ai/samples/reference-1.jpg",
"https://cdn.cheapergen.ai/samples/reference-2.jpg",
"https://cdn.cheapergen.ai/samples/reference-3.jpg"
],
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 8
},
"output": null,
"error": null,
"cost": {
"amount_usd": 0.2255,
"currency": "usd",
"estimated": true,
"official_usd": null,
"saved_usd": null
},
"source": "api",
"started_at": null,
"completed_at": null,
"urls": {
"get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
"cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
},
"created_at": "2026-10-15T09:21:04Z"
}Get the result
Generations are asynchronous. Poll until status is succeeded, failed or canceled — or pass webhook_url when you submit. Failed generations are refunded automatically.
curl https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4 \
-H "Authorization: Bearer $CHEAPERGEN_API_KEY"More: job lifecycle · webhooks · errors
Gemini Omni Flash pricing
Pay per second of video. No subscription. Failed generations are refunded automatically.
| Tier | Official price | Cheaper Gen. | You save |
|---|---|---|---|
720p · 4 s audio included | $0.087/s | −15% | |
720p · 8 s audio included | $0.072/s | −29% |
- Official price: Gemini API list price for gemini-omni-1.1-flash ($17.50 / 1M video output tokens: 5,792 tokens/s at 720p ≈ $0.101 / s, 8,688 at 1080p ≈ $0.152, 17,376 at 4K ≈ $0.304; input $1.50 / 1M, thinking $9 / 1M). Prices verified 2026-10-16.
- Output is billed per clip length (4, 6, 8 or 10 s); reference images add a fraction of a cent each at Google's rates.