ComfyUI Node: Nano Banana - Face Swap (Whole Image)

Authored by IxMxAMAR

Created

Updated

2 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Category

NanoBanana FaceSwap

Inputs

api_key STRING
model
  • gemini-3.1-flash-image-preview
  • gemini-3-pro-image-preview
  • gemini-2.5-flash-image
target_image IMAGE
identity_1 IMAGE
scope
  • face
  • head
  • head+styling
grid_mode
  • separate_refs
  • auto_sheet
custom_hint STRING
safety_threshold
  • BLOCK_NONE
  • BLOCK_ONLY_HIGH
  • BLOCK_MEDIUM_AND_ABOVE
  • BLOCK_LOW_AND_ABOVE
seed INT
batch_axis
  • target
  • identity
image_size
  • 1K
  • 2K
  • 4K
identity_2 IMAGE
identity_3 IMAGE
identity_4 IMAGE
identity_5 IMAGE
identity_6 IMAGE
dry_run BOOLEAN
timeout_ms INT
ref_cap_px INT
auto_relax_on_refused BOOLEAN
network NB_NETWORK

Outputs

IMAGE

STRING

MASK

IMAGE

Extension: NanoBanana FaceSwap

Face/head replacement for ComfyUI via Google Nano Banana 2 (Gemini image editing). Five swap pathways (whole, crop, mask-inpaint, unbiased, painted-edit), mediapipe + YuNet + Gemini bbox detector cascade, LAB / grain / sharpness / Laplacian compositing, identity-ref obfuscation for celebrity-classifier evasion.

Authored by IxMxAMAR

Looking for a different node?

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Learn more