About Gemini Omni 1.2 Flash
google/gemini-omni-1.2-flash offers four tasks: text-to-video, image-to-video, reference-to-video and video-edit. Generation tasks return a 3 to 15 second MP4 with sound in 16:9 or 9:16; edits return the source clip re-rendered and capped at 10 seconds. Resolution is the main cost lever: 360p and 720p are native renders, while 1080p and 4K are the same render upscaled by Google, so a low-resolution draft followed by a rerun at the delivery tier is a sensible two-step flow. Google notes the model may cut between several shots unless the prompt asks for a single continuous take.
Call it with the model name google/gemini-omni-1.2-flash/text-to-video on POST /jobs/createTask, from $0.135.
Introduction
Gemini Omni 1.2 Flash text-to-video starts with a written idea. Give the place, the action and what should be heard, then choose 3–15 whole seconds. An unset duration produces an 8-second scene. Use 16:9 for a landscape composition or 9:16 for a vertical one.
This route suits an idea that has no starting picture. In our tests, a rainy market prompt produced a cook tossing noodles and saying the requested line, with sizzling oil and background chatter. Google says Omni may build a short story across several shots unless you request a continuous take.
Key features
- Generate the visual scene and its sound together from a required text prompt.
- Set duration in whole seconds, including short 3-second drafts and scenes up to 15 seconds.
- Choose direct 360p or 720p, or request 1080p/4K upscaling by Google at a higher rate.
- Receive 24 fps MP4 video containing an AAC audio track.
- Describe spoken lines, music or environmental effects within the same prompt.
Request parameters
| Parameter | Required | Description |
|---|---|---|
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 10000 · ≤ 99999 |
prompt | Yes | Describe what you want to make. |
resolution | No | Choose an available output size. 360p · 720p · 1080p · 4k · Default: 720p |
aspect_ratio | No | The shape of the frame: wide, square or tall. 16:9 · 9:16 · Default: 16:9 |
duration_seconds | No | Length of the generated clip. 3–15 · Default: 8 |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per second |
|---|---|
| resolution 360p | $0.027 |
| resolution 720p | $0.079 |
| resolution 1080p | $0.118 |
| resolution 4K | $0.236 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
- Plan a food-stall vignette with a short line of dialogue and cooking sounds.
- Create a vertical rainy-street scene for a social post without preparing a still.
- Explore a lantern-lit market concept in 360p before selecting a delivery size.
Prompt guide & pro tips
- Establish a specific setting first, such as “a lantern-lit market after rain,” so the action has a clear location.
- Give the subject one readable task, such as “the cook tosses noodles,” before adding another event.
- For an uninterrupted view, follow Google’s guidance and add “in a single continuous shot.”
- Quote a short spoken line, such as “Ready in a minute,” and describe surrounding sound separately.
- For a scene without speech, use Google’s suggested wording “No dialogue”; there is no separate negative-prompt field.
API quick start
Call the Gemini Omni 1.2 Flash API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model google/gemini-omni-1.2-flash/text-to-video and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "google/gemini-omni-1.2-flash/text-to-video",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration_seconds": 8
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
What to build with the Gemini Omni 1.2 Flash API
- A cheap preview mode that renders 360p at three or four seconds, then promotes approved prompts to 720p or 4K with the same seed for a closer, though not identical, second take.
- A two-character story tool that sends up to three reference images per character for two characters, plus one short motion clip, to reference-to-video.
- A change-the-scene action on uploaded footage: video-edit with a plain-language change and the closing sentence 'Keep everything else the same.'
Gemini Omni 1.2 Flash parameter notes
- duration_seconds is an enum of whole seconds from 3 to 15 with a default of 8. Adding last_image_url on image-to-video narrows the valid range to 3 to 10, so revalidate whenever a user attaches a closing frame.
- seed must sit between 10000 and 99999 rather than starting at zero; out-of-range values fail validation. Omit it for random output, and treat a fixed seed as a comparison aid, not a promise of identical frames.
- aspect_ratio accepts only 16:9 and 9:16. Map square or 4:5 requests from your interface to one of these and crop afterwards.
- video-edit takes only video_url, prompt and resolution. There is no duration or aspect field; output follows the source timing and stops at 10 seconds.
How Gemini Omni 1.2 Flash API pricing adds up
Every task is billed per second at the rate of the selected resolution. Native 360p is roughly a third of the 720p rate, and 4K is the most expensive tier. Generation tasks bill the requested duration; video-edit bills the source clip's seconds, rounded up, with a three-second minimum and nothing past 10 seconds, on its own higher per-second scale. Reference images and clips carry no separate charge. Charges come from your PopNow balance in USD.
- resolution 360p, 5-second clip: $0.135 each, $13.50 for 100 clips
- resolution 4k, 5-second clip: $1.18 each, $118.00 for 100 clips
Async jobs, webhooks and rate limits
Every Gemini Omni 1.2 Flash request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for google/gemini-omni-1.2-flash/text-to-video never runs or bills twice.
Common Gemini Omni 1.2 Flash API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | A duration over 10 seconds together with last_image_url, a seed outside 10000 to 99999, an aspect ratio other than 16:9 or 9:16, or a reference-to-video call with neither images nor clips. |
invalid_asset | A reference clip longer than three seconds, more than six images or three clips, or an edit source that is not an MP4 file. |
content_rejected | Google declined the prompt or an upload. Revise the input; repeating the same request will be declined again. |
Gemini Omni 1.2 Flash API questions
How much does the Gemini Omni 1.2 Flash API cost?
Gemini Omni 1.2 Flash starts at $0.135 for a 5-second clip with Create Video, its lowest-priced task. Prices by option: 360p $0.027 per second, 720p $0.079 per second, 1080p $0.118 per second, 4K $0.236 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for Gemini Omni 1.2 Flash in the API?
Put google/gemini-omni-1.2-flash/text-to-video for Create Video; google/gemini-omni-1.2-flash/image-to-video for Image to Video; google/gemini-omni-1.2-flash/reference-to-video for Reference to Video; google/gemini-omni-1.2-flash/video-edit for Edit Video in the model field of POST /jobs/createTask.
Is the 4K output from Gemini Omni 1.2 Flash native?
No. 360p and 720p are rendered natively; 1080p and 4K are Google upscales. Use them for delivery size, and judge composition and motion on the native tiers.
Do reference clips contribute sound?
No. Audio in reference_video_urls is ignored and the soundtrack is generated from the prompt, so describe the sound you want in words.
How long is an edited Gemini Omni clip?
It follows the source pacing up to 10 seconds. Longer sources are cut, so trim to the section you care about before upload rather than relying on where the cut lands.
What are the limits of the Gemini Omni 1.2 Flash API?
Clip length: 3–15 s; Resolutions: 360p · 720p · 1080p · 4K; Aspect ratios: 16:9 · 9:16; Prompt length (characters): 20,000. Requests outside these limits are rejected before anything is charged.
Can I try Gemini Omni 1.2 Flash without writing code?
Run Gemini Omni 1.2 Flash in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All Gemini models
- Gemini 3.8 Flash TTS APIExpressive speech that acts out cues like [laughing]From $0.00032 per second
- Gemini Omni 1.2 Flash APIVideo with sound up to 4K from text, images, references or your own clipFrom $0.135 for a 5-second clip
- Gemini 3.8 Flash-Lite TTS APIFast, lightweight speech in 70 voicesFrom $0.00021 per second
- Gemini 2.5 Pro TTS APIDirectable voices for narration and two-person dialogueFrom $0.00045 per second