Remove the background from an image
replicate_remove_backgroundRemove the background from an image to produce a transparent PNG. Supports models like rembg, birefnet, and briaai-rmbg.
Instructions
Produce a transparent-background version (PNG) of an image.
DISPLAY REQUIREMENT — after this tool returns successfully, embed the cut-out image inline using one of the three blocks (iframe / / markdown) printed by the tool.
Args:
image (string URL): URL of the source image.
model (string, default "rembg"): Curated key (rembg, birefnet, briaai-rmbg) or "owner/name".
extra_input (object, optional): Model-specific extras.
download (boolean, default true): Download the cut-out PNG locally.
Returns: PredictionResult with urls + local_paths to a transparent PNG.
Examples:
image="" → rembg quick cut
image="", model="birefnet" → sharper edge for hair
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | URL of the image whose background to remove. | |
| model | No | Background remover. Curated: rembg, birefnet, briaai-rmbg. Or "owner/name". | rembg |
| download | No | ||
| timeout_ms | No | Max ms to wait for the prediction. If exceeded, returns the prediction ID so you can poll via replicate_get_prediction. Default: 300000 (5min). | |
| extra_input | No |