FREEDOM251

Freedom251 › AI Background Removers

rembg

Free plan APILinuxSelf-hosted

Visit rembg Alternatives Pricing

rembg's own site

What rembg is

rembg is a tool for removing image backgrounds, with several ways to use it in image-processing workflows. It can run as a command-line tool, Python library, HTTP server, or Docker container, and it provides API access and batch processing. The command line supports single images, folders, watch mode, and RGB24 streams. PNG is the listed export format, and replacement backgrounds are not supported.

Available models cover general images, portraits, clothing, anime, and object segmentation; bria-rmbg is the default local model. Edge refinement options include color decontamination, alpha matting, and ViTMatte. Documentation covers use with FFmpeg RGB24 output, OpenCV, PIL, NumPy, Docker, and the HTTP API. Installation instructions cover CPU, NVIDIA CUDA GPU, and AMD ROCm backends. Python versions >=3.11 and <3.14 are listed as requirements. Local ONNX models download on first use and are stored in the rembg models directory. The optional withoutBG backend sends images to withoutBG servers and has a documented maximum upload size of 20 MB. rembg is free and MIT-licensed, though model weights have separate licenses; commercial use of RMBG-2.0 under the BRIA license requires a paid agreement.

Who it suits

rembg suits developers and image-processing workflows that need local background removal, batch processing, or an API. It can also suit users working with Python, Docker, FFmpeg, OpenCV, PIL, or NumPy, provided they account for model-specific licensing when using weights commercially.

What it does well

  • Free tool licensed under MIT.
  • Offers command-line, Python library, HTTP server, and Docker use.
  • Supports batch folders, watch mode, and RGB24 streams.
  • Includes models for portraits, clothing, anime, and object segmentation.
  • Provides edge refinement with alpha matting and ViTMatte.

What to know first

  • PNG is the listed export format; replacement backgrounds are unavailable.
  • Python versions must be >=3.11 and <3.14.
  • Commercial use of RMBG-2.0 under the BRIA license requires a paid agreement.

Limits

The optional withoutBG backend has a maximum upload size of 20 MB. Commercial use of RMBG-2.0 under the BRIA license requires a paid agreement; model weights have separate licenses.

Plans

PlanBilled and limitsPrice
rembgMIT-licensed tool · local models downloaded on first useFree

As github.com lists them, read 9 Oct 2026. The maker's own page has the final word.

Getting started

  1. Install rembg for a Python version >=3.11 and <3.14.
  2. Choose a CPU, NVIDIA CUDA GPU, or AMD ROCm installation backend.
  3. Use it through the command line, Python library, HTTP server, or Docker container.
  4. Process an image or batch folder and select a suitable model and edge-refinement options.
  5. For the optional withoutBG backend, send images to its servers within the 20 MB maximum upload size.

Verdict

Choose rembg if you want a free, flexible background-removal tool with command-line, library, API, and container options. Look elsewhere if you need replacement backgrounds or a different export format, and review model licenses before commercial use.

Questions

Is rembg free?

Yes. Its listed rembg plan is free, and the tool is MIT-licensed.

What platforms and usage methods are supported?

Listed platforms are API, Linux, and self-hosted. It can be used as a command-line tool, Python library, HTTP server, or Docker container.

What output format does it export?

PNG is the listed export format. Replacement backgrounds are not supported.

Does it support batch processing?

Yes. The command line supports batch folder processing, as well as single images, watch mode, and RGB24 streams.

Can rembg be used commercially?

The tool is MIT-licensed, but model weights have separate licenses. Commercial use of RMBG-2.0 under the BRIA license requires a paid agreement.

What is the withoutBG option?

It is an optional backend that sends images to withoutBG servers. Its documented maximum upload size is 20 MB.

Facts from rembg's own pages

API access
Yes · github.com, 23 Sept 2026
Batch processing
Yes · github.com, 23 Sept 2026
Cloud option
The optional withoutBG backend sends images to withoutBG servers and has a documented maximum upload size of 20 MB. · github.com, 9 Oct 2026
Commercial-use limit
The README says the BRIA license for RMBG-2.0 requires a paid agreement for commercial use. · github.com, 9 Oct 2026
Compute options
Installation instructions cover CPU, NVIDIA CUDA GPU, and AMD ROCm backends. · github.com, 9 Oct 2026
Edge refinement
Edge options include color decontamination, alpha matting, and ViTMatte for refining soft edges. · github.com, 9 Oct 2026
Export formats
PNG · github.com, 23 Sept 2026
Free plan
Yes · github.com, 23 Sept 2026
Integrations
The documentation shows using rembg with FFmpeg RGB24 output, OpenCV, PIL, NumPy, Docker, and its HTTP API. · github.com, 9 Oct 2026
Licensing
rembg is licensed under MIT, while model weights have separate licenses that may affect commercial use. · github.com, 9 Oct 2026
Local storage
Local ONNX models download on first use and are stored under the rembg models directory. · github.com, 9 Oct 2026
Models
Available models include options for general images, portraits, clothing, anime, and object segmentation; bria-rmbg is the default local model. · github.com, 9 Oct 2026
Processing
The command line supports single images, batch folder processing, watch mode, and RGB24 streams. · github.com, 9 Oct 2026
Purpose
rembg is a tool for removing image backgrounds. · github.com, 9 Oct 2026
Replacement backgrounds
No · github.com, 23 Sept 2026
Runtime requirements
The project lists Python versions >=3.11 and <3.14 as requirements. · github.com, 9 Oct 2026
Security detail
Downloaded models have hash verification, which can be disabled with the MODEL_CHECKSUM_DISABLED environment variable. · github.com, 9 Oct 2026
Support
The README invites users to support the project by buying the maintainer a coffee or beer. · github.com, 9 Oct 2026
Ways to use
It can be used as a command-line tool, Python library, HTTP server, or Docker container. · github.com, 9 Oct 2026

Where rembg stands on Freedom251

Look at these too