nano-banana-2
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.
1How It Works & Mechanism
Dedicated single-model focus (non-router): The entire document centers on a single endpoint, `google/nano-banana-2/text-to-image`, thoroughly explaining how to utilize this model via "field-level schema + tiered resolution + prompt syntax."
### `google/nano-banana-2/text-to-image`
Capabilities implemented via parameter tables: num_images (1–4 batch ideation), four resolution tiers (0.5K/1K/2K/4K pricing tiers), seed reproducibility, 11 aspect_ratio values, safety_tolerance (1 strict – 6 permissive), enable_web_search, and limit_generations are all embedded with "defaults + enums + usage tips."
| `safety_tolerance` | int | no | 4 | 1 (strict) – 6 (permissive). |
Prompt value proposition = predictable in-image typography rendering and composition: The body text provides subject-first syntax + verbatim quoted text conventions, turning "uncontrollable text rendering" into actionable prompt discipline.
**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.
Web grounding acts as an optional toggle rather than default behavior: enable_web_search=false is disabled by default; documentation restricts enabling it only when the prompt references current events/entities, explicitly stating the trade-offs (latency + cost).
**Web-grounding, sparingly.** Turn on `enable_web_search` only when the prompt names current events / real entities. Adds latency + cost; off by default.
Explicit boundary conditions: Values outside the four resolution tiers and 11 aspect ratios result in a 422 error; image editing tasks are explicitly directed to the sibling nano-banana-edit (switching to the /edit endpoint).
- Asking for resolutions outside the 4 tiers → 422.
Execution delegated to runcomfy CLI: `runcomfy run google/nano-banana-2/text-to-image --input '{...}' --output-dir`; the CLI sends a POST request to a fixed Model API URL, polls for completion, and downloads the artifacts.
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`.
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| cli | runcomfy(@runcomfy/cli 官方 CLI) |
| package | @runcomfy/cli(npm 全局安装) |
| api | Google Nano Banana 2 文生图端点(RunComfy Model API 托管) |
| network | 生成结果下载白名单 |
| network | enable_web_search 联网检索(模型服务端执行) |
| network | RunComfy 模型页 / 文档站(引用链接) |
4Recommended Governance & Evidence
- 网络端点: Declares external network access: model-api.runcomfy.net/v1/models/google/nano-banana-2/text-to-image — text-to-image request
- 本地工作目录: File I/O and artifact output: CLI downloads generated images to the local directory specified by --output-dir (path determined by caller)
- SKILL.md: Declares invocation of host CLI interpreter or external runtime environment
5Second-Pass Verification
- [ok] 端点 ID 与完整 URL 一致 — description/标题用 `google/nano-banana-2/text-to-image`,How-it-works 给出同路径完整 URL,无拼写漂移。
- [ok] safety_tolerance / limit_generations / enable_web_search 字段存在且默认值自洽 — safety 默认 4、limit_generations 默认 true、web_search 默认 false,正文纪律(sparingly、off by default)与默认值一致。
- [unlocatable] enable_web_search 的检索后端与数据流 — 文档只给 'Adds web grounding (extra cost + latency)',未指明由谁检索、是否外发提示词给第三方检索服务——仓内无法定位,标记待补。
- [unlocatable] 『sample prompts (verified to produce strong results)』宣称 — 三个样例提示词的 'verified' 无仓内评测数据,无法复核验证过程。
- [ok] 与 nano-banana-edit 的 sibling 互链 — 相对链接 `../nano-banana-edit` 在仓库内真实可达(nano-banana-edit/SKILL.md 存在),且 nano-banana-edit 反向链接本技能。
- [discrepancy] 身份/安装链接一致性 — SKILL.md 安装与 GitHub 链接指向 agentspace-so/runcomfy-skills,被 pin 镜像为 prime-skills/runcomfy-agent-skills——来源标识不一致(发布身份漂移)。
- [unlocatable] SKILL.md 对 CLI 行为的断言(token 0600、2 GiB 上限、无 shell 展开) — CLI 源码不在本仓库,仅文档自述。
6Verdict & Scenarios
c63e38a07d32fae6…