ComfyUI Node
NanoBanana - Inpaint
A ComfyUI node in NanoBanana2/Image with 9 inputs and 1 output.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | NanoBanana - API key. Leave blank to use GEMINI_API_KEY env var. | |
| model | COMBO | gemini-3.1-flash-image-preview | Image-capable Gemini model for inpainting. |
| custom_model | STRING | Override with a custom model ID. | |
| image | IMAGE | The source image to inpaint. | |
| mask | MASK | Mask (white = fill this area, black = keep). Accepts any ComfyUI MASK — from SAM, Grounding DINO, alpha channels, etc. | |
| prompt | STRING | Describe what should fill the masked area. | |
| reference_imageopt | IMAGE | Optional reference image (e.g., object/face to place in the masked area). | |
| system_instructionopt | STRING | System instruction for the inpainting model. | |
| networkopt | NB_NETWORK | Optional. Wire a NanoBanana - Network Route node here to route this request through that proxy (e.g. US egress). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |