# Generate 15-second videos with Gemini Omni 1.2 Flash

> Gemini Omni 1.2 Flash generates 15-second clips with audio on the Gemini API through the Interactions API, cheaper than Omni 1.1.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2026-12-04 | Topics: [AI](https://flaviocopes.com/tags/ai/) | Canonical: https://flaviocopes.com/gemini-omni-1-2-flash/

Google shipped **Gemini Omni 1.2 Flash** on November 5, 2026. It is generally available on the Gemini API.

The model id is `gemini-omni-1.2-flash`. You call it through the Interactions API. Clips go up to **15 seconds** (was 10 on Omni 1.1). Output includes native audio. Video output is about **30% cheaper** than 1.1 at the same resolution.

On December 3, 2026, requests to `gemini-omni-1.1-flash` start routing to 1.2 automatically and bill at 1.2 rates. Better to switch the model id yourself now.

```mermaid
flowchart TB
  accTitle: Text prompt to an MP4
  accDescr: A text prompt goes to the Interactions API, the model gemini-omni-1.2-flash generates the clip, and you save an MP4 that includes audio.
  prompt[Text prompt] --> api[Interactions API]
  api --> model[gemini-omni-1.2-flash]
  model --> file[MP4 with audio]
```

## Setup

You need a paid Gemini API key. Omni has no free tier.

```bash
npm install @google/genai
```

Set `GEMINI_API_KEY` in your environment. The SDK picks it up.

## Text to video

Create an interaction with the Omni model. The SDK exposes `output_video` with base64 MP4 data.

```javascript
import { GoogleGenAI } from '@google/genai'
import * as fs from 'fs'

const ai = new GoogleGenAI({})

const interaction = await ai.interactions.create({
  model: 'gemini-omni-1.2-flash',
  input: 'A marble rolling fast on a chain reaction style track, continuous smooth shot.',
})

if (interaction.output_video?.data) {
  fs.writeFileSync(
    'marble.mp4',
    Buffer.from(interaction.output_video.data, 'base64')
  )
}
```

Open `marble.mp4`. You get a short clip with audio.

Running that exact prompt against `gemini-omni-1.2-flash` produced a 10.03-second, 1280×720 H.264 MP4 at 24 fps with an AAC audio track (`6,225,086` bytes). Here are two frames from the generated clip, at 1.5 seconds and 5.0 seconds:

![Frame at 1.5 seconds from the Gemini Omni 1.2 Flash marble video showing a glass marble spiraling along copper rails in a workshop](https://images.flaviocopes.com/gemini-omni-1-2-flash/marble-frame-1.webp?v=b2309d19)

![Frame at 5.0 seconds from the same generated clip as the marble drops into a clear funnel over a brass mechanism](https://images.flaviocopes.com/gemini-omni-1-2-flash/marble-frame-2.webp?v=951216d7)

Same call over REST:

```bash
curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions?key=$GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-omni-1.2-flash",
    "input": "A marble rolling fast on a chain reaction style track, continuous smooth shot."
  }'
```

On REST, read the video from `steps` where `type` is `model_output` and the content item has `type: "video"`. `output_video` is SDK-only.

## Control duration, ratio, resolution

Pass `response_format`. Duration is any whole second from `3s` to `15s`. The default is `10s`. A value over 15 seconds returns an invalid argument error. If you set `duration` in `response_format`, that wins over any length you wrote in the prompt.

```javascript
const interaction = await ai.interactions.create({
  model: 'gemini-omni-1.2-flash',
  input: 'A single unbroken tracking shot following a paper airplane gliding through a bustling library.',
  response_format: {
    type: 'video',
    duration: '15s',
    aspect_ratio: '9:16',
    resolution: '720p',
  },
})
```

Supported aspect ratios: `16:9` (default) and `9:16`.

Resolutions:

- `360p`
- `720p` (default)
- `1080p` (upscaled)
- `4k` (upscaled)

Draft at 360p or 720p. Upscale the keepers.

## Edit in a follow-up turn

Generate once, then send another interaction with `previous_interaction_id`. You can edit generated clips up to 15 seconds without re-uploading the video.

```javascript
const res1 = await ai.interactions.create({
  model: 'gemini-omni-1.2-flash',
  input: 'A woman playing violin outdoors.',
})

const res2 = await ai.interactions.create({
  model: 'gemini-omni-1.2-flash',
  previous_interaction_id: res1.id,
  input: 'Make the violin invisible.',
})

if (res2.output_video?.data) {
  fs.writeFileSync(
    'edited.mp4',
    Buffer.from(res2.output_video.data, 'base64')
  )
}
```

If you set `store: false` for a faster unary call, later turns cannot edit that video through `previous_interaction_id`.

## Large files

Clips over 4MB work better with URI delivery. Set `delivery` to `"uri"` in `response_format`, poll until the file is `ACTIVE`, then download. Official Python sample:

```python
import time
from google import genai

client = genai.Client()

interaction = client.interactions.create(
    model='gemini-omni-1.2-flash',
    input='A beautiful sunset.',
    response_format={'type': 'video', 'delivery': 'uri'},
)

video_output = interaction.output_video
file_name = video_output.uri.split('/')[-1]

while True:
    f_info = client.files.get(name=f'files/{file_name}')
    if f_info.state.name == 'ACTIVE':
        break
    elif f_info.state.name == 'FAILED':
        raise RuntimeError('Generation failed.')
    time.sleep(5)

client.files.download(file=video_output.uri, download_path='sunset.mp4')
```

## Pricing in short

Paid tier only. From Google's pricing page for `gemini-omni-1.2-flash`:

| | Omni 1.1 | Omni 1.2 Flash |
| --- | --- | --- |
| Max clip | 10 seconds | 15 seconds |
| Video output | $17.50 per 1M tokens | $12.00 per 1M tokens |
| 720p | about $0.10 per second | about $0.07 per second |

Input on 1.2 is $1.50 per 1M tokens (text, image, or video).

| Resolution | About |
| --- | --- |
| 360p | $0.023 per second |
| 720p | $0.07 per second (~$0.70 for 10s, ~$1.04 for 15s) |
| 1080p | $0.104 per second |
| 4K | $0.209 per second |

## What to do before December 3

Search your repo for the old id:

```bash
grep -rn 'gemini-omni-1.1-flash' .
```

Point it at `gemini-omni-1.2-flash`. Re-run a few of your prompts and compare audio, duration, and file size. Keep duration and resolution in `response_format` so costs stay predictable.

## Sources

- [Gemini Omni 1.2 Flash announcement](https://blog.google/innovation-and-ai/technology/developers-tools/introducing-gemini-omni-1-2-flash/)
- [Generate and edit videos with Gemini Omni Flash](https://ai.google.dev/gemini-api/docs/omni)
- [Gemini Omni Flash model card](https://ai.google.dev/gemini-api/docs/models/gemini-omni-flash)
- [Gemini API pricing](https://ai.google.dev/gemini-api/docs/pricing#gemini-omni-1.2-flash)
