ReplicateImage to imageAvailable now

851-labs/background-remover

851-labs/background-remover is an image to image tool from Replicate that runs in the background and returns images. Pay as you go from $0.0002925 per second, with one API key.

Try itfrom $0.0002925 / second

Pricing

$0.0002925 per second of GPU time, measured on each run. The final charge comes from usage.

Limits

Runs
In the background
Returns
image
Longest queue wait
3600s
Run deadline
960s
Largest inline input
1024 KB
Largest input file
500 MB
Largest output
4768 MB
Outputs per run
16

Input

FieldKindDefaultDescription
image requiredURL or file—Input image
formattextpngOutput format (e.g., png, jpg). Defaults to png.
reversetrue or falsefalseIf True, remove the foreground instead of the background.
thresholdnumber0Threshold for hard segmentation (0.0-1.0). If 0.0, uses soft alpha.
background_typetextrgbaBackground 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>"
    }
  }'