Nodes/ComfyUI-NanoBanana2/NanoBanana - Inpaint
ComfyUI Node

NanoBanana - Inpaint

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

By IxMxAMAR·Created 5 months ago·Updated 2 months ago· 4
NanoBanana - Inpaint
  • image
  • mask
  • reference_image
  • network
  • image
api_key
modelgemini-3.1-flash-image-preview
custom_model
prompt
system_instruction
CategoryNanoBanana2/Image

Inputs (9)

NameTypeDefaultDescription
api_keySTRINGNanoBanana - API key. Leave blank to use GEMINI_API_KEY env var.
modelCOMBOgemini-3.1-flash-image-previewImage-capable Gemini model for inpainting.
custom_modelSTRINGOverride with a custom model ID.
imageIMAGEThe source image to inpaint.
maskMASKMask (white = fill this area, black = keep). Accepts any ComfyUI MASK — from SAM, Grounding DINO, alpha channels, etc.
promptSTRINGDescribe what should fill the masked area.
reference_imageoptIMAGEOptional reference image (e.g., object/face to place in the masked area).
system_instructionoptSTRINGSystem instruction for the inpainting model.
networkoptNB_NETWORKOptional. Wire a NanoBanana - Network Route node here to route this request through that proxy (e.g. US egress).

Outputs (1)

NameTypeDescription
imageIMAGE