ComfyUI Node
Nano Banana - Painted Edit
A ComfyUI node in NanoBanana FaceSwap with 31 inputs and 4 outputs.
Nano Banana - Painted Edit
- target_image
- mask
- identity_1
- identity_2
- identity_3
- identity_4
- identity_5
- identity_6
- network
- image
- status
- mask
- debug_sheet
◄api_key►
◄modelgemini-3.1-flash-image-preview►
◄edit_promptAdd a small rose tattoo to the painted region.►
◄seed0►
◄thinking_levelNONE►
◄edit_modeblend►
◄crop_tightness_pct100►
◄obscure_outside_maskoff►
◄obscure_blur_px40►
◄composite_dilate_px0►
◄composite_feather_px24►
◄image_size2K►
◄color_matchtrue►
◄grain_matchtrue►
◄sharpness_matchtrue►
◄composite_methodlaplacian►
◄lab_strength0.60►
◄grain_strength1.00►
◄dry_runfalse►
◄timeout_ms180000►
◄ref_cap_px1024►
◄auto_relax_on_refusedfalse►
CategoryNanoBanana FaceSwap
Inputs (31)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | — | |
| model | COMBO | gemini-3.1-flash-image-preview | 3 options: gemini-3.1-flash-image-preview, gemini-3-pro-image-preview, gemini-2.5-flash-image |
| target_image | IMAGE | — | |
| mask | MASK | — | |
| edit_prompt | STRING | Add a small rose tattoo to the painted region. | — |
| seed | INT | 00–2147483647 | — |
| thinking_level | COMBO | NONE | 4 options: NONE, LOW, MEDIUM, HIGH |
| edit_mode | COMBO | blend | blend = tuned for face-swap / refining a region to look native (LAB+sharpness on, Laplacian composite). additive = tuned for tattoos / logos / objects you WANT to stand out crisply (LAB off, sharpness off, feather composite, grain still on). |
| crop_tightness_pct | INT | 1000–200 | Padding around the painted mask bbox before cropping. 0 = mask bbox only (tightest, best for evading safety filters on revealing content). 100% = bbox-sized padding per side (more scene context for the model). |
| obscure_outside_mask | COMBO | off | Fill the crop's non-painted area before sending. 'blur' = heavy Gaussian (model gets skin tone + lighting but no NSFW shapes). 'mosaic' = pixelate. 'neutral' = solid skin tone. Use when editing near revealing content that trips IMAGE_SAFETY. |
| obscure_blur_px | INT | 404–200 | Blur radius (or mosaic block size) for obscure_outside_mask. Bigger = more hidden. |
| composite_dilate_px | INT | 00–40 | Expand the painted mask outward before feather. 0 = composite exactly inside the painted region. |
| composite_feather_px | INT | 240–128 | — |
| image_size | COMBO | 2K | 3 options: 1K, 2K, 4K |
| color_match | BOOLEAN | true | — |
| grain_match | BOOLEAN | true | — |
| sharpness_match | BOOLEAN | true | — |
| composite_method | COMBO | laplacian | 2 options: laplacian, feather |
| lab_strength | FLOAT | 0.600–1 | — |
| grain_strength | FLOAT | 1.000–2 | — |
| identity_1opt | IMAGE | — | |
| identity_2opt | IMAGE | — | |
| identity_3opt | IMAGE | — | |
| identity_4opt | IMAGE | — | |
| identity_5opt | IMAGE | — | |
| identity_6opt | IMAGE | — | |
| dry_runopt | BOOLEAN | false | — |
| timeout_msopt | INT | 1800005000–600000 | — |
| ref_cap_pxopt | INT | 10240–4096 | — |
| auto_relax_on_refusedopt | BOOLEAN | false | — |
| networkopt | NB_NETWORK | Optional. Wire a NanoBanana - Network Route node here to route this swap's API call through that proxy (e.g. US egress). |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| status | STRING | — |
| mask | MASK | — |
| debug_sheet | IMAGE | — |