The most-used background remover on Replicate (27M+ runs). Removes backgrounds with soft alpha or hard segmentation, supports reverse mode (remove foreground), custom background types, and transparent PNG output โ all at a very low price.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "851-labs/background-remover",
"input": {
"image": "https://example.com/product.jpg",
"format": "png",
"background_type": "rgba"
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
image | string | Yes | - | Input image to remove the background from |
threshold | number | No | 0 | Hard segmentation threshold (0.0-1.0). 0 uses soft alpha matte |
reverse | boolean | No | false | Remove the foreground instead of the background |
background_type | string | No | rgba | 'rgba' (transparent), 'white', 'green', 'blur', 'overlay', 'map', an [R,G,B] array, or an image URL |
format | string | No | png | Output format (png for transparency, jpg) |
There are 3 ways to provide files for the image parameter:
Attach files directly to POST /v1/predictions/upload. No separate upload step needed.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=851-labs/background-remover" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:image=@your_file.png"Pass a publicly accessible URL directly. You can also use file_url from the Storage API.
{
"model": "851-labs/background-remover",
"input": {
"prompt": "your prompt here",
"image": "https://example.com/image.jpg"
}
}Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Remove the background and get a transparent PNG
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "851-labs/background-remover",
"input": {
"image": "https://example.com/product.jpg",
"format": "png",
"background_type": "rgba"
}
}'Replace the background with clean white
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "851-labs/background-remover",
"input": {
"image": "https://example.com/product.jpg",
"background_type": "white"
}
}'POST /v1/predictions