jide/nano-banana-2-bg-remove 🖼️📝🔢 → 🖼️

▶️ 2.3K runs 📅 Mar 2026 ⚙️ Cog 0.16.12
background-removal

Performance

52.1sTypical run time
2.3KTotal runs

About

Remove backgrounds with real alpha transparency using Nano Banana 2. Triangulation matting produces clean edges, proper semi-transparency, and accurate colors — superior to traditional background removal. Optionally specify what to isolate.

Example Output

Output

Example output

Performance Metrics

52.14s Prediction Time
68.46s Total Time
All Input Parameters
{
  "image": "https://replicate.delivery/pbxt/OjALJog9QahIK5H9nge4h9OOW4zf7h2kHnQFAk35PHGw8jrd/jewelry.jpg",
  "prompt": "",
  "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
Input image: 1200x800
Best fit: 3:2 @ 1K (1264x848)
Padded image: 1264x848, 428 KB (webp)
Uploading...
Uploaded: https://api.replicate.com/v1/files/MzRiODgxMWUtNzlkZC00OTY2LWFhNDctZWZmZmYwY2Q2YzI2
Generating white background version...
White version ready: https://replicate.delivery/xezq/XlnEGfVfWsh750qTTneooFYd5kSNHeuVBKws5qvtOJuh7ZexC/tmp48vwx5u8.png
Generating black background version...
Black version ready: https://replicate.delivery/xezq/lFg5aWtV1q4bMxCHjcUTvwis8wBOUIFkZSKBwr9Wrm0zn5jF/tmpefxnnsns.png
Computing alpha matte...
Done — 1200x800 RGBA
Version Details
Version ID
e22455262c4a50d5cb64ac7ab903650280f34c7ea17b395f626a954f31a4f5b9
Version Created
March 11, 2026
Run on Replicate →