Skip to main content
851 LabsFastHigh

Background Remover

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.

1 credits
per image
Most-used background remover on Replicate
Soft alpha matte or hard segmentation (threshold)
Reverse mode โ€” remove the foreground instead
Custom backgrounds: transparent, white, green, blur, overlay
Extremely low cost (2 credits per image)

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Quick Start

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"
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
imagestringYes-Input image to remove the background from
thresholdnumberNo0Hard segmentation threshold (0.0-1.0). 0 uses soft alpha matte
reversebooleanNofalseRemove the foreground instead of the background
background_typestringNorgba'rgba' (transparent), 'white', 'green', 'blur', 'overlay', 'map', an [R,G,B] array, or an image URL
formatstringNopngOutput format (png for transparency, jpg)

How to Provide File Input

There are 3 ways to provide files for the image parameter:

Recommended

Direct Upload (Multipart)

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"

Image URL

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"
  }
}
See the File Upload docs for more upload methods including Presigned URLs.

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

Transparent Product Cutout

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"
  }
}'

White Background for Marketplace

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"
  }
}'

Tips & Best Practices

1Keep threshold at 0 (soft alpha) for hair and fine edges; raise it for crisp hard cutouts
2Use format: png with background_type: rgba for transparency
3background_type: blur gives an instant portrait-mode effect
4At 2 credits per image, it's ideal for bulk catalog processing
5For the highest edge fidelity on difficult subjects, compare with BiRefNet

Use Cases

Product photos for e-commerce
Profile picture cutouts
Bulk catalog image processing
Sticker and thumbnail creation
Green-screen compositing prep