Rembg - Remove Background
Remove backgrounds from images automatically using Rembg. Simply provide an image and receive a transparent background version.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "rembg",
"version": "0.0.1",
"input": {
"image": "https://example.com/product-photo.jpg"
}
}'
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| image | string | - | Input image to remove background from |
Examples
Remove background from product photo:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "rembg",
"version": "0.0.1",
"input": {
"image": "https://example.com/sneaker-on-table.jpg"
}
}'
Remove background from portrait:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "rembg",
"version": "0.0.1",
"input": {
"image": "https://example.com/headshot-outdoor.jpg"
}
}'
Related Models
- realistic-background - Replace backgrounds with AI-generated scenes
- sdxl-ad-inpaint - Product ad image generation
- flux-fill-pro - Inpainting and image editing