cd /news/generative-ai/generate-15-second-videos-with-gemin… · home › topics › generative-ai › article
[ARTICLE · art-181836] src=flaviocopes.com ↗ pub= topic=generative-ai verified=true sentiment=↑ positive

Generate 15-second videos with Gemini Omni 1.2 Flash

Google released Gemini Omni 1.2 Flash on November 5, 2026, generally available on the Gemini API via the Interactions API, extending clip length to 15 seconds from 10 seconds on Omni 1.1 and cutting video output cost by about 30% at the same resolution. The model, id `gemini-omni-1.2-flash`, produces clips with native audio and supports durations from 3s to 15s, 16:9 or 9:16 aspect ratios, and 360p through 4k resolutions, with follow-up edits made through `previous_interaction_id`. Requests to `gemini-omni-1.1-flash` will route automatically to 1.2 and bill at 1.2 rates starting December 3, 2026.

key takeaway

Gemini Omni 1.2 Flash generates clips up to 15 seconds with native audio at roughly 30% lower video cost than Omni 1.1, and developers should switch the model id from `gemini-omni-1.1-flash` before December 3, 2026, when requests auto-route to 1.2 and bill at 1.2 rates.

read4 min views3 publishedDec 4, 2026
Generate 15-second videos with Gemini Omni 1.2 Flash
Image: Flaviocopes (auto-discovered)

By Flavio

Tagged: AI

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

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.

Setup #

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

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.

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:

Same call over REST:

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.

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-up the video.

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:

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:

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 #

Want me to talk about your product? You can sponsor this site.

── more in #generative-ai 4 stories · sorted by recency
── more on @google 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/generate-15-second-v…] indexed:0 read:4min 2026-12-04 · —