gemini-omni-flash-api
БесплатноЗапускает вложенные скриптыНе проверенUse this skill for generative video editing, text-to-video, image-referenced video generation, first-frame-to-video, first-and-last-frame transitions, and…
от PracticalSwan★ 25 звёзд на GitHubОб этом скилле
Gemini Omni Flash Skill
This skill uses the Gemini Omni 1.2 Flash model (gemini-omni-1.2-flash) to perform text-to-video generation, image-to-video generation (first-frame and two-frame keyframe transitions), reference-to-video (R2V) generation, video extensions (3s–10s per turn, up to 30s total), and video editing.
[!WARNING] Important Regional Restrictions: Uploading videos to use for video edits, extensions, or references 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: 0or no video content), it is likely due to this restriction.
Core capabilities
- Text to video: Generating videos (
3s–15s, default10s) from a text prompt. - First frame to video: Generating videos (
3s–15s, default10s) from a starting image (--first-frame). - First and last frame transition: Generating videos (
3s–10s) interpolating between a starting image and a final image (--first-frameand--last-frame; note:--last-framemust be used with--first-frame). - Video extensions: Extending existing videos by
3to10seconds per turn (10sdefault), up to a cumulative length of30seconds (--extendor--previous-interaction-id). - Video editing and refinement: Editing existing videos (uploaded source video up to
10seconds), applying stylistic changes, or performing object addition/removal while keeping everything else consistent. - Reference-to-video (R2V) & image-guided editing/extension: Guiding new video generation (
3s–15s) with reference images (--image, up to 6, including15sclips) or reference videos (--video-reference, up to 3 for3s–10sclips and max 1 for11s–15sclips). Reference images (--image) also work during video editing and prompt-based video extension, whereas only reference videos (--video-reference) are restricted to new video generation.
Workflow
Analyze request: Determine the target workflow (text-to-video, first-frame-to-video, two-frame keyframe transition, video extension, video editing, or reference-to-video generation) and inspect any input media assets.
Run SDK scripts:
- Directly run the appropriate utility (
scripts/video/generate_video.pyorscripts/upload_file.py). - Configure settings like
--aspect-ratio(16:9default,9:16),--resolution(360p,720pdefault,1080p,4k), and--duration(integer from3to15seconds, default10;3to10seconds when combining--first-frameand--last-frameor extending). Note:4krequests take longer to generate.
- Directly run the appropriate utility (
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
- Video Generation & Editing (Omni Flash): Full parameter reference, duration limits, and prompting patterns at aistudio.google.com/docs/omni.md.
- Interactions API: All operations and state management for
gemini-omni-1.2-flashuse the Interactions API. - Files API: Input media files (reference images and videos) are uploaded via the Files API and polled until
ACTIVEbefore passing their URI and MIME type ininteractions.create. - Gemini API Skill Reference: Platform-wide guidelines, current model specifications, and SDK usage rules for the Gemini API.
Dependencies and Prerequisites
- Python SDK (
google-genai): Requiresgoogle-genai >= 2.30.1(Python) to support the currentinteractionssteps schema, output helpers (interaction.output_video), and full video output resolution configuration (360p,720p,1080p,4k). Install or upgrade using:pip install -U google-genai - Python Runtime: Requires Python >= 3.10 (for compatibility with modern
google-genaiSDK types and methods). - ffmpeg & ffprobe:
prep_video.py,inspect_video.py, andgenerate_video.py(when stripping audio via--strip-audio) requireffmpegandffprobebinaries installed and available in your systemPATH. - API Key: Set the
GEMINI_API_KEYenvironment variable:export GEMINI_API_KEY="your-api-key"
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 source videos at 720p/24fps,
Установить gemini-omni-flash-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gemini-omni-flash-api?
Use this skill for generative video editing, text-to-video, image-referenced video generation, first-frame-to-video, first-and-last-frame transitions, and video extensions using Gemini Omni 1.1 Flash (gemini-omni-1.1-flash) via the official google-genai SDK. Includes workflows for pre-processing/optimizing high-resolution or long source videos with ffmpeg, stripping audio for full sound regeneration, and handling turn-by-turn video editing and parallel execution.
Как установить скилл gemini-omni-flash-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gemini-omni-flash-api запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic