跳到正文
Skillpedia
视频剪辑48k · #4712

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/generate-nanobanana/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 /generate or /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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4712
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能