Nodes/comfyui-NanoBananaPro_3DeLAB/Nano Banana Pro (Gemini Direct)
ComfyUI Node

Nano Banana Pro (Gemini Direct)

A ComfyUI node in 3DELAB with 14 inputs and 2 outputs.

By PATAGONIABIM·Created 6 months ago·Updated 6 months ago· 1
Nano Banana Pro (Gemini Direct)
  • images
  • mask
  • scribble
  • images
  • response_text
promptDescribe the image you want to generate...
modelgemini-3-pro-image-preview
operationGENERATE
api_key
service_account_json
seed42
aspect_ratio1:1
resolution1K
response_modalitiesIMAGE
thinkingfalse
system_promptYou are an expert image-generation engine. You must ALWAYS produce an image.
Category3DELAB

Inputs (14)

NameTypeDefaultDescription
promptSTRINGDescribe the image you want to generate...The text description of the image you want to generate.
modelCOMBOgemini-3-pro-image-previewSelect the AI model to use (API Key for Gemini models to generate | JSON Key for Imagen variants for Inpaint, Outpaint, Background Swap).
operationCOMBOGENERATEChoose the operation mode: GEN (TXT2IMG|IMG2IMG|MULTIREFERENCE), INPAINT (Edit|Remove), OUTPAINT, BG_SWAP.
api_keyoptSTRINGYour Google AI Studio API Key. Required for Gemini models.
service_account_jsonoptSTRINGAbsolute path to your Vertex AI Service Account JSON key file. Required for Imagen 3 editing/inpainting.
imagesoptIMAGEInput image for editing, inpainting, or image-to-image generation.
maskoptMASKMask image for inpainting (white = edit, black = keep).
scribbleoptIMAGEScribble or sketch image (transparent BG) for controlled editing.
seedoptINT420–18446744073709550000Seed for random number generation.
aspect_ratiooptCOMBO1:1The aspect ratio of the generated image.
resolutionoptCOMBO1KResolution of the output image (1K, 2K, 4K).
response_modalitiesoptCOMBOIMAGEChoose image only or image + reasoning text.
thinkingoptBOOLEANfalseEnable High thinking level (gemini-3.1 flash/pro only).
system_promptoptSTRINGYou are an expert image-generation engine. You must ALWAYS produce an image.System-level instructions to guide the model's behavior.

Outputs (2)

NameTypeDescription
imagesIMAGE
response_textSTRING