851-labs / background-remover
Remove backgrounds from images.
- Price: $0.0004 per second of GPU time, billed from prepaid credit. Failed runs are free.
- License: MIT
- Source: https://github.com/plemeri/transparent-background
- Collection: Edit images
- Status: available now
Run 851-labs/background-remover with the API
curl -s https://binerai.biner.dev/v1/predictions \
-H "Authorization: Bearer $BINERAI_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"851-labs/background-remover","input":{"image":"https://example.com/input.png"}}'
Then poll GET https://binerai.biner.dev/v1/predictions/:id or pass a webhook URL. Full reference: API docs.
Input
| Field | Type | Description |
|---|---|---|
image | string | Input image |
format | string, default "png" | Output format (e.g., png, jpg). Defaults to png. |
reverse | boolean, default false | If True, remove the foreground instead of the background. |
threshold | number, default 0 | Threshold for hard segmentation (0.0-1.0). If 0.0, uses soft alpha. |
background_type | string, default "rgba" | Background type: 'rgba', 'map', 'green', 'white', [R,G,B] array, 'blur', 'overlay', or path to an image. |
Examples
Example runs from Replicate.
Description via replicate.