Remove the background from an image
background_removeRemove an image background and save the cutout as a transparent PNG locally, with no uploads or API calls. Choose fast, best, portrait, or anime quality.
Instructions
Cuts out the subject and saves a transparent PNG, fully on this computer with rembg and BiRefNet models (no upload, no API). quality: fast (BiRefNet lite, default), best (BiRefNet general, slower, ~1 GB model on first use), portrait (people), anime. The first run downloads the model once. Needs rembg: uv tool install "rembg[cpu,cli]".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | fast | |
| overwrite | No | ||
| input_path | Yes | ||
| output_path | No | Default: <name>-cutout.png next to the input |