Nodes/ComfyUI/Nano Banana 2
ComfyUI Node Runs on cloud

Nano Banana 2

Generate or edit images synchronously via Google Vertex API.

By Comfy-Org·Created 4 years ago·Updated 20 days ago· 121,575
Nano Banana 2
  • images
  • files
  • IMAGE
  • STRING
  • thought_image
prompt
model
seed42
aspect_ratioauto
resolution
response_modalities
thinking_level
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.
Categorypartner/image/Gemini

Inputs (10)

NameTypeDefaultDescription
promptSTRINGText prompt describing the image to generate or the edits to apply. Include any constraints, styles, or details the model should follow.
modelCOMBO1 options: 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_modalitiesCOMBO2 options: IMAGE, IMAGE+TEXT
thinking_levelCOMBO2 options: MINIMAL, HIGH
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 (3)

NameTypeDescription
IMAGEIMAGE
STRINGSTRING
thought_imageIMAGEFirst image from the model's thinking process. Only available with thinking_level HIGH and IMAGE+TEXT modality.