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
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.
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.
Pricing
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
