rembg
rembg removes backgrounds from images and can be used as a command-line tool, Python library, HTTP server, or Docker container.
What rembg is
rembg removes backgrounds from images and can be used as a command-line tool, Python library, HTTP server, or Docker container. It supports single-image and batch-folder processing, watch mode, RGB24 streams, and API access, with PNG as its listed export format. Models cover general images, portraits, clothing, anime, and object segmentation; bria-rmbg is the default local model. For edge refinement, options include color decontamination, alpha matting, and ViTMatte. The documentation describes integrations with FFmpeg RGB24 output, OpenCV, PIL, NumPy, Docker, and its HTTP API. rembg is free, with a free plan, and is licensed under MIT. Local ONNX models download on first use and are stored in the rembg models directory. The listed Python requirement is versions >=3.11 and <3.14, and installation instructions cover CPU, NVIDIA CUDA GPU, and AMD ROCm. The optional withoutBG backend sends images to its servers, with a documented 20 MB maximum upload size. Model weights have separate licenses; commercial use of RMBG-2.0 under the BRIA license requires a paid agreement.
Good
- Free, MIT-licensed tool
- Supports batch folders and API access
- Offers several model categories
- Includes multiple edge-refinement options
Watch out
- Requires Python >=3.11 and <3.14
- PNG is the listed export format
- RMBG-2.0 commercial use requires a paid agreement under BRIA licensing
- withoutBG uploads are capped at 20 MB
Who it suits
rembg suits users who want image-background removal through a command line, Python, HTTP API, or Docker. Its batch processing and edge-refinement options may help people building image-processing workflows.
Verdict
rembg offers several ways to remove image backgrounds, from command-line use to an HTTP server, with batch processing and edge controls. Check model licensing before commercial use, and note the Python version requirements.
Plans and prices
From rembg's own pricing page, checked 9 Oct 2001.
| Plan | Price | What it gives you |
|---|---|---|
| rembg | Free | MIT-licensed tool · local models downloaded on first use |
The facts
Each one read from rembg's own pages, with the date it was checked.
What it does
- API access
- Yeschecked 23 Sep 2001
- Batch processing
- Yeschecked 23 Sep 2001
- Cloud option
- The optional withoutBG backend sends images to withoutBG servers and has a documented maximum upload size of 20 MB.checked 9 Oct 2001
- Commercial-use limit
- The README says the BRIA license for RMBG-2.0 requires a paid agreement for commercial use.checked 9 Oct 2001
- Compute options
- Installation instructions cover CPU, NVIDIA CUDA GPU, and AMD ROCm backends.checked 9 Oct 2001
- Edge refinement
- Edge options include color decontamination, alpha matting, and ViTMatte for refining soft edges.checked 9 Oct 2001
- Export formats
- PNGchecked 23 Sep 2001
- Integrations
- The documentation shows using rembg with FFmpeg RGB24 output, OpenCV, PIL, NumPy, Docker, and its HTTP API.checked 9 Oct 2001
- Licensing
- rembg is licensed under MIT, while model weights have separate licenses that may affect commercial use.checked 9 Oct 2001
- Local storage
- Local ONNX models download on first use and are stored under the rembg models directory.checked 9 Oct 2001
- Models
- Available models include options for general images, portraits, clothing, anime, and object segmentation; bria-rmbg is the default local model.checked 9 Oct 2001
- Processing
- The command line supports single images, batch folder processing, watch mode, and RGB24 streams.checked 9 Oct 2001
- Purpose
- rembg is a tool for removing image backgrounds.checked 9 Oct 2001
- Replacement backgrounds
- Nochecked 23 Sep 2001
- Runtime requirements
- The project lists Python versions >=3.11 and <3.14 as requirements.checked 9 Oct 2001
- Security detail
- Downloaded models have hash verification, which can be disabled with the MODEL_CHECKSUM_DISABLED environment variable.checked 9 Oct 2001
- Support
- The README invites users to support the project by buying the maintainer a coffee or beer.checked 9 Oct 2001
- Ways to use
- It can be used as a command-line tool, Python library, HTTP server, or Docker container.checked 9 Oct 2001
Money
- Free plan
- Yeschecked 23 Sep 2001
Alternatives to rembg
- 1

Pixelcut
Free planAndroidiOSWebAPI9.1From $0.67 a month - 2

Photoroom
Free planAndroidiOSWebAPI9.1From $7.50 a month - 3
Cutout.Pro
Free planAndroidiOSWebAPI9.0From $4.99 a month - 4

Erase.bg
Free planAndroidiOSWebAPI8.9$6, paid once - 5

Artguru Background Remover
Free planAndroidiOSWebAPI8.4From $0.01 a month - 6
PhotoKit Background Remover
Free planAndroidiOSWebAPI8.4$9.99, paid once
