gemini-omni-flash-api
Skill by google-gemini
Generates and edits videos with Gemini Omni 1.2 Flash through the official google-genai SDK. It covers text-to-video, frame-based generation, reference-guided video, extensions and editing for developers and creators.
Install gemini-omni-flash-api
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google-gemini/gemini-skills /tmp/gemini-skills && mkdir -p ~/.claude/skills && cp -r /tmp/gemini-skills/skills/gemini-omni-flash-api ~/.claude/skills/gemini-omni-flash-apiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/google-gemini/gemini-skills /tmp/gemini-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gemini-skills/skills/gemini-omni-flash-api ~/.gemini/antigravity-cli/skills/gemini-omni-flash-apiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install gemini-omni-flash-api in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The gemini-omni-flash-api skill lets an AI assistant generate and edit videos with the Gemini Omni 1.2 Flash model (gemini-omni-1.2-flash) through the official google-genai SDK. It covers text-to-video, first-frame and two-frame transitions, reference-to-video generation, video extensions, and video editing. Helper scripts upload media with the Files API and can prepare long or high-resolution source videos with ffmpeg.
Generated videos are saved locally, for example to a media folder, and the assistant reports the output path. Users need a GEMINI_API_KEY, Python 3.10 or newer, and ffmpeg and ffprobe on the PATH. The skill is aimed at developers and creators who want scripted video generation and editing with Gemini Omni Flash. It also supports turn-by-turn edits and parallel batch runs from a prompts file.
Written from the project's SKILL.md and checked against it.
What it can do
- Text to videoGenerates videos from a text prompt, from 3s to 15s with a 10s default.
- First frame to videoGenerates a video from a starting image passed with --first-frame.
- First and last frame transitionCreates a 3s to 10s transition between a first and a last image.
- Video extensionsExtends a video by 3s to 10s per turn, up to 30s total.
- Video editingEdits an uploaded source video up to 10s, such as restyling or adding or removing objects.
- Reference-to-videoGuides new videos with up to 6 reference images or up to 3 reference videos.
- Turn-by-turn editingEdits or extends a prior generation by passing its previous interaction ID.
- Parallel batch executionRuns multiple prompts from a line-by-line file concurrently with --prompts-file.
What you need
- GEMINI_API_KEY environment variable
- Python 3.10 or newer
- google-genai 2.30.1 or newer
- ffmpeg and ffprobe available in PATH
Try asking
- Generate a 12 second video of a cat drinking tea from a text prompt
- Make a 10 second transition from start.png to end.png at sunrise
- Restyle my input.mp4 as Japanese anime and keep everything else the same
Good to know
- Uploading videos for edits, extensions or references is not available in the EEA, Switzerland, the UK and some US states.
- 4k requests take longer to generate and may need a longer --timeout.
- Two-frame transitions are capped at 10 seconds.
- Total extended length is capped at 30 seconds.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/gemini-omni-flash-api/SKILL.md, skills/gemini-omni-flash-api/scripts/upload_file.py, skills/gemini-omni-flash-api/scripts/video/generate_video.py, skills/gemini-omni-flash-api/scripts/video/inspect_video.py, skills/gemini-omni-flash-api/scripts/video/prep_video.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md25 KB -
scripts/upload_file.py14 KB -
scripts/video/generate_video.py31 KB -
scripts/video/inspect_video.py6 KB -
scripts/video/prep_video.py11 KB
Alternatives to gemini-omni-flash-api
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
gemini-omni-flash-api: common questions
What video length can Gemini Omni Flash generate?
Text-to-video and first-frame generation run from 3s to 15s, with a 10s default. Two-frame transitions are limited to 3s to 10s.
Can the skill keep the original audio when editing a video?
Yes. By default the edit keeps the original audio. Passing --strip-audio regenerates all audio from scratch.
Why does a video edit return empty outputs?
The source says this is likely caused by the regional restriction on uploading videos for edits, extensions or references, shown as total_output_tokens: 0 or no video content.
How do I install gemini-omni-flash-api?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gemini-omni-flash-api free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is gemini-omni-flash-api safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gemini-omni-flash-api?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
