Nodes/ComfyUI/Nano Banana Pro (Google Gemini Image)
ComfyUI Node Runs on cloud

Nano Banana Pro (Google Gemini Image)

Google's 4K image model, minus the ImageFX tab

By Comfy-Org·Created 4 years ago·Updated about an hour ago· 129,820
Nano Banana Pro (Google Gemini Image)
  • images
  • files
  • IMAGE
  • STRING
prompt
model
seed42
aspect_ratioauto
resolution
response_modalities
system_promptYou 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.

"Nano Banana Pro" is Google's flagship Gemini image model - the one that does 4K native output, chews on up to fourteen reference images, and renders text well enough that you stop noticing text is hard. This node is that model inside ComfyUI, billed through Comfy's own API gateway. You get the full Google image engine without juggling a Vertex AI project or an API key; you log into a Comfy account, top up credits, and queue.

It's a partner node, so the usual rules apply: it ships with ComfyUI core, there's no model to download, and your GPU just watches from the sidelines. What makes this one special is that it isn't only a generator - it's the model Google's whole Nano Banana branding was built around, and Pro is the "thinking" tier. Give it a messy, conversational prompt and it reasons about composition before rendering, which is why it wins the "describe the vibe, get the image" game.

How it works

You're talking to Gemini over a generate-content endpoint, not a diffusion pipeline. The model dropdown currently offers gemini-3-pro-image (the Pro engine) and Nano Banana 2 (Gemini 3.1 Flash Image, the cheaper speed tier). The node passes your prompt, optional images and files, an aspect ratio, and a target resolution to Google and returns the finished image.

Three settings matter most:

  • resolution - 1K, 2K, or 4K. The 2K/4K rungs are not the model rendering at native res; they invoke Gemini's own upscaler afterward. It's good, but it's also where the cost climbs.
  • aspect_ratio - auto matches your input image, or generates a 16:9-ish frame if there's no image. Otherwise pick from the usual 1:1 to 21:9 spread.
  • images - up to 14 reference images (batch them with the Batch Images node). This is the editing and character-consistency path: paste a photo plus "turn her into a cyberpunk detective" and it follows.
  • response_modalities - IMAGE or IMAGE+TEXT. The latter gives you a STRING output alongside the IMAGE; handy if you want the model to also caption or explain what it did.

The seed field is best-effort only. The tooltip says it plainly: fixed seeds aim for repeatable output but determinism "isn't guaranteed," and changing model or parameters changes the result anyway. Don't build your workflow around exact reproduction.

Cost and what it wires into

Pricing is token-based, and the node's price badge gives you the honest estimate per image: roughly $0.16 at 1K/2K on the Pro engine and about $0.29 at 4K; Nano Banana 2 runs about half that ($0.08–$0.18). That's the most expensive per-image node in this family, which is exactly why the badge exists. A quick "is this worth it" loop looks like: generate a look with Nano Banana Pro, then take the IMAGE and run it through your local upscaler or a Wan image-to-video node to amortize the cost across the rest of the graph.

Getting it

It's built into ComfyUI core - nothing to install. You need a Comfy account with credits (Settings → User to log in, Settings → Credits to top up), and you want a current ComfyUI since the Gemini model list rotates. Login is localhost-only unless you use a Comfy API key for LAN setups. And keep expectations calibrated on content: Google filters this heavily, and the filter is not something you can tune from the node.

Categorypartner/image/Gemini

Inputs (9)

NameTypeDefaultDescription
promptSTRINGText prompt describing the image to generate or the edits to apply. Include any constraints, styles, or details the model should follow.
modelCOMBO2 options: gemini-3-pro-image-preview, Nano Banana 2 (Gemini 3.1 Flash Image)
seedINT420–18446744073709550000When the 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.
aspect_ratioCOMBOautoIf set to 'auto', matches your input image's aspect ratio; if no image is provided, a 16:9 square is usually generated.
resolutionCOMBOTarget output resolution. For 2K/4K the native Gemini upscaler is used.
response_modalitiesCOMBOChoose 'IMAGE' for image-only output, or 'IMAGE+TEXT' to return both the generated image and a text response.
imagesoptIMAGEOptional reference image(s). To include multiple images, use the Batch Images node (up to 14).
filesoptGEMINI_INPUT_FILESOptional file(s) to use as context for the model. Accepts inputs from the Gemini Generate Content Input Files node.
system_promptoptSTRINGYou 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)

NameTypeDescription
IMAGEIMAGE
STRINGSTRING