Rembg
App in the BluixApps catalog
What it is
rembg is the canonical background removal tool — strip backgrounds from any image (people, products, animals, hair) via a REST API. Multiple model variants for different inputs (general, anime, human, dichotomous), all available through one endpoint.
The drop-in replacement for remove.bg API for self-hosted, batch, privacy-friendly workflows.
What it's for
- Product photo standardization — white BG for e-commerce
- Profile picture transparency — for layered designs
- Social media graphics — extract subject for composite
- Batch processing — bulk catalog photo cleanup
- API-driven workflows — programmatic BG removal at scale
- Hair / fur edges — alpha matting for fine details
Who it's for
- E-commerce platforms standardizing product photos
- Photo studios automating cutout workflows
- Marketing agencies producing layered graphics
- Social media managers creating quick subject extracts
- Operula seller backends processing artisan product photos
- Hosting providers offering image API services
Why teams pick rembg over alternatives
- MIT license — fully open
- Multiple model variants — pick best for input type
- REST API — easy integration
- Alpha matting — fine edges for hair, fur, transparency
- Active maintenance — Daniel Gatis + contributors
- Used in production by many image-AI products
- Privacy-friendly — no data leaves your server
Integrations
- REST API — POST file, receive PNG with alpha
- URL mode — pass image URL via query string
- Pair with: SDXL/Flux (generate → remove BG → composite)
- Pair with: Real-ESRGAN (upscale → BG remove for crisp transparency)
- Pair with: ComfyUI (BG removal nodes)
- Output: PNG with alpha channel
Notable users & community
- 17k+ GitHub stars
- Daniel Gatis maintains; many contributors
- Used in many image-AI products + workflows
- Featured in image automation guides
- Multiple commercial integrations
Tips & operations
- Model variants:
- u2net (general, default, best for most cases)
- u2netp (lightweight, faster)
- u2net_human_seg (people-specific)
- u2net_cloth_seg (clothing extraction)
- silueta (general alternative)
- isnet-general-use (newer, sharper edges)
- isnet-anime (anime / illustrations)
- sam (Meta Segment Anything, prompt-driven)
- bria-rmbg-1.4 (commercial-grade, requires Bria license)
- Alpha matting (
?a=true): for hair / transparency, slower but cleaner - Throughput:
- CPU: 1-2 sec per image
- GPU: 0.1-0.3 sec per image
- VRAM: 4 GB minimum
- Persistent cache: models downloaded on first use, ~200 MB per model
- Production: API mode (REST), batch via queue, scale horizontally
What we ship in BluixApps
- Docker (danielgatis/rembg:latest-gpu)
- Persistent volume: cache (model storage)
- Port 7878 mapped (rembg default 7000)
- Server mode
s(REST API) - Swagger UI at
/api - Install report at
/root/bluixapps/rembg.txt - API endpoint examples (file upload, URL-based)
- Model variant guidance
- Use cases (e-commerce, social, profile pic)
- Pairing suggestions (SDXL for generation, Real-ESRGAN for upscale)
- GPU pre-flight check via
bluixapps_ensure_nvidia_runtime - Backup hook covers model cache
Get this app — pick a BluixApps plan
Same catalog. Scaling tenant isolation, white-label and support tier.
| Tier | Tenants | Catalog | Support | White-label | Monthly | |
|---|---|---|---|---|---|---|
| Stacks | 1 | 19 curated stacks | Standard | — | $19/mo | DetailDeploy |
| Starter | 10 | Full catalog | Standard | +$15–25/mo | $49/mo | DetailDeploy |
| Pro | 25 | Full catalog | Priority bugfix | +$15–25/mo | $149/mo | DetailDeploy |
| Growth | 100 | Full catalog | Priority bugfix | +$15–25/mo | $349/mo | DetailDeploy |
| Scale | 500 | Full catalog | 7-day window | +$15–25/mo | $799/mo | DetailDeploy |
| Enterprise | Unlimited | Full catalog | Priority 7-day | Bundled | $1,499/mo | DetailDeploy |