File size: 748 Bytes
12da645
 
87ce57c
 
 
0b2ddbf
12da645
 
 
 
87ce57c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
title: Background Remover
emoji: 🖼️
colorFrom: blue
colorTo: purple
sdk: docker
app_file: app.py
pinned: false
---

# Background Remover with Rembg

This Space removes backgrounds from images using Rembg and provides an API endpoint for integration with your apps.

## Features
- Simple web interface for testing
- API endpoint at `/api/remove-bg`
- Fast background removal
- Supports all common image formats

## How to Use the API
Send a POST request to `https://[your-space-name].hf.space/api/remove-bg` with:
- An image file in the request body (form-data)
- Key name: `file`

### Example API Request (curl)
```bash
curl -X POST \
  -F "file=@your_image.jpg" \
  https://[your-space-name].hf.space/api/remove-bg \
  --output output.png