# rembg

Background removal you run. rembg is MIT — remove.bg without the credit meter.

**Replaces:** remove.bg

**Tier:** Easy

## Problem

remove.bg meters background-removal credits. You wanted a library and CLI on hardware you control. rembg is MIT (danielgatis/rembg). It needs a model file and usually a CPU or GPU; it is not a pretty hosted editor. imgproxy stays the Cloudinary-shaped resize pipeline (/replace/cloudinary). This is not remove.bg's every Photoshop plugin or batch-API SKU. GIMP stays general raster (/replace/photoshop).

## Stack

- [rembg](https://github.com/danielgatis/rembg) — MIT background-removal library and CLI

## Estimated SaaS cost saved

| You stop paying | Typical / year | Self-host instead |
|---|---:|---|
| remove.bg (small team) | $1,200 | rembg + a model |

**About $1,200 / year** on a small team, before you count lock-in.

## Deploy on Railway

Placeholder: rembg as a worker or API next to the app that currently calls remove.bg. Models need disk; GPU is optional. No one-click template in this repo yet — Start on Railway. Image resize stays on /stacks/imgproxy-media.

[Start on Railway](https://c17.io/go/railway/rembg-bg?from=%2Fstacks%2Frembg-bg.md)

[imgproxy if this is resize/CDN, not background removal](https://c17.io/stacks/imgproxy-media)

## AGENT_PROMPT

```
Replace remove.bg with rembg (https://github.com/danielgatis/rembg).

- Install the project's documented CLI or API, persist the model, run one image you currently send to remove.bg.
- Do not claim every remove.bg plugin. Resize/CDN stays on /stacks/imgproxy-media. Write AGENT_PROMPT.md.
```

## FAQ

### Is this a hosted editor?

No. rembg is a library/CLI you run. remove.bg is the pretty meter. That is the point.

### Why not imgproxy?

imgproxy resizes and serves images (/replace/cloudinary). This page removes backgrounds.

Source: https://c17.io/stacks/rembg-bg
