Nano Banana (Google Gemini Image)
The cheap Gemini image node that made a banana famous
- images
- files
- IMAGE
- STRING
"Nano Banana" started as a leaked codename on a HuggingFace leaderboard, got adopted by Google's own marketing, and is now the brand for Gemini's image models. This node is the original - Nano Banana (Gemini 2.5 Flash Image), Google's consumer-base image model, wired into ComfyUI as a built-in partner node. It's the model that made "type whatever, get a surprisingly good image" feel effortless, and it's also the cheap rung: roughly 6 credits an image, which is less than a third of what the Pro tier costs.
Its real strength is editing with context. You don't get a mask or a denoise slider - you get conversation. Attach one or more images, type "make it snow but keep the people exactly as they are," and the model reasons over the whole scene. That's the Gemini way, and it's why people reach for this node when local diffusion editing (mask, inpaint, composite) feels like surgery.
How it works and the inputs that matter
The node sends your prompt, optional reference images/files, aspect ratio, and a system prompt to Gemini's generate-content endpoint and gets back an image - no local model, no VRAM. Settings that matter:
- prompt - the instruction or description. This is a reasoning model, so conversational phrasing works: "a fox in a spacesuit, editorial photo, dramatic rim light" or "change the sign to say COFFEE."
- images - optional reference images (use the Batch Images node for several). This is the editing path; with none, it's text-to-image.
- aspect_ratio - defaults to
auto: match your input image, or 1:1 squares when there's no image. Otherwise pick from 1:1 to 21:9. - response_modalities -
IMAGEorIMAGE+TEXT. The latter returns the image and a text response (a second STRING output), which is great when you want the model to also caption its own work. - system_prompt - an advanced override that comes pre-filled with Google's "you are an expert image-generation engine" instructions. You can replace it; you usually shouldn't need to.
- seed - best-effort reproducibility, "not guaranteed," per its own tooltip. Treat it as "vary the output" rather than "lock the output."
Cost, setup, and what to watch
Ships with ComfyUI core; needs a Comfy account with credits and a current ComfyUI; login from localhost (or via the Comfy API key on a LAN). Cost is about $0.04 per 1K-image - cheap enough for real iteration, which is exactly how people use it: generate a look here, refine locally, upscale locally, and only pay when the creative decisions are basically made.
The two honest caveats: it's a hosted service, so your images go to Google and the content filter is Google's (this model got a reputation for heavy and at times unpredictable safety filtering - the "unimaginative, massive hidden biasing" complaint is real). And if you need 4K output or fourteen reference images, that's the Nano Banana Pro node (GeminiImage2Node) - this one tops out at 1K and single-digit references. Pick the banana to fit the job.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | Text prompt for generation | |
| model | COMBO | The Gemini model to use for generating responses. | |
| seed | INT | 420–18446744073709550000 | When seed is fixed to a specific value, the model makes a best effort to provide the same response for repeated requests. Deterministic output isn't guaranteed. Also, changing the model or parameter settings, such as the temperature, can cause variations in the response even when you use the same seed value. By default, a random seed value is used. |
| imagesopt | IMAGE | Optional image(s) to use as context for the model. To include multiple images, you can use the Batch Images node. | |
| filesopt | GEMINI_INPUT_FILES | Optional file(s) to use as context for the model. Accepts inputs from the Gemini Generate Content Input Files node. | |
| aspect_ratioopt | COMBO | auto | Defaults to matching the output image size to that of your input image, or otherwise generates 1:1 squares. |
| response_modalitiesopt | COMBO | Choose 'IMAGE' for image-only output, or 'IMAGE+TEXT' to return both the generated image and a text response. | |
| system_promptopt | STRING | You are an expert image-generation engine. You must ALWAYS produce an image. Interpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition. If a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept. Prioritize generating the visual representation above any text, formatting, or conversational requests. | Foundational instructions that dictate an AI's behavior. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| STRING | STRING | — |