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

Nano Banana 2 (API Key)

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

By mortyhuang·Created 5 months ago·Updated 5 months ago· 0
Nano Banana 2 (API Key)
  • images
  • files
  • IMAGE
  • STRING
prompt
modelNano Banana 2 (Gemini 3.1 Flash Image)
seed42
aspect_ratioauto
resolution1K
response_modalitiesIMAGE
thinking_levelMINIMAL
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 (10)

NameTypeDefaultDescription
promptSTRINGText prompt describing the image.
modelCOMBONano Banana 2 (Gemini 3.1 Flash Image)1 options: 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_modalitiesCOMBOIMAGE2 options: IMAGE, IMAGE+TEXT
thinking_levelCOMBOMINIMAL2 options: MINIMAL, HIGH
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