# 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.

- Provider: Replicate
- Category: Image
- Runs: In the background
- Returns: image
- Released: 2024-12-19
- Tool id: `replicate` / `851-labs/background-remover`
- Page: https://spiral.ai/tools/replicate/851-labs/background-remover

## Pricing

$0.000293 per second of processing.

## Limits

- 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

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `image` (required) | URL or file |  | — | Input image |
| `format` | text |  | png | Output format (e.g., png, jpg). Defaults to png. |
| `reverse` | true or false |  | false | If True, remove the foreground instead of the background. |
| `threshold` | number |  | 0 | Threshold for hard segmentation (0.0-1.0). If 0.0, uses soft alpha. |
| `background_type` | text |  | rgba | Background type: 'rgba', 'map', 'green', 'white', [R,G,B] array, 'blur', 'overlay', or path to an image. |

## Example

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

Try it in the Playground: https://spiral.ai/start?provider=replicate&model=851-labs%2Fbackground-remover

## Common questions

### 851 Labs Background Remover

**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.

