🍌 Gemini Banana 镜像图像生成
Text-to-image via Nano Banana, through the mirror of your choice
- image
- response_text
- grounding_info
Text-to-image with Google's closed Nano Banana / Gemini image models, but without needing a Google billing account - that's this node in one line. "🍌 Gemini Banana 镜像图像生成" is the mirror-text-to-image twin of the official generation node. Same closed model behind it, same endpoint math, different door: you pick a mirror site (Comfly, T8, Kuai, API4GPT, OpenRouter, Comet, aabao…) and the node does the rest. The model can never be downloaded, so the API is the only path; the mirror exists to make that path cheap, region-accessible, and free of Google Cloud signup friction (the external-api-nodes KB doc walks through why that reseller layer exists).
The default prompt is a sunset mountain landscape, the default model is an "Auto" pick of the latest Gemini 3 Pro, and the output is an image plus the model's text response.
How it works
It's the same generateContent machinery as the mirror edit node, minus the input image. The mirror_site dropdown is loaded from Gemini_Banana_config.json, and the node selects the correct endpoint format per model (Gemini-native generateContent for NB2, OpenAI-style paths on some providers for NB1 - the README's NB2 update spells out the branching). The Auto model entry inspects what your chosen mirror supports and picks the newest usable model.
The inputs that matter
mirror_site- 15 presets (nano-banana官方, comfly, Comfly-HK/US, Kuai, T8 variants, API4GPT, OpenRouter, Comet, aabao, custom). Default comfly.api_key- the mirror's key; falls back to the site config if blank.prompt/negative_prompt- the generation request. No image input here; this is pure text-to-image.model- Auto by default; otherwise pick from the 12 labeled options (note[Comfly-T8],[API4GPT],[OpenRouter]tags - the model must be served by your mirror).aspect_ratio,response_modality,output_resolution(Auto/1K/2K/4K) - imageConfig controls.upscale_factor/gigapixel_model- Topaz Gigapixel hook (2x–6x).quality,style,detail_level,camera_control,lighting_control,template_selection- the photography presets.temperature/top_p/top_k/max_output_tokens/seed- sampling.enable_google_search(optional) - grounding; only meaningful on providers that support it.timeout- seconds before giving up (default 300).
Outputs: image (IMAGE), response_text (STRING), and grounding_info (STRING) when Google Search grounding is enabled. The image goes to preview/save; the text and grounding info are diagnostics.
Install
ComfyUI Manager → ComfyUI_LLM_Banana, or:
cd ComfyUI/custom_nodes
git clone https://github.com/xuchenxu168/ComfyUI_LLM_Banana
cd ComfyUI_LLM_Banana
pip install -r requirements.txt
Restart. The mirror list is editable in Gemini_Banana_config.json.
Gotchas
Same family rules as the mirror edit node: providers churn, "model not found" is the #1 complaint, and the Auto model pick is only as good as your mirror's roster. Keep timeout above a minute for busy providers - some of these mirrors queue. And remember the data-leaves-the-machine truth of the whole category: your prompts go to a third party whose logging you don't control, and no mirror removes Google's own content filter from the model, whatever they claim.
Inputs (35)
| Name | Type | Default | Description |
|---|---|---|---|
| mirror_site | COMBO | comfly | 15 options: nano-banana官方, comfly, Comfly-HK, Comfly-US, Kuai API, T8的贞贞AI工坊, +9 |
| api_key | STRING | — | |
| prompt | STRING | A beautiful mountain landscape at sunset | — |
| negative_prompt | STRING | — | |
| model | COMBO | Auto (Latest Gemini 3 Pro) 🤖 | 12 options: Auto (Latest Gemini 3 Pro) 🤖, gemini-3-pro-image [Comet] 🔥NEW, gemini-3-pro-image-preview [All] 🔥NEW, google/gemini-3-pro-image-preview [OpenRouter] 🔥NEW, gemini-2.5-flash-image [All] ✓Stable, gemini-2.5-flash-image-preview [All] ✓Stable, +6 |
| proxy | STRING | None | — |
| aspect_ratio | COMBO | Auto | 图像宽高比 (Gemini官方API支持) |
| response_modality | COMBO | TEXT_AND_IMAGE | 响应模式:TEXT_AND_IMAGE=文字+图像,IMAGE_ONLY=仅图像 |
| output_resolution | COMBO | Auto (Model Default) | 🔥 仅 Nano Banana 2 (gemini-3-pro-image/gemini-3-pro-image-preview) 支持:通过 imageSize 参数直出 1K/2K/4K 分辨率(与 aspect_ratio 组合生成对应尺寸)。其他模型会忽略此参数。 |
| upscale_factor | COMBO | 1x (不放大) | 使用Topaz Gigapixel AI进行智能放大 |
| gigapixel_model | COMBO | High Fidelity | Gigapixel AI放大模型 |
| quality | COMBO | hd | 5 options: standard, hd, ultra_hd, ai_enhanced, ai_ultra |
| style | COMBO | natural | 18 options: None, vivid, natural, artistic, cinematic, photographic, +12 |
| detail_level | COMBO | Professional Detail | 5 options: None, Basic Detail, Professional Detail, Premium Quality, Masterpiece Level |
| camera_control | COMBO | Auto Select | 8 options: None, Auto Select, Wide-angle Lens, Macro Shot, Low-angle Perspective, High-angle Shot, +2 |
| lighting_control | COMBO | Auto Settings | 8 options: None, Auto Settings, Natural Light, Studio Lighting, Dramatic Shadows, Soft Glow, +2 |
| template_selection | COMBO | Auto Select | 14 options: None, Auto Select, Professional Portrait, Cinematic Landscape, Product Photography, Digital Concept Art, +8 |
| temperature | FLOAT | 1.000–1.5 | — |
| top_p | FLOAT | 0.950–1 | — |
| top_k | INT | 400–100 | — |
| max_output_tokens | INT | 81920–32768 | — |
| seed | INT | 00–268435455 | — |
| custom_additionsopt | STRING | — | |
| safety_levelopt | COMBO | default | 内容安全过滤级别:default=API默认, strict=严格, moderate=中等, permissive=宽松, off=关闭 |
| system_instruction_presetopt | COMBO | none | 系统指令预设模板,用于引导AI的行为和风格 |
| custom_system_instructionopt | STRING | — | |
| enable_google_searchopt | BOOLEAN | false | 🔍 启用 Google 搜索接地(Grounding with Google Search) ⚠️ 注意事项: 1. 仅支持 Nano Banana 2 模型(gemini-3-pro-image-preview) 2. 必须使用 TEXT_AND_IMAGE 响应模式(IMAGE_ONLY 不支持) 3. 仅支持使用 Gemini 原生格式的镜像站 4. 支持的镜像站: nano-banana官方、Comet、Kuai、Comfly(Gemini模型)、T8(Gemini模型) 5. 不支持: OpenRouter、API4GPT、Comfly/T8的nano-banana模型 💡 用途:根据实时信息(天气、新闻、事件等)生成图片 |
| enable_iterative_refinementopt | BOOLEAN | false | ♻️ 启用迭代优化:通过多轮对话逐步细化图像 💡 开启后会保存对话历史,下次生成时作为上下文 ⚠️ 注意:会增加 token 消耗 |
| keep_last_turnsopt | INT | 31–10 | 保留最近 N 轮对话作为上下文(每轮包含用户+助手) |
| reset_conversationopt | BOOLEAN | false | 🔄 重置会话:清空历史对话、摘要和缓存,重新开始 |
| lock_seedopt | BOOLEAN | false | 🔒 锁定 seed:首次运行时缓存 seed,后续运行自动使用相同 seed 保持风格一致 💡 配合迭代优化使用效果更佳 |
| enable_conversation_summaryopt | BOOLEAN | false | 📝 启用会话摘要:自动生成对话摘要并注入,减少历史膨胀 💡 推荐与迭代优化一起使用 |
| summary_injectionopt | COMBO | System Instruction | 摘要注入位置: • System Instruction - 更稳定、更隐形(推荐) • Prompt Prefix - 更显式、便于排查 |
| summary_max_charsopt | INT | 600200–2000 | 摘要最大字符数(建议 600-1000) |
| timeoutopt | INT | 30010–3600 | 请求超时时间(秒),默认为300秒 |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| response_text | STRING | — |
| grounding_info | STRING | — |