{"slug": "generate-15-second-videos-with-gemini-omni-1-2-flash", "title": "Generate 15-second videos with Gemini Omni 1.2 Flash", "summary": "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.", "body_md": "# Generate 15-second videos with Gemini Omni 1.2 Flash\n\nBy [Flavio](https://flaviocopes.com/about/)\n\nTagged: [AI](https://flaviocopes.com/tags/ai/)\n\nGemini Omni 1.2 Flash generates 15-second clips with audio on the Gemini API through the Interactions API, cheaper than Omni 1.1.\n\nGoogle shipped **Gemini Omni 1.2 Flash** on November 5, 2026. It is generally available on the Gemini API.\n\nThe 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.\n\nOn 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.\n\n## Setup\n\nYou need a paid Gemini API key. Omni has no free tier.\n\n```\nnpm install @google/genai\n```\n\nSet `GEMINI_API_KEY` in your environment. The SDK picks it up.\n\n## Text to video\n\nCreate an interaction with the Omni model. The SDK exposes `output_video` with base64 MP4 data.\n\n``` js\nimport { GoogleGenAI } from '@google/genai'\nimport * as fs from 'fs'\n\nconst ai = new GoogleGenAI({})\n\nconst interaction = await ai.interactions.create({\n  model: 'gemini-omni-1.2-flash',\n  input: 'A marble rolling fast on a chain reaction style track, continuous smooth shot.',\n})\n\nif (interaction.output_video?.data) {\n  fs.writeFileSync(\n    'marble.mp4',\n    Buffer.from(interaction.output_video.data, 'base64')\n  )\n}\n```\n\nOpen `marble.mp4`. You get a short clip with audio.\n\nRunning 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:\n\nSame call over REST:\n\n```\ncurl -X POST \"https://generativelanguage.googleapis.com/v1beta/interactions?key=$GEMINI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"gemini-omni-1.2-flash\",\n    \"input\": \"A marble rolling fast on a chain reaction style track, continuous smooth shot.\"\n  }'\n```\n\nOn REST, read the video from `steps` where `type` is `model_output` and the content item has `type: \"video\"`. `output_video` is SDK-only.\n\n## Control duration, ratio, resolution\n\nPass `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.\n\n``` js\nconst interaction = await ai.interactions.create({\n  model: 'gemini-omni-1.2-flash',\n  input: 'A single unbroken tracking shot following a paper airplane gliding through a bustling library.',\n  response_format: {\n    type: 'video',\n    duration: '15s',\n    aspect_ratio: '9:16',\n    resolution: '720p',\n  },\n})\n```\n\nSupported aspect ratios: `16:9` (default) and `9:16`.\n\nResolutions:\n\n- `360p`\n- `720p` (default)\n- `1080p` (upscaled)\n- `4k` (upscaled)\n\nDraft at 360p or 720p. Upscale the keepers.\n\n## Edit in a follow-up turn\n\nGenerate once, then send another interaction with `previous_interaction_id`. You can edit generated clips up to 15 seconds without re-uploading the video.\n\n``` js\nconst res1 = await ai.interactions.create({\n  model: 'gemini-omni-1.2-flash',\n  input: 'A woman playing violin outdoors.',\n})\n\nconst res2 = await ai.interactions.create({\n  model: 'gemini-omni-1.2-flash',\n  previous_interaction_id: res1.id,\n  input: 'Make the violin invisible.',\n})\n\nif (res2.output_video?.data) {\n  fs.writeFileSync(\n    'edited.mp4',\n    Buffer.from(res2.output_video.data, 'base64')\n  )\n}\n```\n\nIf you set `store: false` for a faster unary call, later turns cannot edit that video through `previous_interaction_id`.\n\n## Large files\n\nClips 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:\n\n``` python\nimport time\nfrom google import genai\n\nclient = genai.Client()\n\ninteraction = client.interactions.create(\n    model='gemini-omni-1.2-flash',\n    input='A beautiful sunset.',\n    response_format={'type': 'video', 'delivery': 'uri'},\n)\n\nvideo_output = interaction.output_video\nfile_name = video_output.uri.split('/')[-1]\n\nwhile True:\n    f_info = client.files.get(name=f'files/{file_name}')\n    if f_info.state.name == 'ACTIVE':\n        break\n    elif f_info.state.name == 'FAILED':\n        raise RuntimeError('Generation failed.')\n    time.sleep(5)\n\nclient.files.download(file=video_output.uri, download_path='sunset.mp4')\n```\n\n## Pricing in short\n\nPaid tier only. From Google’s pricing page for `gemini-omni-1.2-flash`:\n\n|  | Omni 1.1 | Omni 1.2 Flash | \n|---|---|---|\n| Max clip | 10 seconds | 15 seconds | \n| Video output | $17.50 per 1M tokens | $12.00 per 1M tokens | \n| 720p | about $0.10 per second | about $0.07 per second | \n\nInput on 1.2 is $1.50 per 1M tokens (text, image, or video).\n\n| Resolution | About | \n|---|---|\n| 360p | $0.023 per second | \n| 720p | $0.07 per second (~$0.70 for 10s, ~$1.04 for 15s) | \n| 1080p | $0.104 per second | \n| 4K | $0.209 per second | \n\n## What to do before December 3\n\nSearch your repo for the old id:\n\n```\ngrep -rn 'gemini-omni-1.1-flash' .\n```\n\nPoint 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.\n\n## Sources\n\n- [Gemini Omni 1.2 Flash announcement](https://blog.google/innovation-and-ai/technology/developers-tools/introducing-gemini-omni-1-2-flash/)\n- [Generate and edit videos with Gemini Omni Flash](https://ai.google.dev/gemini-api/docs/omni)\n- [Gemini Omni Flash model card](https://ai.google.dev/gemini-api/docs/models/gemini-omni-flash)\n- [Gemini API pricing](https://ai.google.dev/gemini-api/docs/pricing#gemini-omni-1.2-flash)\n\nWant me to talk about your product? You can [sponsor this site](https://flaviocopes.com/sponsor/).", "url": "https://wpnews.pro/news/generate-15-second-videos-with-gemini-omni-1-2-flash", "canonical_source": "https://flaviocopes.com/gemini-omni-1-2-flash/", "published_at": "2026-12-04 14:00:00+00:00", "updated_at": "2026-12-04 14:42:54.438559+00:00", "lang": "en", "topics": ["generative-ai", "artificial-intelligence", "ai-products", "ai-tools"], "entities": ["Google", "Gemini Omni 1.2 Flash", "Gemini API", "Interactions API", "@google/genai"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/generate-15-second-videos-with-gemini-omni-1-2-flash", "markdown": "https://wpnews.pro/news/generate-15-second-videos-with-gemini-omni-1-2-flash.md", "text": "https://wpnews.pro/news/generate-15-second-videos-with-gemini-omni-1-2-flash.txt", "jsonld": "https://wpnews.pro/news/generate-15-second-videos-with-gemini-omni-1-2-flash.jsonld"}}