Nodes/ComfyUI_LLM_Banana/🍌 Gemini Banana 镜像多图像编辑
ComfyUI Node

🍌 Gemini Banana 镜像多图像编辑

Consistency without the Google key

By xuchenxu168·Created 12 months ago·Updated 9 months ago· 46
🍌 Gemini Banana 镜像多图像编辑
  • image1
  • image2
  • image3
  • image4
  • edited_image
  • response_text
mirror_sitecomfly
api_key
prompt请根据这些图片进行专业的图像编辑
negative_prompt
modelAuto (Latest Gemini 3 Pro) 🤖
proxyNone
aspect_ratioAuto
response_modalityTEXT_AND_IMAGE
output_resolutionAuto (Model Default)
qualityhd
stylenatural
detail_levelProfessional Detail
camera_controlAuto Select
lighting_controlAuto Settings
template_selectionAuto Select
upscale_factor1x (不放大)
gigapixel_modelHigh Fidelity
temperature1.00
top_p0.95
top_k40
max_output_tokens8192
seed0
custom_additions
safety_leveldefault
system_instruction_presetnone
custom_system_instruction
enable_iterative_refinementfalse
keep_last_turns3
reset_conversationfalse
lock_seedfalse
enable_conversation_summaryfalse
summary_injectionSystem Instruction
summary_max_chars600
timeout300

Take the multi-image edit node, route it through a mirror instead of the official Google API, and you get this: "🍌 Gemini Banana 镜像多图像编辑," the mirror multi-image editor. Up to four images in, one edited image out, powered by Gemini's image model through Comfly, T8, Kuai, API4GPT, OpenRouter, Comet, or aabao - whichever mirror you set. For anyone who can't or won't set up Google billing, this is the way to get multi-image consistency-style edits.

The one behavioral difference from the official MultiImageEditBananaNode (besides the mirror plumbing and the mirror_site dropdown) is that the model list here is the mirror-flavored set - the Auto entry plus labeled options like nano-banana [Comfly-T8] and gemini-2.5-flash-image-hd [API4GPT] - and there's an extra timeout control, which mirrors genuinely need because they're slower than the official API.

How it works

Same Gemini generateContent with multiple inline images, but the endpoint and auth are chosen by mirror_site. The node loads the site list from Gemini_Banana_config.json, and for the newer Nano Banana models it uses the Gemini-native format, with fallbacks to OpenAI-style paths for NB1 on providers that require them. Choose custom and you're on your own for both api_key and base_url - the node refuses to guess.

The inputs that matter

  • mirror_site - 15 presets, default comfly.
  • api_key - the mirror's key (falls back to site config).
  • image1image4 (optional) - the images to edit.
  • prompt / negative_prompt - the instructions; the Chinese default wants rewriting to be specific.
  • model - Auto by default, or the labeled mirror models.
  • aspect_ratio, response_modality, output_resolution - output controls (1K/2K/4K).
  • quality, style, detail_level, camera_control, lighting_control, template_selection - the photography presets.
  • upscale_factor / gigapixel_model - Topaz hook.
  • temperature / top_p / top_k / max_output_tokens / seed - sampling.
  • enable_iterative_refinement, keep_last_turns, reset_conversation, lock_seed, conversation summary - session refinement.
  • timeout - seconds before giving up (default 300).

Outputs: edited_image (IMAGE) and response_text (STRING).

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, edit Gemini_Banana_config.json to add mirrors.

Gotchas

The mirror reality applies harder here than single-image: multi-image requests are bigger, so they're slower through a proxy and more likely to hit that timeout. Raise it before you blame the node. "Model not found" remains the standard mirror failure - check the provider label on your chosen model. And on multi-image consistency, treat the output as a strong draft; VLM multi-subject attribution is still shaky, so eyeball the result before you build a batch pipeline on it.

CategoryKen-Chen/LLM-Nano-Banana

Inputs (38)

NameTypeDefaultDescription
mirror_siteCOMBOcomfly15 options: nano-banana官方, comfly, Comfly-HK, Comfly-US, Kuai API, T8的贞贞AI工坊, +9
api_keySTRING
promptSTRING请根据这些图片进行专业的图像编辑
negative_promptSTRING
modelCOMBOAuto (Latest Gemini 3 Pro) 🤖13 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, +7
proxySTRINGNone
aspect_ratioCOMBOAuto图像宽高比 (Gemini官方API支持)
response_modalityCOMBOTEXT_AND_IMAGE响应模式:TEXT_AND_IMAGE=文字+图像,IMAGE_ONLY=仅图像
output_resolutionCOMBOAuto (Model Default)🔥 仅 Nano Banana 2 (gemini-3-pro-image/gemini-3-pro-image-preview) 支持:通过 imageSize 参数直出 1K/2K/4K 分辨率(与 aspect_ratio 组合生成对应尺寸)。其他模型会忽略此参数。
qualityCOMBOhd5 options: standard, hd, ultra_hd, ai_enhanced, ai_ultra
styleCOMBOnatural18 options: None, vivid, natural, artistic, cinematic, photographic, +12
detail_levelCOMBOProfessional Detail5 options: None, Basic Detail, Professional Detail, Premium Quality, Masterpiece Level
camera_controlCOMBOAuto Select8 options: None, Auto Select, Wide-angle Lens, Macro Shot, Low-angle Perspective, High-angle Shot, +2
lighting_controlCOMBOAuto Settings8 options: None, Auto Settings, Natural Light, Studio Lighting, Dramatic Shadows, Soft Glow, +2
template_selectionCOMBOAuto Select14 options: None, Auto Select, Professional Portrait, Cinematic Landscape, Product Photography, Digital Concept Art, +8
upscale_factorCOMBO1x (不放大)使用Topaz Gigapixel AI进行智能放大
gigapixel_modelCOMBOHigh FidelityGigapixel AI放大模型
temperatureFLOAT1.000–1.5
top_pFLOAT0.950–1
top_kINT400–100
max_output_tokensINT81920–32768
seedINT00–999999
image1optIMAGE
image2optIMAGE
image3optIMAGE
image4optIMAGE
custom_additionsoptSTRING
safety_leveloptCOMBOdefault内容安全过滤级别:default=API默认, strict=严格, moderate=中等, permissive=宽松, off=关闭
system_instruction_presetoptCOMBOnone系统指令预设模板,用于引导AI的行为和风格
custom_system_instructionoptSTRING
enable_iterative_refinementoptBOOLEANfalse启用迭代优化:保留历史对话上下文,实现连续细化
keep_last_turnsoptINT31–10保留最近N轮对话(仅在未启用摘要时生效)
reset_conversationoptBOOLEANfalse重置会话历史:清空所有历史记录,重新开始
lock_seedoptBOOLEANfalse锁定种子:首次运行后固定seed值,保持风格一致
enable_conversation_summaryoptBOOLEANfalse启用会话摘要:自动生成对话摘要,减少token消耗,提高一致性
summary_injectionoptCOMBOSystem Instruction摘要注入位置:System Instruction更隐形稳定,Prompt Prefix更显式可见
summary_max_charsoptINT600100–2000摘要最大字符数
timeoutoptINT30010–3600请求超时时间(秒),默认为300秒

Outputs (2)

NameTypeDescription
edited_imageIMAGE
response_textSTRING