Spiral gives your agent every tool with one account. Browse the tools →

ReplicateImageAvailable nowReleased 2024-12-19

851 Labs Background Remover

851-labs/background-remover

Edit and enhance images with 851 Labs Background Remover from Replicate through one Spiral API key. Removes the background from an image, returning a transparent cutout or a new backdrop such as white, green or a blur. It runs in the background and returns images. Pay as you go, with no subscription.

Pricing

$0.000293 per second of processing.

Limits

Runs
In the background
Returns
image
Longest queue wait
1 hour
Run deadline
16 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
image requiredURL or file—

Input image

formattextpng

Output format (e.g., png, jpg). Defaults to png.

reversetrue or falsefalse

If True, remove the foreground instead of the background.

thresholdnumber0

Threshold for hard segmentation (0.0-1.0). If 0.0, uses soft alpha.

background_typetextrgba

Background type: 'rgba', 'map', 'green', 'white', [R,G,B] array, 'blur', 'overlay', or path to an image.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "replicate",
    "model": "851-labs/background-remover",
    "input": {
      "image": "<image>"
    }
  }'

Frequently asked questions

How much does 851 Labs Background Remover cost?

$0.000293 per second of processing. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use 851 Labs Background Remover through an API?

Send `POST /v1/runs` with `"provider": "replicate"`, `"model": "851-labs/background-remover"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Replicate to use 851 Labs Background Remover?

No. Spiral runs it on its own Replicate account and charges your Spiral balance.

Can my AI agent use 851 Labs Background Remover?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.