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…
Skill by ShenWang96
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/shenwang96-google-gemini-media
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/google-gemini-media
What's inside
- Skill name
google-gemini-media- Description
- 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".
- License
- MIT
- Instructions
- 450 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (2)
- origin.json · .clawdhub/
- SKILL.md
SKILL.md (first lines)
# 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)
1) **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)
2) **Do you need to understand images?**
- Need recognition, description, Q&A, comparison, or info extraction -> use **Image understanding** (see Section 6)
3) **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)
4) **Do you need to understand video?**
- Need summaries/Q&A/segment extraction with timestamps -> use **Video understanding** (see Section 8)
5) **Do you need to read text aloud?**
- Need controllable narration, podcast/audiobook style, etc. -> use **Speech generation (TTS)** (see Section 9)
6) **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):
```bash
npm install @google/genai
```
- REST examples only need `curl`; if you need to parse image Base64, install `jq` (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:
1. `files.upload(...)` (SDK) or `POST /upload/v1beta/files` (REST resumable)
2. Use `file_data` / `file_uri` in `generateContent`
> 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 use `part.as_image()` or decode Base64 and save as PNG/JPG.
- **Speech (TTS)**: usually returns **PCM** bytes (Base64); save as `.pcm` or 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-preview` for 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**
```js
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({
model: "gemini-2.5-flash-image",
contents:
"Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme",
});
const parts = response.candidates?.[0]?.content?.parts ?? [];
for (const part of parts) {
if (part.text) console.log(part.text);
if (part.inlineData?.data) {
fs.writeFileSync("out.png", Buffer.from(part.inlineData.data, "base64"));
}From ShenWang96/clawdbot_workspace_backup, MIT.
More from ShenWang96/clawdbot_workspace_backup
- 0.409score
xiaohongshu-mcp
ShenWang96
Automate Xiaohongshu (RedNote) content operations using a Python client for the xiaohongshu-mcp server.
SkillDFreshness: DClaude Code +9 - 0.406score
para-second-brain
ShenWang96
Organize your agent's knowledge using PARA (Projects, Areas, Resources, Archive) — then make it ALL searchable.
SkillDFreshness: DClaude Code +9 - 0.405score
brand-cog
ShenWang96
Other tools make logos.
SkillDFreshness: DClaude Code +9 - 0.404score
ppt-generator
ShenWang96
将用户讲稿一键生成乔布斯风极简科技感竖屏HTML演示稿。当用户需要生成PPT、演示文稿、Slides、幻灯片,或要求科技风/极简风/乔布斯风格的演示时触发此技能。输出为单个可直接运行的HTML文件。
SkillDFreshness: DClaude Code +9 - 0.401score
token-stats
ShenWang96
Token 使用统计 - 扫描 session 日志并生成使用报告
SkillDFreshness: DClaude Code +9 - 0.399score
gpt
ShenWang96
OpenAI GPT integration.
SkillDFreshness: DClaude Code +9 - 0.399score
mineru
ShenWang96
用 MinerU API 解析 PDF/Word/PPT/图片为 Markdown,支持公式、表格、OCR。适用于论文解析、文档提取。
SkillDFreshness: DClaude Code +9 - 0.396score
marketing-mode
ShenWang96
Marketing Mode combines 23 comprehensive marketing skills covering strategy, psychology, content, SEO, conversion optimization, and paid growth.
SkillDFreshness: DClaude Code +9 - 0.391score
DOCX
ShenWang96
Read and generate Word documents with correct structure, styles, and cross-platform compatibility.
SkillDFreshness: DClaude Code +9 - 0.323score
seo-content-writer
aaron-he-zhu
Use when the user asks to "write SEO content", "create a blog post", "write an article", "content writing", "draft optimized content", "write me an article"…
SkillDFreshness: DClaude Code +9 - 0.211score
research-assistant
ShenWang96
No description from the publisher yet.
SkillDFreshness: DClaude Code +9 - 0.211score
read-file
ShenWang96
No description from the publisher yet.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 18, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ShenWang96
- 0.409score
xiaohongshu-mcp
ShenWang96
Automate Xiaohongshu (RedNote) content operations using a Python client for the xiaohongshu-mcp server.
SkillDFreshness: DClaude Code +9 - 0.406score
para-second-brain
ShenWang96
Organize your agent's knowledge using PARA (Projects, Areas, Resources, Archive) — then make it ALL searchable.
SkillDFreshness: DClaude Code +9 - 0.405score
brand-cog
ShenWang96
Other tools make logos.
SkillDFreshness: DClaude Code +9 - 0.404score
ppt-generator
ShenWang96
将用户讲稿一键生成乔布斯风极简科技感竖屏HTML演示稿。当用户需要生成PPT、演示文稿、Slides、幻灯片,或要求科技风/极简风/乔布斯风格的演示时触发此技能。输出为单个可直接运行的HTML文件。
SkillDFreshness: DClaude Code +9 - 0.401score
token-stats
ShenWang96
Token 使用统计 - 扫描 session 日志并生成使用报告
SkillDFreshness: DClaude Code +9 - 0.399score
mineru
ShenWang96
用 MinerU API 解析 PDF/Word/PPT/图片为 Markdown,支持公式、表格、OCR。适用于论文解析、文档提取。
SkillDFreshness: DClaude Code +9
Cite this page
google-gemini-media skill. Agent Mart. https://agentmart.dev/skills/shenwang96-google-gemini-media (last updated 2026-10-24)