jide/nano-banana-2-transparent 🖼️📝🔢 → 🖼️

▶️ 1.8K runs 📅 Mar 2026 ⚙️ Cog 0.16.12
background-removal image-editing text-to-image

Performance

51.7sTypical run time
1.8KTotal runs

About

Nano Banana 2 with alpha transparency. Generates images with real RGBA transparency using triangulation matting — clean edges, proper semi-transparency, and accurate colors. Powered by Google Gemini 3.1 Flash Image.

Example Output

Prompt:

"A futuristic semi transparent HUD with a rich interface"

Output

Example output

Performance Metrics

51.67s Prediction Time
72.07s Total Time
All Input Parameters
{
  "prompt": "A futuristic semi transparent HUD with a rich interface",
  "resolution": "1K",
  "aspect_ratio": "1:1",
  "image_search": false,
  "google_search": false,
  "replicate_api_token": "[REDACTED]"
}
Input Parameters
image (required) Type: string
Input image to remove background from
prompt Type: stringDefault:
Optional: describe what to isolate (e.g. 'the car', 'the person'). If empty, all foreground elements are kept.
alpha_ceil Type: integerDefault: 250Range: 128 - 255
Alpha values at or above this become fully opaque (0-255). Cleans up near-opaque edges.
alpha_floor Type: integerDefault: 6Range: 0 - 128
Alpha values at or below this become fully transparent (0-255). Suppresses faint matte noise.
replicate_api_token (required) Type: string
Your Replicate API token (from replicate.com/account). Required to call Nano Banana 2 internally.
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Generating white background version...
White version ready: https://replicate.delivery/xezq/yRRno6TOJqKbKFO6nbiFKCqiVMfbXgwrvwJWye2HOMcjPlPWA/tmpls7juvpe.png
Generating black background version...
Black version ready: https://replicate.delivery/xezq/kaWf84ZYfkmxn0UIvM5W0FH6hR7Gbo94VoQOULO813UefUexC/tmpkmfi0aon.png
Computing alpha matte...
Done — 1024x1024 RGBA
Version Details
Version ID
689fe27ffec145cc7e3d76ee4778ab3b0f24bd72eca62f4f534d562f062a2e1d
Version Created
March 11, 2026
Run on Replicate →