google-gemini-media
БесплатноБез исполняемых скриптовНе проверенUse the Gemini API (Nano Banana image generation, Veo video, Gemini TTS speech and audio understanding) to deliver end-to-end multimodal media workflows and…
от sundial-org★ 676 звёзд на GitHubОб этом скилле
Gemini Multimodal Media (Image/Video/Speech) Skill
1. Goals and scope
This Skill consolidates six Gemini API capabilities into reusable workflows and implementation templates:
- Image generation (Nano Banana: text-to-image, image editing, multi-turn iteration)
- Image understanding (caption/VQA/classification/comparison, multi-image prompts; supports inline and Files API)
- Video generation (Veo 3.1: text-to-video, aspect ratio/resolution control, reference-image guidance, first/last frames, video extension, native audio)
- Video understanding (upload/inline/YouTube URL; summaries, Q&A, timestamped evidence)
- Speech generation (Gemini native TTS: single-speaker and multi-speaker; controllable style/accent/pace/tone)
- Audio understanding (upload/inline; description, transcription, time-range transcription, token counting)
Convention: This Skill follows the official Google Gen AI SDK (Node.js/REST) as the main line; currently only Node.js/REST examples are provided. If your project already wraps other languages or frameworks, map this Skill's request structure, model selection, and I/O spec to your wrapper layer.
2. Quick routing (decide which capability to use)
- Do you need to produce images?
- Need to generate images from scratch or edit based on an image -> use Nano Banana image generation (see Section 5)
- Do you need to understand images?
- Need recognition, description, Q&A, comparison, or info extraction -> use Image understanding (see Section 6)
- Do you need to produce video?
- Need to generate an 8-second video (optionally with native audio) -> use Veo 3.1 video generation (see Section 7)
- Do you need to understand video?
- Need summaries/Q&A/segment extraction with timestamps -> use Video understanding (see Section 8)
- Do you need to read text aloud?
- Need controllable narration, podcast/audiobook style, etc. -> use Speech generation (TTS) (see Section 9)
- Do you need to understand audio?
- Need audio descriptions, transcription, time-range transcription, token counting -> use Audio understanding (see Section 10)
3. Unified engineering constraints and I/O spec (must read)
3.0 Prerequisites (dependencies and tools)
- Node.js 18+ (match your project version)
- Install SDK (example):
npm install @google/genai
- REST examples only need
curl; if you need to parse image Base64, installjq(optional).
3.1 Authentication and environment variables
- Put your API key in
GEMINI_API_KEY - REST requests use
x-goog-api-key: $GEMINI_API_KEY
3.2 Two file input modes: Inline vs Files API
Inline (embedded bytes/Base64)
- Pros: shorter call chain, good for small files.
- Key constraint: total request size (text prompt + system instructions + embedded bytes) typically has a ~20MB ceiling.
Files API (upload then reference)
- Pros: good for large files, reusing the same file, or multi-turn conversations.
- Typical flow:
files.upload(...)(SDK) orPOST /upload/v1beta/files(REST resumable)- Use
file_data/file_uriingenerateContent
Engineering suggestion: implement
ensure_file_uri()so that when a file exceeds a threshold (for example 10-15MB warning) or is reused, you automatically route through the Files API.
3.3 Unified handling of binary media outputs
- Images: usually returned as
inline_data(Base64) in response parts; in the SDK usepart.as_image()or decode Base64 and save as PNG/JPG. - Speech (TTS): usually returns PCM bytes (Base64); save as
.pcmor wrap into.wav(commonly 24kHz, 16-bit, mono). - Video (Veo): long-running async task; poll the operation; download the file (or use the returned URI).
4. Model selection matrix (choose by scenario)
Important: model names, versions, limits, and quotas can change over time. Verify against official docs before use. Last updated: 2026-01-22.
4.1 Image generation (Nano Banana)
- gemini-2.5-flash-image: optimized for speed/throughput; good for frequent, low-latency generation/editing.
- gemini-3-pro-image-preview: stronger instruction following and high-fidelity text rendering; better for professional assets and complex edits.
4.2 General image/video/audio understanding
- Docs use
gemini-3-flash-previewfor image, video, and audio understanding (choose stronger models as needed for quality/cost).
4.3 Video generation (Veo)
- Example model:
veo-3.1-generate-preview(generates 8-second video and can natively generate audio).
4.4 Speech generation (TTS)
- Example model:
gemini-2.5-flash-preview-tts(native TTS, currently in preview).
5. Image generation (Nano Banana)
5.1 Text-to-Image
SDK (Node.js) minimal template
import { GoogleGenAI } from "@google/genai";
import * as fs from "node:fs";
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
const response = await ai.models.generateContent({
Установить google-gemini-media в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл google-gemini-media?
Use the Gemini API (Nano Banana image generation, Veo video, Gemini TTS speech and audio understanding) to deliver end-to-end multimodal media workflows and code templates for "generation + understanding".
Как установить скилл google-gemini-media?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл google-gemini-media запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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