Nodes/ComfyUI-NanoBanana2/NanoBanana - Image Generation (Nano Banana)
ComfyUI Node

NanoBanana - Image Generation (Nano Banana)

A ComfyUI node in NanoBanana2/Image with 17 inputs and 1 output.

By IxMxAMAR·Created 5 months ago·Updated 2 months ago· 4
NanoBanana - Image Generation (Nano Banana)
  • ref_image_1
  • ref_image_2
  • ref_image_3
  • ref_image_4
  • network
  • image
api_key
modelgemini-3.1-flash-image-preview
custom_model
prompt
aspect_ratio16:9
image_size4K
system_instruction
thinking_levelNONE
temperature1.00
seed-1
candidate_count1
safety_settings_json
CategoryNanoBanana2/Image

Inputs (17)

NameTypeDefaultDescription
api_keySTRINGNanoBanana - API key. Leave blank to use GEMINI_API_KEY env var.
modelCOMBOgemini-3.1-flash-image-previewNanoBanana - image model. For Imagen models, use the dedicated Imagen Image Generation node instead.
custom_modelSTRINGOverride with a custom model ID.
promptSTRINGImage generation prompt. Use [Reference Image N] to refer to inputs.
aspect_ratioCOMBO16:9Output image aspect ratio.
image_sizeCOMBO4KOutput image resolution.
system_instructionoptSTRINGSystem instruction for the image generation model.
thinking_leveloptCOMBONONEHow much the model should reason before generating.
temperatureoptFLOAT1.000–2Controls randomness in generation.
seedoptINT-1-1–2147483647Random seed for reproducibility (-1 = random).
candidate_countoptINT11–4Number of image candidates to generate. All are returned as a batch — wire into Preview Image or save the lot.
ref_image_1optIMAGEFirst reference image.
ref_image_2optIMAGESecond reference image.
ref_image_3optIMAGEThird reference image.
ref_image_4optIMAGEFourth reference image.
safety_settings_jsonoptSTRINGJSON safety settings from Safety Settings node.
networkoptNB_NETWORKOptional. Wire a NanoBanana - Network Route node here to route this request through that proxy (e.g. US egress).

Outputs (1)

NameTypeDescription
imageIMAGE