Spaces:
Runtime error
Runtime error
| 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 |