Nodes/Comfyui_Comfly/Comfly_nano_banana2_edit
ComfyUI Node

Comfly_nano_banana2_edit

Fourteen References and Real Size Control

By ainewsto·Created 2 years ago·Updated 4 days ago· 362
Comfly_nano_banana2_edit
  • image1
  • image2
  • image3
  • image4
  • image5
  • image6
  • image7
  • image8
  • image9
  • image10
  • image11
  • image12
  • image13
  • image14
  • image
  • response
  • image_url
prompt
modetext2img
modelnano-banana-pro
aspect_ratioauto
image_size2K
apikey
response_formaturl
seed0
webhook

This is the heavyweight of the Nano Banana family in this pack - the node that takes the newest generation of Google's image model and exposes every control that exists: a 15-way aspect-ratio menu, an explicit 1K/2K/4K output size, fourteen image-reference inputs, and a text2img/img2img mode switch. If ComflyNanoBanana is the everyday tool, this is the one you reach for when you need a specific canvas and a lot of visual context.

It's also the node where the model lineup moved fastest - the README's changelog shows nano-banana-2 arriving, then the -2k/-4k variants, then gemini-3.1-flash-image-preview - so if you're on an older install, update the pack or you won't see the current model list.

How it works

Prompt, mode, and up to fourteen reference images go to the chosen Gemini-image model via the proxy. Output comes back as an IMAGE tensor, the hosted image_url, and a raw response. You can ask for the image as url or as b64_json via response_format, and there's a webhook if you want the job to call you instead of the node sitting and polling.

The inputs that matter

  • prompt - the instruction. Same "describe how the references combine" advice as its sibling, just with more references available.
  • mode - text2img (default) or img2img. img2img means the first reference is treated as the base image to edit.
  • model - nano-banana-2 (default), nano-banana-2-2k, nano-banana-2-4k, and gemini-3.1-flash-image-preview. Important quirk, straight from the README: when you pick the -2k/-4k model names, the image_size parameter stops working - the resolution is baked into the model name. Choose one or the other.
  • aspect_ratio - fifteen choices including auto (default), all the way from 16:9 to 1:4. This is real canvas control.
  • image_size - 1K / 2K / 4K, default 2K. Billing likely scales with size (and the README notes prices "may be adjusted"), so 2K is the sensible middle.
  • image1–image14 - the reference pool. You will rarely need all fourteen; a subject + style + scene is the classic trio.
  • response_format - url (default) or b64_json.
  • seed / webhook - lock a take / get pinged on completion.

Outputs: image (IMAGE), response (STRING), image_url (STRING).

Install

Manager → Comfyui_Comfly, or:

cd ComfyUI/custom_nodes
git clone https://github.com/ainewsto/Comfyui_Comfly

Restart. Standard requirements.txt, no downloads. Key from ai.comfly.chat in Comflyapi.json or the node's apikey.

Where people get burned

The image_size vs. model-name conflict is the trap: pick nano-banana-2-4k and also set image_size to 1K, and you'll wonder why you got a 4K image anyway - the model name wins. Second, mode matters: in img2img the size controls generally don't apply the way they do in text2img (the output follows the source image), so if your canvas looks wrong, check the mode before the resolution. And fourteen reference inputs is a foot-gun - more references is more tokens, more billing, and more chances for the model to compromise between conflicting inputs. Feed three good ones, not fourteen mediocre ones.

CategoryComfly/Google

Inputs (23)

NameTypeDefaultDescription
promptSTRING
modeCOMBOtext2img2 options: text2img, img2img
modelCOMBOnano-banana-pro4 options: gemini-3.1-flash-image-preview, nano-banana-pro, nano-banana-pro-2k, nano-banana-pro-4k
aspect_ratioCOMBOauto15 options: auto, 16:9, 4:3, 4:5, 3:2, 1:1, +9
image_sizeCOMBO2K3 options: 1K, 2K, 4K
image1optIMAGE
image2optIMAGE
image3optIMAGE
image4optIMAGE
image5optIMAGE
image6optIMAGE
image7optIMAGE
image8optIMAGE
image9optIMAGE
image10optIMAGE
image11optIMAGE
image12optIMAGE
image13optIMAGE
image14optIMAGE
apikeyoptSTRING
response_formatoptCOMBOurl2 options: url, b64_json
seedoptINT00–2147483647
webhookoptSTRING

Outputs (3)

NameTypeDescription
imageIMAGE
responseSTRING
image_urlSTRING