jide/nano-banana-2-bg-remove 🖼️📝🔢 → 🖼️
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
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)
- Input image to remove background from
- prompt
- Optional: describe what to isolate (e.g. 'the car', 'the person'). If empty, all foreground elements are kept.
- alpha_ceil
- Alpha values at or above this become fully opaque (0-255). Cleans up near-opaque edges.
- alpha_floor
- Alpha values at or below this become fully transparent (0-255). Suppresses faint matte noise.
- replicate_api_token (required)
- Your Replicate API token (from replicate.com/account). Required to call Nano Banana 2 internally.
Output Schema
Output
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