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

Nano Banana Pro (Google Gemini Image)

Generate or edit images synchronously via Google Vertex API.

By Comfy-Org·Created 4 years ago·Updated 15 days ago· 121,575
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.
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