Skip to main content
lucatacoFastStandard

Remove BG

One of the most-run background removers on Replicate (17M+ runs). A single-parameter API that strips the background and returns a transparent PNG โ€” at just 1 credit per image, the cheapest cutout on the platform.

1 credits
per image
17M+ runs โ€” battle-tested at scale
Single parameter: just the image
Transparent PNG output
1 credit per image โ€” cheapest background removal on the platform
Fast, consistent results on products and people

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": "lucataco/remove-bg",
  "input": {
    "image": "https://example.com/product.jpg"
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
imagestringYes-Input image to remove the background from

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=lucataco/remove-bg" \
  -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": "lucataco/remove-bg",
  "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

Product Cutout

One call, one parameter, transparent PNG back

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "lucataco/remove-bg",
  "input": {
    "image": "https://example.com/product.jpg"
  }
}'

Tips & Best Practices

1At 1 credit per image this is the cheapest cutout on the platform โ€” ideal for high-volume batch jobs
2There are no options: if you need white/green/blur backgrounds or reverse mode, use 851-labs Background Remover (2cr)
3For the highest edge fidelity on hair and fine details, compare with BiRefNet
4Pairs well with an upscaler afterwards โ€” alpha-preserving Bria Increase Resolution keeps the transparency

Use Cases

Bulk e-commerce product cutouts
Profile photo transparency
Preprocessing images for compositing
Sticker and thumbnail pipelines
High-volume automated workflows where cost matters