Nodes/comfyui-gemini-apikey/Nano Banana Pro (API Key)
ComfyUI Node

Nano Banana Pro (API Key)

A ComfyUI node in api node/image/Gemini with 9 inputs and 2 outputs.

By mortyhuang·Created 5 months ago·Updated 5 months ago· 0
Nano Banana Pro (API Key)
  • images
  • files
  • IMAGE
  • STRING
prompt
modelgemini-3-pro-image-preview
seed42
aspect_ratioauto
resolution1K
response_modalitiesIMAGE+TEXT
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.
Categoryapi node/image/Gemini

Inputs (9)

NameTypeDefaultDescription
promptSTRINGText prompt describing the image.
modelCOMBOgemini-3-pro-image-preview2 options: gemini-3-pro-image-preview, Nano Banana 2 (Gemini 3.1 Flash Image)
seedINT420–2147483647
aspect_ratioCOMBOauto11 options: auto, 1:1, 2:3, 3:2, 3:4, 4:3, +5
resolutionCOMBO1K3 options: 1K, 2K, 4K
response_modalitiesCOMBOIMAGE+TEXT2 options: IMAGE+TEXT, IMAGE
imagesoptIMAGEOptional reference image(s). To include multiple images, use the Batch Images node (up to 14).
filesoptGEMINI_INPUT_FILESOptional file(s) from Gemini 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.

Outputs (2)

NameTypeDescription
IMAGEIMAGE
STRINGSTRING