跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 nano-banana-2

Nano Banana 2

在RunComfy上用Google Nano Banana 2(Gemini-family flash-stier- text-to-image)来生成图像——与模型的有记录的提示模式相捆绑,因此技能的输出比对同一模型的天真更尖锐. 纳诺·香蕉 2的优点(快速迭代,内相打字渲染,可预见地布局,可选的网基上下文),解析层定价,安全容忍拨号,以及何时去Nano Banana Pro/GPT Image 2/Flux 2/Seedream取而代之. 通过当地的RunComfy CLI呼叫"runcomfy run google/nano-banana-2/text-to-image". 在"纳诺香蕉","纳诺香蕉-2","纳诺香蕉2","谷歌影像基因","地米尼影像"上触发,或者任何明确要求用这个模型生成的.

416410 安装量

官方网址:作者主页

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

在RunComfy上用Google Nano Banana 2(Gemini-family flash-stier- text-to-image)来生成图像——与模型的有记录的提示模式相捆绑,因此技能的输出比对同一模型的天真更尖锐. 纳诺·香蕉 2的优点(快速迭代,内相打字渲染,可预见地布局,可选的网基上下文),解析层定价,安全容忍拨号,以及何时去Nano Banana Pro/GPT Image 2/Flux 2/Seedream取而代之. 通过当地的RunComfy CLI呼叫"runcomfy run google/nano-banana-2/text-to-image". 在"纳诺香蕉","纳诺香蕉-2","纳诺香蕉2","谷歌影像基因","地米尼影像"上触发,或者任何明确要求用这个模型生成的.

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Nano Banana 2 — Pro Pack on RunComfy、When to pick this model (vs siblings)、Prerequisites、Endpoints + input schema、`google/nano-banana-2/text-to-image`、How to invoke。 其中含规范建议的小节:边界情况。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Generate images with Google Nano Banana 2 (Gemini-family flash-tier text-to-image) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Nano Banana 2's strengths (rapid iteration, in-image typography rendering, predictable framing, optional web-grounded context), the resolution-tier pricing, the safety-tolerance dial, and when to route to Nano Banana Pro / GPT Image 2 / Flux 2 / Seedream instead. Calls `runcomfy run google/nano-banana-2/text-to-image` through the local RunComfy CLI. Triggers on "nano banana", "nano-banana-2", "nano banana 2", "google image gen", "gemini image", or any explicit ask to generate with this model.

Nano Banana 2 — Pro Pack on RunComfyWhen to pick this model (vs siblings)PrerequisitesEndpoints + input schema`google/nano-banana-2/text-to-image`How to invokePrompting — what actually worksWhere it shinesSample prompts (verified to produce strong results)LimitationsExit codesHow it works

· 许可:MIT

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
nano-banana-2
description
Generate images with Google Nano Banana 2 (Gemini-family flash-tier text-to-image) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Nano Banana 2's strengths (rapid iteration, in-image typography rendering, predictable framing, optional web-grounded context), the resolution-tier pricing, the safety-tolerance dial, and when to route to Nano Banana Pro / GPT Image 2 / Flux 2 / Seedream instead. Calls `runcomfy run google/nano-banana-2/text-to-image` through the local RunComfy CLI. Triggers on "nano banana", "nano-banana-2", "nano banana 2", "google image gen", "gemini image", or any explicit ask to generate with this model.
许可
MIT
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「nano-banana-2」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-42c7b395c8156889-Nano-Banana-2.html
请存为 .cursor/skills/nano-banana-2/SKILL.md 或 .claude/skills/nano-banana-2/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/prime-skills/runcomfy-agent-skills' --list

npx skills add 'https://github.com/prime-skills/runcomfy-agent-skills' --skill 'nano-banana-2'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: nano-banana-2 displayName: "Nano Banana 2 — Pro Pack on RunComfy" description: > Generate images with Google Nano Banana 2 (Gemini-family flash-tier text-to-image) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Nano Banana 2's strengths (rapid iteration, in-image typography rendering, predictable framing, optional web-grounded context), the resolution-tier pricing, the safety-tolerance dial, and when to route to Nano Banana Pro / GPT Image 2 / Flux 2 / Seedream instead. Calls `runcomfy run google/nano-banana-2/text-to-image` through the local RunComfy CLI. Triggers on "nano banana", "nano-banana-2", "nano banana 2", "google image gen", "gemini image", or any explicit ask to generate with this model. homepage: https://www.runcomfy.com license: MIT --- # Nano Banana 2 — Pro Pack on RunComfy [runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=nano-banana-2) · [Model page](https://www.runcomfy.com/models/google/nano-banana-2?utm_source=skills.sh&utm_medium=skill&utm_campaign=nano-banana-2) · [GitHub](https://github.com/agentspace-so/runcomfy-skills/tree/main/nano-banana-2) Google **Nano Banana 2** — the flash-tier text-to-image model in the Gemini family — hosted on the **RunComfy Model API**. Optimized for ideation, social-thumbnail batches, and rapid drafts with strong in-image typography. ```bash npx skills add agentspace-so/runcomfy-skills --skill nano-banana-2 -g ``` ## When to pick this model (vs siblings) Nano Banana 2 is the **flash-tier** of the Google image-gen line. Pick it when iteration speed and predictable framing matter more than maximum detail. | You want | Use | |---|---| | Rapid drafts, social thumbnails, batch variants | **Nano Banana 2** | | In-image typography with predictable rendering | **Nano Banana 2** | | Web-grounded image (current events / real entities) | **Nano Banana 2** + `enable_web_search` | | Image **edit** (preserve subject, swap background) | **Nano Banana Edit** (sibling skill) | | Heavy stylization, painterly look | Flux 2 | | Maximum prompt adherence + multilingual text | GPT Image 2 | | 2K–4K hero shots, max realism | Seedream 5 | | Hyperrealistic portrait | Nano Banana Pro | If the user said "Nano Banana" / "nano-banana-2" / "Gemini image" explicitly, route here regardless. If they said "Nano Banana" without specifying 2 vs Pro, default to **Pro** for portraits and **2** for everything else. ## Prerequisites 1. **RunComfy CLI** — `npm i -g @runcomfy/cli` 2. **RunComfy account** — `runcomfy login` opens a browser device-code flow. 3. **CI / containers** — set `RUNCOMFY_TOKEN=` instead of `runcomfy login`. ## Endpoints + input schema ### `google/nano-banana-2/text-to-image` | Field | Type | Required | Default | Notes | |---|---|---|---|---| | `prompt` | string | yes | — | Subject-first description. | | `num_images` | int | no | 1 | 1–4. Use 4 for ideation rounds. | | `seed` | int | no | 0 | Reuse for reproducibility. | | `aspect_ratio` | enum | no | `auto` | `auto`, `21:9`, `16:9`, `3:2`, `4:3`, `5:4`, `1:1`, `4:5`, `3:4`, `2:3`, `9:16`. | | `resolution` | enum | no | `1K` | `0.5K` (drafts), `1K` (default), `2K` (final), `4K` (max). | | `output_format` | enum | no | `png` | `png`, `jpeg`, `webp`. | | `safety_tolerance` | int | no | 4 | 1 (strict) – 6 (permissive). | | `limit_generations` | bool | no | true | Limit each prompt round to one generation. | | `enable_web_search` | bool | no | false | Adds web grounding (extra cost + latency). | For image edit (preserve subject + apply changes), see the sibling [`nano-banana-edit`](../nano-banana-edit) skill. ## How to invoke **Default draft (1K, square, png):** ```bash runcomfy run google/nano-banana-2/text-to-image \ --input '{"prompt": ""}' \ --output-dir ``` **Vertical 4-up batch for ideation:** ```bash runcomfy run google/nano-banana-2/text-to-image \ --input '{ "prompt": "", "num_images": 4, "aspect_ratio": "9:16", "resolution": "0.5K" }' \ --output-dir ``` **Final at 2K with seed lock:** ```bash runcomfy run google/nano-banana-2/text-to-image \ --input '{ "prompt": "", "resolution": "2K", "aspect_ratio": "16:9", "seed": 42 }' \ --output-dir ``` **Web-grounded (current event / real entity):** ```bash runcomfy run google/nano-banana-2/text-to-image \ --input '{ "prompt": "", "enable_web_search": true }' \ --output-dir ``` ## Prompting — what actually works **Subject-first declarative grammar.** "A cinematic close-up portrait of an American woman standing under neon lights in rainy Tokyo, shallow depth of field, reflective wet streets, ultra-detailed, realistic skin texture" — primary subject, then action, environment, style, camera. Front-load subject; trail with directives. **Exact text quoting for in-image typography.** "The label reads 'AURA' in clean bold sans-serif, centered, white on black" — quote the literal characters. Specify placement and font style. Don't say "with the brand name on it" and hope. **Consistent seeds for refinement.** Lock `seed` when iterating a single prompt across small variants — keeps composition stable. **Web-grounding, sparingly.** Turn on `enable_web_search` only when the prompt names current events / real entities. Adds latency + cost; off by default. **Don't conflict styles.** "minimalist + ornate + retro + cyberpunk" cancels. Pick 1–2 anchors. **Anti-patterns:** - Trying to verbally describe a stable subject identity — use the **edit** endpoint with image refs instead. - Asking for resolutions outside the 4 tiers → 422. - Aspect ratios outside the 11 supported values → 422. - Non-quoted in-image text → unpredictable rendering. ## Where it shines | Use case | Why Nano Banana 2 | |---|---| | **Marketing draft thumbnails (batch of 4)** | Fast iteration at 0.5K, then promote winner to 2K | | **Social-platform-native** | Wide aspect ratio support including 9:16, 4:5, 21:9 | | **In-image typography for posters / cards** | Predictable text rendering when characters are quoted | | **Web-grounded current-event imagery** | `enable_web_search` integrates fresh info | | **Reproducible variant testing** | Strong seed + consistent framing | ## Sample prompts (verified to produce strong results) **Cinematic portrait (page example):** ``` A cinematic close-up portrait of an American woman standing under neon lights in rainy Tokyo, shallow depth of field, reflective wet streets, ultra-detailed, realistic skin texture ``` **Brand-asset card with quoted text:** ``` A minimalist 16:9 product card: a matte black ceramic mug centered on a soft warm-grey paper background, rim highlight from upper-left, the headline "Brewed Quietly" in clean bold sans-serif top-right, balanced negative space below, e-commerce ready, clean studio lighting ``` **Vertical platform-native:** ``` A 9:16 vertical hero for a wellness brand: a single ceramic teacup on a linen runner, soft morning side-light, the words "Slow Down" in hand-drawn serif large at the top, gentle steam rising, neutral color palette, uncluttered ``` ## Limitations - **Still images only.** No video on this endpoint. - **Max 4 outputs per request.** - **Web search adds latency + cost** — only enable on demand. - **2K / 4K cost more** — default to 1K unless user asked for higher. - **For image edit, use the `/edit` endpoint** — not this one. ## Exit codes | code | meaning | |---|---| | 0 | success | | 64 | bad CLI args | | 65 | bad input JSON / schema mismatch | | 69 | upstream 5xx | | 75 | retryable: timeout / 429 | | 77 | not signed in or token rejected | Full reference: [docs.runcomfy.com/cli/troubleshooting](https://docs.runcomfy.com/cli/troubleshooting?utm_source=skills.sh&utm_medium=skill&utm_campaign=nano-banana-2). ## How it works The skill invokes `runcomfy run google/nano-banana-2/text-to-image` with a JSON body matching the schema. The CLI POSTs to `https://model-api.runcomfy.net/v1/models/google/nano-banana-2/text-to-image`, polls the request, fetches the result, and downloads any `.runcomfy.net`/`.runcomfy.com` URL into `--output-dir`. `Ctrl-C` cancels the remote request before exit. ## Security & Privacy - **Token storage**: `runcomfy login` writes the API token to `~/.config/runcomfy/token.json` with mode 0600 (owner-only read/write). Set `RUNCOMFY_TOKEN` env var to bypass the file entirely in CI / containers. - **Input boundary**: the user prompt is passed as a JSON string to the CLI via `--input`. The CLI does NOT shell-expand the prompt; it transmits the JSON body directly to the Model API over HTTPS. No shell injection surface from prompt content. - **Third-party content**: image / mask / video URLs you pass are fetched by the RunComfy model server, not by the CLI on your machine. Treat external URLs as untrusted; image-based prompt injection is a known risk for any image-edit / video-edit model. - **Outbound endpoints**: only `model-api.runcomfy.net` (request submission) and `*.runcomfy.net` / `*.runcomfy.com` (download whitelist for generated outputs). No telemetry, no callbacks. - **Generated-file size cap**: the CLI aborts any single download > 2 GiB to prevent disk-fill from a malicious or runaway model output.

相关技能

文档办公

Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

Nano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

Word / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不…

文档办公

Baidu Search

使用Baidu AI搜索引擎(BDSE)搜索网页. 用于实时信息、文件或研究专题.