Gemini Omni Flash API documentation
Everything you need to call Gemini Omni Flash from your code. Base URL https://cheapergen.com/api/v1. Try it first in the playground.
Using a coding agent?
Paste this into Claude Code, Cursor, Codex or any coding agent. It adds the API to your project, keeps the key in CHEAPERGEN_API_KEY and tests with a free quote before anything is spent.
Add Gemini Omni Flash (CheaperGen endpoint google/ gemini-omni-flash/ text-to-video) to this project by following https:/ / cheapergen.com/ agents/ integrate.mdAuthentication
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 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
const API = "https://cheapergen.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
"Content-Type": "application/json",
};
// 1. Submit the job
let job = await fetch(`${API}/run/google/gemini-omni-flash/text-to-video`, {
method: "POST",
headers,
body: JSON.stringify({
"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
}),
}).then((r) => r.json());
// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
await new Promise((r) => setTimeout(r, 3000));
job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}
console.log(job.status === "succeeded" ? job.output.video.url : job.error);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,
"list_price_source": "official",
"list_price_label": "Official",
"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) | The video's shape. If the first frame's shape differs, it is padded or cropped to this ratio. Values: 16:9 · 9:16 Default: 16:9 | Yes |
resolution | string (enum) | 720p (1080p and 4K aren't available 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
const API = "https://cheapergen.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
"Content-Type": "application/json",
};
// 1. Submit the job
let job = await fetch(`${API}/run/google/gemini-omni-flash/image-to-video`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "The still comes to life: steam rises, the cook turns and smiles at the camera",
"image_url": "https://cdn.cheapergen.com/samples/portrait.jpg",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 8
}),
}).then((r) => r.json());
// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
await new Promise((r) => setTimeout(r, 3000));
job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}
console.log(job.status === "succeeded" ? job.output.video.url : job.error);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.com/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,
"list_price_source": "official",
"list_price_label": "Official",
"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 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
const API = "https://cheapergen.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
"Content-Type": "application/json",
};
// 1. Submit the job
let job = await fetch(`${API}/run/google/gemini-omni-flash/reference-to-video`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "@Image1 walks into the shop from @Image2 and picks up the bag from @Image3",
"reference_image_urls": [
"https://cdn.cheapergen.com/samples/reference-1.jpg",
"https://cdn.cheapergen.com/samples/reference-2.jpg",
"https://cdn.cheapergen.com/samples/reference-3.jpg"
],
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 8
}),
}).then((r) => r.json());
// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
await new Promise((r) => setTimeout(r, 3000));
job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}
console.log(job.status === "succeeded" ? job.output.video.url : job.error);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.com/samples/reference-1.jpg",
"https://cdn.cheapergen.com/samples/reference-2.jpg",
"https://cdn.cheapergen.com/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,
"list_price_source": "official",
"list_price_label": "Official",
"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"{
"status": "succeeded",
"output": {
"video": {
"url": "https://cdn.cheapergen.com/outputs/gen_8c2Q.mp4",
"content_type": "video/mp4"
}
}
}More: job lifecycle · webhooks · errors
Gemini Omni Flash pricing
Pay per second of video as you go, with no subscription required. Failed generations are refunded automatically.
| Tier | Official price | CheaperGen | You save |
|---|---|---|---|
720p · 4 s audio included | $0.0927/s With a monthly plan: Pro $0.0921Max $0.0915 | −9% | |
720p · 8 s audio included | $0.089/s With a monthly plan: Pro $0.0873Max $0.0856 | −13% |
Monthly plans lower prices on most models (shown under each price); you can still pay as you go. Pro $499/month · Max $4,999/month.
- 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 October 18, 2026.
- 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.