Gemini Omni Flash Skill
When to Use
Use this skill when you need use this skill for generative video editing, text-to-video, image-referenced video generation, and first-frame-to-video transition animations using the official google-genai SDK. Includes workflows for pre-processing/optimizing high-resolution or long source videos with ffmpeg,...
This skill uses the Gemini Omni Flash model (gemini-omni-flash-preview) to perform text to video generation, image to video generation and video editing.
[!WARNING]
Important Regional Restrictions: Uploading videos to use for video edits is NOT available in the EEA, Switzerland, the United Kingdom, and some US states. If a video-to-video edit completes quickly with empty outputs (total_output_tokens: 0 or no video content), it is likely due to this restriction.
Core capabilities
- Video editing and refinement: Editing existing videos (maximum duration 10 seconds), applying stylistic changes, or performing inpainting/outpainting.
- Text to video: Generating videos from a text prompt.
- First-frame to video: Generating videos from a single input image.
- Image-referenced generation: Using style, character, or object references from images to guide video generation.
Workflow
Analyze request: Determine the target task (e.g., first-frame-to-video, reference-guided editing) and identify any input media assets.
Run SDK scripts:
- Directly run the appropriate utility (
scripts/video/generate_video.py or scripts/upload_file.py).
- Configure settings like
--aspect-ratio (e.g. 16:9, 9:16) and --duration (any integer between 3 and 10 seconds, e.g. 3, 5, 10).
Retrieve and process output: Outputs are saved to the local filesystem (e.g. media/). Report back the completed media path to the user.
Reference Documentation
- Interactions API: All operations and state management for the Gemini Omni Flash model (
gemini-omni-flash-preview) are handled via the Interactions API.
- Files API: Input media files (such as reference images and videos) must be uploaded via the Files API first before being referenced in generations. The uploaded file URI and MIME type are then included in the
interactions.create input parts array.
- Interactions API Skill Reference: Platform-wide guidelines, current model specifications, and SDK usage rules for the Interactions API.
Dependencies and Prerequisites
Available scripts
Use the following Python scripts to upload media with the Files API, prepare input videos with ffmpeg, and generate video outputs using the Interactions API.
upload_file.py: Uploads local media (images and videos) to the Files API and polls until ACTIVE. If uploading a video larger than 25MB, it prints an informative warning/tip highlighting that Gemini Omni Flash is optimized for editing 10s videos at 720p/24fps, and recommends pre-processing with prep_video.py first to speed up the upload.
./scripts/upload_file.py path/to/image.png
generate_video.py: Performs end-to-end video generation and downloads the output video. It detects and uploads local media references (images or videos) before calling the Interactions API. Large video assets (>25MB) will trigger informative pre-processing recommendations without blocking the upload.
Text to video:
./scripts/video/generate_video.py "A close-up of a cat drinking tea" --output media/cat_tea.mp4
Image to video (first frame and reference):
./scripts/video/generate_video.py "The waves crash against the shore." --image reference.png --output media/waves.mp4
Video interpolation:
Provide exactly two images as keyframes to generate a transition video between them:
./scripts/video/generate_video.py "A smooth timelapse from sunrise to sunset" --image start.png --image end.png --output media/interpolation.mp4
Video editing (keep original audio):
./scripts/video/generate_video.py "Transform the style to Japanese anime" --video input.mp4 --output media/anime_style.mp4
Video editing (regenerate all audio from scratch):
./scripts/video/generate_video.py "Transform the style to Japanese anime" --video input.mp4 --strip-audio --output media/anime_style_new_audio.mp4
Turn-by-turn video editing (edit previous interaction):
Edit a prior video generation without re-uploading assets by passing the interaction ID:
./scripts/video/generate_video.py "Change the setting to a snowy winter wonderland." --previous-interaction-id "abc123xyz..." --output media/winter_wonderland.mp4
Parallel batch execution (prompts file): Run multiple prompts from a line-by-line text file concurrently:
./scripts/video/generate_video.py --prompts-file prompts.txt --concurrency 3
Parallel batch execution (JSON config): Execute fully configured, distinct generation and editing jobs in parallel:
./scripts/video/generate_video.py --batch jobs.json --concurrency 3
Example jobs.json:
[
{
"prompt": "Transform the style to Japanese anime.",
"video": "input.mp4",
"output": "media/anime_style.mp4",
"strip_audio": false,
"aspect_ratio": "16:9"
},
{
"prompt": "A smooth timelapse from sunrise to sunset.",
"image": ["start.png", "end.png"],
"output": "media/interpolation.mp4"
}
]
inspect_video.py: Inspects a local video file (using ffprobe) to check its duration, resolution, frame rate (FPS), audio stream presence, and format details.
./scripts/video/inspect_video.py media/output.mp4
To get a pre-parsed, structured JSON summary:
./scripts/video/inspect_video.py media/output.mp4 --json
To get the complete, unmodified ffprobe raw JSON dump:
./scripts/video/inspect_video.py media/output.mp4 --raw
prep_video.py: Normalizes, trims, and formats any video file to fit standard Gemini Omni Flash generation and editing limits. It handles timecode-based trimming, optional frame rate conversion, and proportional scaling of large videos (max 1280x720 for landscape, 720x1280 for portrait) to optimize upload times without stretching. If the video is longer than 10 seconds and the script is run interactively (in a TTY), it prompts the user to select the first 10s, last 10s, or enter a custom timecode (defaulting to the first 10s).
- Trim first 10s (default):
./scripts/video/prep_video.py path/to/source.mp4
or explicitly specify the start and duration:
./scripts/video/prep_video.py path/to/source.mp4 --start 0 --duration 10
Trim last 10s (automatically calculates starting point based on source length):
./scripts/video/prep_video.py path/to/source.mp4 --start last
Trim 10s starting at specific timecode (MM:SS or HH:MM:SS):
./scripts/video/prep_video.py path/to/source.mp4 --start 00:03 --output media/custom.mp4
Custom frame rate and resolution:
./scripts/video/prep_video.py path/to/source.mp4 --fps 30 --resolution 1920x1080
Strip audio for audio regeneration:
./scripts/video/prep_video.py path/to/source.mp4 --strip-audio --output media/video_with_no_audio.mp4
Using tags in prompts to set image roles
You can use tags in your prompt to make it clear whether each uploaded media is an initial frame or a reference.
1. Simple tags (recommended)
For simple cases where image roles are clear from the prompt, you can bind images to roles directly:
<FIRST_FRAME>: Use the image as the starting frame of the video, for example: <FIRST_FRAME> a woman is walking
<IMAGE_REF_N>: Use the image as a reference, for example: in the style of <IMAGE_REF_0> a woman <IMAGE_REF_1> is walking (combines style reference from the first image and subject reference from the second image). Image references start from 0.
An example with 6 reference images:
[0-3s] A studio fashion sequence. Starting with woman <IMAGE_REF_0>, she is holding <IMAGE_REF_1>
[3-6s] Then we see the man <IMAGE_REF_2> holding <IMAGE_REF_3>
[6-10s] And finally another woman <IMAGE_REF_4> who is holding <IMAGE_REF_5> while walking.
2. Explicitly declare sources and references
For more complex cases with multiple images and multiple roles, you can use explicit prefix tags paired with natural language instruction suffixes.
Declaring sources and reference images:
[# Sources <FIRST_FRAME>@Image1] will use the first image as the starting frame.
[# References <IMAGE_REF_0>@Image1] will use the first image as a reference.
[# References <IMAGE_REF_1>@Image2] will use the second image as a reference.
[# References <IMAGE_REF_0>@Image1 <IMAGE_REF_1>@Image2] will use both images as references.
[# Sources <FIRST_FRAME>@Image1] [# References <IMAGE_REF_0>@Image2] will use the first image as the starting frame and the second image as a reference.
Guiding instructions: Add guiding instructions at the end of your prompt:
- For starting frame:
"Use the given image as the starting frame."
- For reference images:
"Use the given image(s) as references for video generation. The images should not be used as literal initial frames."
Example Expanded Prompt:
[# Sources <FIRST_FRAME>@Image1] [# References <IMAGE_REF_0>@Image2] a woman <IMAGE_REF_0> is walking. Use Image1 as the starting frame. Use Image2 as a reference for the video generation.
Audio handling in video editing
When editing a source video that contains audio, you must choose between keeping the original audio or regenerating all audio from scratch.
Keep original audio: By default, Gemini Omni Flash preserves the existing audio layer (though it may modify or adapt it slightly during generation). Use this when the original background music, dialogue, or sound effects are desired.
Regenerate all audio from scratch: If you want Gemini Omni Flash to re-create a brand-new audio layer tailored to the new visual style or prompt, you must upload the video with its audio stream stripped out. If any audio stream is present, Gemini Omni Flash will attempt to preserve/modify it instead of starting from scratch.
- Use
--strip-audio (or -a) when pre-processing with scripts/video/prep_video.py or executing scripts/video/generate_video.py.
- This forces Gemini Omni Flash to perform full audio generation.
Prompting Gemini Omni Flash
Single scene
By default Gemini Omni Flash will try to create a video with a few different shots. It'll attempt to craft an interesting narrative based on the prompt.
If you need the output video to contain a single scene, you must prompt for that:
- In a single unbroken scene
- In a single continuous shot
- No scene cuts
For example:
Continuous, unbroken handheld shot of a fluffy tabby cat sitting on a sunny windowsill, looking out into a leafy garden. The cat's tail twitches slowly, and its ears rotate slightly toward ambient noises. Sunbeams illuminate dust motes in the air. Sound design: Gentle breeze, distant bird chirps, quiet mechanical purring. No dialogue.
Removing unwanted elements
If generations contain things you don't want, you can include simple negatives to avoid them:
- No dialogue
- No embellishments
- No extra sound effects
Prompts for editing
Simple prompts work best for editing. Overly descriptive prompts can lead to unintended changes.
For example:
- Make this video anime
- Make the phone invisible
- Put a fashionable hat on this person
- Change the lighting to be more dramatic
- Change the text on the sign to say "Gemini Omni Flash"
- Add a cat that jumps onto his lap, he begins to pet it
When editing a specific aspect of the video, it can help to include: "Keep everything else the same".
Prompting the audio
By default the model will try to generate an appropriate audio track for a video. This might not always be what you want. You can use your prompt to describe the type of audio you want. This is especially important if you want music in your video:
- Include calm background music
- The video has a high energy techno beat
- The audio is a low tinny radio broadcast in the background, playing a song
- Audio design: [a description of the audio you want]
When things should happen
You can prompt for things to happen at specific times in the video, there is no precise syntax needed and you can use natural language. This is especially useful in creating your own scene cuts, rhythm or rapid fire sequences.
Simple examples:
- after 3 seconds, a woman enters the scene
- at 5s the chorus starts in the background audio
- every 2s cut to a new frame
- in a rapid fire sequence, every half a second (12 frames at 24fps) change the scene to a new location
You can also use a timecode syntax:
[0-3s] A person is walking
[3-6s] They stop and turn around
[6-10s] They start running
Meta prompting
Rather than specifying everything directly in a prompt, you can ask the model to pay attention to certain things. You can give Gemini Omni Flash these sorts of prompts verbatim:
- Consider micro-detail, expression and timing to create a very rich, detailed but entirely natural scene.
- Be extremely detailed in your descriptions of characters and environments. Apply costume design principles to characters. Be very specific about the people, items and objects in the scene.
- Include plenty of appropriate detail in the background elements to make the scene feel realistic and natural.
- Make a rapid fire video that shows a different rare [thing] every 1s, upbeat music, include text to label the thing.
Text in videos works really well
Unlike previous video models, text in Gemini Omni Flash videos works really well. You can include decent amounts of text in your video and it will be rendered in a way that is correct and readable. If there will be naturally occurring text in your video, even in background elements, it can help to define what it should say.
For example:
- One word on the screen at a time: "did, you, know, that, Omni, can, do, awesome, text?" Each word appears for 1s with a different animated style. No dialogue.
- There is a street sign that says: "This is an AI generation by Omni", there is a storefront that says: "All you need AI", there's a car with the number plate: "OMN111"
Limitations
- Use this skill only when the task clearly matches its upstream product or API scope.
- Verify commands, API behavior, pricing, quotas, credentials, and deployment effects against current official documentation before making changes.
- Do not treat generated examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
1---
2name: gemini-omni-flash-api
3description: "Use this skill for generative video editing, text-to-video, image-referenced video generation, and first-frame-to-video transition animations using the official google-genai SDK."
4risk: critical
5source: https://github.com/google-gemini/gemini-skills/tree/main/skills/gemini-omni-flash-api
6source_repo: google-gemini/gemini-skills
7source_type: official
8date_added: 2026-07-01
9license: Apache-2.0
10license_source: https://github.com/google-gemini/gemini-skills/blob/main/LICENSE
11metadata:
12 source: https://skillmd.com/skills/francostino/gemini-omni-flash-api
13---
14
15# Gemini Omni Flash Skill
16## When to Use
17
18Use this skill when you need use this skill for generative video editing, text-to-video, image-referenced video generation, and first-frame-to-video transition animations using the official google-genai SDK. Includes workflows for pre-processing/optimizing high-resolution or long source videos with ffmpeg,...
19
20
21This skill uses the Gemini Omni Flash model (`gemini-omni-flash-preview`) to perform text to video generation, image to video generation and video editing.
22
23> [!WARNING]
24> **Important Regional Restrictions**: Uploading videos to use for video edits is **NOT** available in the EEA, Switzerland, the United Kingdom, and some US states. If a video-to-video edit completes quickly with empty outputs (`total_output_tokens: 0` or no video content), it is likely due to this restriction.
25
26## Core capabilities
27
281. **Video editing and refinement**: Editing existing videos (maximum duration 10 seconds), applying stylistic changes, or performing inpainting/outpainting.
292. **Text to video**: Generating videos from a text prompt.
303. **First-frame to video**: Generating videos from a single input image.
314. **Image-referenced generation**: Using style, character, or object references from images to guide video generation.
32
33## Workflow
34
351. **Analyze request**: Determine the target task (e.g., first-frame-to-video, reference-guided editing) and identify any input media assets.
362. **Run SDK scripts**:
37
38 * Directly run the appropriate utility (`scripts/video/generate_video.py` or `scripts/upload_file.py`).
39 * Configure settings like `--aspect-ratio` (e.g. `16:9`, `9:16`) and `--duration` (any integer between `3` and `10` seconds, e.g. `3`, `5`, `10`).
40
413. **Retrieve and process output**: Outputs are saved to the local filesystem (e.g. `media/`). Report back the completed media path to the user.
42
43## Reference Documentation
44
45* **Interactions API**: All operations and state management for the Gemini Omni Flash model (`gemini-omni-flash-preview`) are handled via the [Interactions API](https://ai.google.dev/gemini-api/docs/interactions-overview).
46* **Files API**: Input media files (such as reference images and videos) must be uploaded via the [Files API](https://ai.google.dev/gemini-api/docs/interactions/files) first before being referenced in generations. The uploaded file URI and MIME type are then included in the `interactions.create` input parts array.
47* **[Interactions API Skill Reference](https://github.com/google-gemini/gemini-skills/blob/main/skills/gemini-interactions-api/SKILL.md)**: Platform-wide guidelines, current model specifications, and SDK usage rules for the Interactions API.
48
49## Dependencies and Prerequisites
50
51* **Python SDK (`google-genai`)**: Requires `google-genai >= 2.10.0` (Python) to support the new `interactions` client attribute. Install or upgrade using:
52 ```bash
53 pip install -U google-genai
54 ```
55* **Python Runtime**: Requires **Python >= 3.10** (for compatibility with modern `google-genai` SDK types and methods).
56* **ffmpeg & ffprobe**: `prep_video.py`, `inspect_video.py`, and `generate_video.py` (when stripping audio via `--strip-audio`) require `ffmpeg` and `ffprobe` binaries installed and available in your system `PATH`.
57
58## Available scripts
59
60Use the following Python scripts to upload media with the Files API, prepare input videos with ffmpeg, and generate video outputs using the Interactions API.
61
621. **[upload_file.py](scripts/upload_file.py)**: Uploads local media (images and videos) to the Files API and polls until `ACTIVE`. If uploading a video larger than 25MB, it prints an informative warning/tip highlighting that Gemini Omni Flash is optimized for editing 10s videos at 720p/24fps, and recommends pre-processing with `prep_video.py` first to speed up the upload.
63
64 ```bash
65 ./scripts/upload_file.py path/to/image.png
66 ```
67
682. **[generate_video.py](scripts/video/generate_video.py)**: Performs end-to-end video generation and downloads the output video. It detects and uploads local media references (images or videos) before calling the Interactions API. Large video assets (>25MB) will trigger informative pre-processing recommendations without blocking the upload.
69
70 * **Text to video**:
71
72 ```bash
73 ./scripts/video/generate_video.py "A close-up of a cat drinking tea" --output media/cat_tea.mp4
74 ```
75
76 * **Image to video (first frame and reference)**:
77
78 ```bash
79 ./scripts/video/generate_video.py "The waves crash against the shore." --image reference.png --output media/waves.mp4
80 ```
81
82 * **Video interpolation**:
83
84 Provide exactly two images as keyframes to generate a transition video between them:
85
86 ```bash
87 ./scripts/video/generate_video.py "A smooth timelapse from sunrise to sunset" --image start.png --image end.png --output media/interpolation.mp4
88 ```
89
90 * **Video editing (keep original audio)**:
91
92 ```bash
93 ./scripts/video/generate_video.py "Transform the style to Japanese anime" --video input.mp4 --output media/anime_style.mp4
94 ```
95
96 * **Video editing (regenerate all audio from scratch)**:
97
98 ```bash
99 ./scripts/video/generate_video.py "Transform the style to Japanese anime" --video input.mp4 --strip-audio --output media/anime_style_new_audio.mp4
100 ```
101
102 * **Turn-by-turn video editing (edit previous interaction)**:
103
104 Edit a prior video generation without re-uploading assets by passing the interaction ID:
105
106 ```bash
107 ./scripts/video/generate_video.py "Change the setting to a snowy winter wonderland." --previous-interaction-id "abc123xyz..." --output media/winter_wonderland.mp4
108 ```
109
110 * **Parallel batch execution (prompts file)**: Run multiple prompts from a line-by-line text file concurrently:
111
112 ```bash
113 ./scripts/video/generate_video.py --prompts-file prompts.txt --concurrency 3
114 ```
115
116 * **Parallel batch execution (JSON config)**: Execute fully configured, distinct generation and editing jobs in parallel:
117
118 ```bash
119 ./scripts/video/generate_video.py --batch jobs.json --concurrency 3
120 ```
121
122 *Example `jobs.json`:*
123
124 ```json
125 [
126 {
127 "prompt": "Transform the style to Japanese anime.",
128 "video": "input.mp4",
129 "output": "media/anime_style.mp4",
130 "strip_audio": false,
131 "aspect_ratio": "16:9"
132 },
133 {
134 "prompt": "A smooth timelapse from sunrise to sunset.",
135 "image": ["start.png", "end.png"],
136 "output": "media/interpolation.mp4"
137 }
138 ]
139 ```
140
1413. **[inspect_video.py](scripts/video/inspect_video.py)**: Inspects a local video file (using `ffprobe`) to check its duration, resolution, frame rate (FPS), audio stream presence, and format details.
142
143 ```bash
144 ./scripts/video/inspect_video.py media/output.mp4
145 ```
146
147 * To get a pre-parsed, structured JSON summary:
148
149 ```bash
150 ./scripts/video/inspect_video.py media/output.mp4 --json
151 ```
152
153 * To get the complete, unmodified `ffprobe` raw JSON dump:
154
155 ```bash
156 ./scripts/video/inspect_video.py media/output.mp4 --raw
157 ```
158
1594. **[prep_video.py](scripts/video/prep_video.py)**: Normalizes, trims, and formats any video file to fit standard Gemini Omni Flash generation and editing limits. It handles timecode-based trimming, optional frame rate conversion, and proportional scaling of large videos (max 1280x720 for landscape, 720x1280 for portrait) to optimize upload times without stretching. If the video is longer than 10 seconds and the script is run interactively (in a TTY), it prompts the user to select the first 10s, last 10s, or enter a custom timecode (defaulting to the first 10s).
160
161 * **Trim first 10s (default)**:
162
163 ```bash
164 ./scripts/video/prep_video.py path/to/source.mp4
165 ```
166
167 or explicitly specify the start and duration:
168
169 ```bash
170 ./scripts/video/prep_video.py path/to/source.mp4 --start 0 --duration 10
171 ```
172
173 * **Trim last 10s** (automatically calculates starting point based on source length):
174
175 ```bash
176 ./scripts/video/prep_video.py path/to/source.mp4 --start last
177 ```
178
179 * **Trim 10s starting at specific timecode** (MM:SS or HH:MM:SS):
180
181 ```bash
182 ./scripts/video/prep_video.py path/to/source.mp4 --start 00:03 --output media/custom.mp4
183 ```
184
185 * **Custom frame rate and resolution**:
186
187 ```bash
188 ./scripts/video/prep_video.py path/to/source.mp4 --fps 30 --resolution 1920x1080
189 ```
190
191 * **Strip audio for audio regeneration**:
192
193 ```bash
194 ./scripts/video/prep_video.py path/to/source.mp4 --strip-audio --output media/video_with_no_audio.mp4
195 ```
196
197## Using tags in prompts to set image roles
198
199You can use tags in your prompt to make it clear whether each uploaded media is an initial frame or a reference.
200
201### 1. Simple tags (recommended)
202
203For simple cases where image roles are clear from the prompt, you can bind images to roles directly:
204
205* **`<FIRST_FRAME>`**: Use the image as the starting frame of the video, for example: `<FIRST_FRAME> a woman is walking`
206* **`<IMAGE_REF_N>`**: Use the image as a reference, for example: `in the style of <IMAGE_REF_0> a woman <IMAGE_REF_1> is walking` (combines style reference from the first image and subject reference from the second image). Image references start from 0.
207
208An example with 6 reference images:
209
210```none
211[0-3s] A studio fashion sequence. Starting with woman <IMAGE_REF_0>, she is holding <IMAGE_REF_1>
212[3-6s] Then we see the man <IMAGE_REF_2> holding <IMAGE_REF_3>
213[6-10s] And finally another woman <IMAGE_REF_4> who is holding <IMAGE_REF_5> while walking.
214```
215
216### 2. Explicitly declare sources and references
217
218For more complex cases with multiple images and multiple roles, you can use explicit prefix tags paired with natural language instruction suffixes.
219
220* **Declaring sources and reference images**:
221 * `[# Sources <FIRST_FRAME>@Image1]` will use the first image as the starting frame.
222 * `[# References <IMAGE_REF_0>@Image1]` will use the first image as a reference.
223 * `[# References <IMAGE_REF_1>@Image2]` will use the second image as a reference.
224 * `[# References <IMAGE_REF_0>@Image1 <IMAGE_REF_1>@Image2]` will use both images as references.
225 * `[# Sources <FIRST_FRAME>@Image1] [# References <IMAGE_REF_0>@Image2]` will use the first image as the starting frame and the second image as a reference.
226* **Guiding instructions**: Add guiding instructions at the end of your prompt:
227 * For starting frame: `"Use the given image as the starting frame."`
228 * For reference images: `"Use the given image(s) as references for video generation. The images should not be used as literal initial frames."`
229
230* *Example Expanded Prompt*:
231
232 ```none
233 [# Sources <FIRST_FRAME>@Image1] [# References <IMAGE_REF_0>@Image2] a woman <IMAGE_REF_0> is walking. Use Image1 as the starting frame. Use Image2 as a reference for the video generation.
234 ```
235
236## Audio handling in video editing
237
238When editing a source video that contains audio, you must choose between keeping the original audio or regenerating all audio from scratch.
239
240* **Keep original audio**: By default, Gemini Omni Flash preserves the existing audio layer (though it may modify or adapt it slightly during generation). Use this when the original background music, dialogue, or sound effects are desired.
241* **Regenerate all audio from scratch**: If you want Gemini Omni Flash to re-create a brand-new audio layer tailored to the new visual style or prompt, you **must** upload the video with its audio stream stripped out. If any audio stream is present, Gemini Omni Flash will attempt to preserve/modify it instead of starting from scratch.
242
243 * Use `--strip-audio` (or `-a`) when pre-processing with `scripts/video/prep_video.py` or executing `scripts/video/generate_video.py`.
244 * This forces Gemini Omni Flash to perform full audio generation.
245
246## Prompting Gemini Omni Flash
247
248### Single scene
249
250By default Gemini Omni Flash will try to create a video with a few different shots. It'll attempt to craft an interesting narrative based on the prompt.
251
252If you need the output video to contain a single scene, you must prompt for that:
253
254* In a single unbroken scene
255* In a single continuous shot
256* No scene cuts
257
258For example:
259
260```none
261Continuous, unbroken handheld shot of a fluffy tabby cat sitting on a sunny windowsill, looking out into a leafy garden. The cat's tail twitches slowly, and its ears rotate slightly toward ambient noises. Sunbeams illuminate dust motes in the air. Sound design: Gentle breeze, distant bird chirps, quiet mechanical purring. No dialogue.
262```
263
264### Removing unwanted elements
265
266If generations contain things you don't want, you can include simple negatives to avoid them:
267
268* No dialogue
269* No embellishments
270* No extra sound effects
271
272### Prompts for editing
273
274Simple prompts work best for editing. Overly descriptive prompts can lead to unintended changes.
275
276For example:
277
278* Make this video anime
279* Make the phone invisible
280* Put a fashionable hat on this person
281* Change the lighting to be more dramatic
282* Change the text on the sign to say "Gemini Omni Flash"
283* Add a cat that jumps onto his lap, he begins to pet it
284
285When editing a specific aspect of the video, it can help to include: "Keep everything else the same".
286
287### Prompting the audio
288
289By default the model will try to generate an appropriate audio track for a video. This might not always be what you want. You can use your prompt to describe the type of audio you want. This is especially important if you want music in your video:
290
291* Include calm background music
292* The video has a high energy techno beat
293* The audio is a low tinny radio broadcast in the background, playing a song
294* Audio design: [a description of the audio you want]
295
296### When things should happen
297
298You can prompt for things to happen at specific times in the video, there is no precise syntax needed and you can use natural language. This is especially useful in creating your own scene cuts, rhythm or rapid fire sequences.
299
300Simple examples:
301
302* after 3 seconds, a woman enters the scene
303* at 5s the chorus starts in the background audio
304* every 2s cut to a new frame
305* in a rapid fire sequence, every half a second (12 frames at 24fps) change the scene to a new location
306
307You can also use a timecode syntax:
308
309```none
310[0-3s] A person is walking
311[3-6s] They stop and turn around
312[6-10s] They start running
313```
314
315### Meta prompting
316
317Rather than specifying everything directly in a prompt, you can ask the model to pay attention to certain things. You can give Gemini Omni Flash these sorts of prompts verbatim:
318
319* Consider micro-detail, expression and timing to create a very rich, detailed but entirely natural scene.
320* Be extremely detailed in your descriptions of characters and environments. Apply costume design principles to characters. Be very specific about the people, items and objects in the scene.
321* Include plenty of appropriate detail in the background elements to make the scene feel realistic and natural.
322* Make a rapid fire video that shows a different rare [thing] every 1s, upbeat music, include text to label the thing.
323
324### Text in videos works really well
325
326Unlike previous video models, text in Gemini Omni Flash videos works really well. You can include decent amounts of text in your video and it will be rendered in a way that is correct and readable. If there will be naturally occurring text in your video, even in background elements, it can help to define what it should say.
327
328For example:
329
330* One word on the screen at a time: "did, you, know, that, Omni, can, do, awesome, text?" Each word appears for 1s with a different animated style. No dialogue.
331* There is a street sign that says: "This is an AI generation by Omni", there is a storefront that says: "All you need AI", there's a car with the number plate: "OMN111"
332
333## Limitations
334
335- Use this skill only when the task clearly matches its upstream product or API scope.
336- Verify commands, API behavior, pricing, quotas, credentials, and deployment effects against current official documentation before making changes.
337- Do not treat generated examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.