# Background removal

Remove the surrounding background while keeping the source subject. This fits catalog images, presentation assets and profile cutouts where you already have the right photograph. It does not invent a new setting or replace objects; those jobs require image editing or generation.

## Inputs & outputs

### Background removal

- ### Required input

An image file. The CLI can convert a local file into a base64 data URL for the request.

- ### Result

An image artifact intended to preserve a transparent background, plus its MIME type and provider.

- ### Configured bounds

The capability catalog specifies a 60-second timeout and a 20,000,000-byte limit. Inspect fine edges on both light and dark backgrounds.

## Tool usage

Tool charges use the same configured cost basis and 2× multiplier as billing. Model and runtime charges are separate.

Background removal uses a provisional flat cost.

- ### rembg.remove-background

$0.01 per asset.

## Example tasks

### Put it to work

Choose an example and adapt its input and intended result to your task.

- ### Cut out a product

Remove the background from this product photo. Preserve the outline and fine details, and return a transparent image.

- ### Prepare a portrait

Remove the background from this portrait. Preserve hair detail and flag any uncertain edges for review.

## Common questions

### Can I use a local image file?

### What is the difference from replacing a background?

### When should I use background removal instead of image generation?

### What input should I provide?

### Will the result always have perfect edges?

### What output file does the current adapter return?

### Can I remove the background from a batch of product photos?

### Does background removal add pixels or improve source resolution?

### Why do fine edges sometimes need cleanup?

### How much does background removal cost?
