generate-nanobanana
它能做什么
这个工具借助 Google Gemini 的高级模型来创建和编辑图片与视频。你可以提供参考图片来引导创作,每次生成都会记录下成本和所用的提示词。
适用场景
- ✓当你想根据文字描述创建图片或视频时。
- ✓当你想用现有图片作为灵感或模板时。
- ✓当你希望作品遵循特定风格或品牌形象时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/generate-nanobanana/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“使用参考图片“my_cat.jpg”和品牌风格图“company_logo.png”,创作一张宇航员猫的图片。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会为你的任务选择最合适的 Google Gemini 模型,无论是图片还是视频。它会结合你的指令和参考图片(如果提供了)来生成结果。每次付费使用前,它都会先征得你的同意,并告知费用。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Generate Nanobanana
Overview
generate-nanobanana calls Google's Gemini media models directly through the Gemini API — no third-party routing layer — to generate and edit images and video. It routes each request to the right model tier (draft, standard, quality, or video), loads real reference images instead of relying on text descriptions, gates every paid call behind explicit user approval, and writes a JSON sidecar next to every output recording the exact prompt, model, and cost. It registers a single /generate command.
This skill adapts the workflow (model routing, reference-image handling, sidecar logging) from AntonioCardenas/generate-nanobanana. The actual request shapes in references/ were independently verified against the live Gemini API docs rather than copied from that upstream repo, whose examples predate Google's migration to the Interactions API and use stale, non-functional request methods. Model IDs, request contracts, and pricing all change on Google's own schedule — re-verify against the docs linked from each reference file before relying on this skill in a new session.
When to Use This Skill
- Use when the user asks to generate, create, or make an image or video, or wants a thumbnail.
- Use when the user wants to animate a still image, or says "generate on brand" or "generate from reference".
- Use when the user wants to link or import a folder of reference images (logos, faces, product shots) for reuse across generations.
- Use when the user invokes
/generateor/generate frf <set>, even without naming a specific model.
How It Works
Step 1: Route to a model
Pick the model for the job and read its reference file under references/ before calling anything — each file holds the current, verified request shape for that model.
| Task | Model | Model ID | Reference |
|---|---|---|---|
| Image (draft) | Nano Banana 2 Lite | gemini-3.1-flash-lite-image |
references/gemini-3.1-flash-lite-image.md |
| Image (standard) | Nano Banana 2 | gemini-3.1-flash-image |
references/gemini-3.1-flash-image.md |
| Image (quality, multi-image fusion) | Nano Banana Pro | gemini-3-pro-image |
references/gemini-3-pro-image.md |
| Video | Gemini Omni Flash | gemini-omni-flash-preview |
references/gemini-omni-flash-preview.md |
All four models are called through the Interactions API (client.interactions.create(...), REST POST /v1beta/interactions) — see each reference file for the exact shape, including reference-image input and, for video, large-output retrieval. Every call is billable; see Step 3.
Draft on Nano Banana 2 Lite first and rerun the picked favorite on Nano Banana 2 or Pro; reserve Pro for heavy multi-image fusion, character-consistent series, or dense on-image text.
Step 2: Load references
Pull real reference images from generations/refs/, or from a named reference set when the request says "on brand" or invokes /generate frf <set>. Never substitute a text description for a reference image (logo, face, brand mark) that already exists — stop and ask if a named reference is missing instead of approximating it.
Reference sets are registered by importing (copying files into generations/refs/<set>/, a snapshot) or linking (recording the source path in generations/refs/sets.json, read live at generation time). A set may carry a style.md whose contents are prepended verbatim to every prompt generated from that set.
Step 3: Generate
Call the Gemini API per the model's reference file. Every generation — image or video — is billable and requires an explicit approval gate: quote the current per-unit price from the live pricing page for the selected model and get explicit user go-ahead before that specific call. One approval covers exactly one call; a rerun needs its own. Run generations one at a time, never in parallel, so approval and cost tracking stay accurate.
…
常见问题
可以生成视频吗?
可以。该工具能使用 Gemini Omni Flash 等模型生成视频。
参考图片是怎么起作用的?
你可以提供现有图片(比如 logo 或照片),让 AI 将其作为新作品的基础或灵感来源。
每次创作都要花钱吗?
是的,每次图片或视频创作都是收费的。工具在继续之前,总会显示费用并请你确认。
详情
作者的原始描述
Generate and edit images/video with Google's Gemini media models (Nano Banana 2/Pro, Gemini Omni Flash), with cost-approval gates, reference-image support, and a prompt/output log per call.
热度
- GitHub 星标
- 48k
- 排名
- #4712
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。