ComfyUI Node
NanoBanana - Image Edit
A ComfyUI node in NanoBanana2/Image with 13 inputs and 1 output.
NanoBanana - Image Edit
- image
- mask
- reference_image
- reference_image_2
- reference_image_3
- network
- image
◄api_key►
◄modelgemini-3.1-flash-image-preview►
◄custom_model►
◄edit_instruction►
◄system_instruction►
◄aspect_ratioAUTO►
◄image_sizeAUTO►
CategoryNanoBanana2/Image
Inputs (13)
| 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 editing. |
| custom_model | STRING | Override with a custom model ID. | |
| image | IMAGE | The image to edit. | |
| edit_instruction | STRING | Describe what edits to make to the image. | |
| maskopt | MASK | Optional mask — which areas to edit. White = edit, black = keep. Works with any MASK source: SAM, Grounding DINO, segmentation, alpha channels, RMBG. Gemini doesn't do pixel-perfect masking — it uses this as visual guidance alongside your instructions. | |
| reference_imageopt | IMAGE | Optional reference image (e.g., a face to swap into the masked region). | |
| reference_image_2opt | IMAGE | Optional second reference image. | |
| reference_image_3opt | IMAGE | Optional third reference image. | |
| system_instructionopt | STRING | System instruction for the editing model. | |
| aspect_ratioopt | COMBO | AUTO | Output image aspect ratio. |
| image_sizeopt | COMBO | AUTO | Output image resolution. |
| 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 | — |