Remove backgrounds automatically with 1 API call
Integrate AI-powered background removal into your applications. Our REST API removes image backgrounds in seconds with a single HTTP request.
Easy to integrate
Our API is a simple HTTP interface that accepts direct file uploads and returns transparent PNG results in 3-5 seconds.
RESTful API
Simple HTTP POST with multipart/form-data.
Bearer Token
Authenticate with a single Authorization header.
PNG Output
Transparent PNG results ready for any use case.
3-5s Processing
Optimized AI pipeline for fast results.
Get started
Get your API key
Sign up and generate an API key from your settings. Your first credits are on us.
Make your first API call
Use the sample code below to send your first request in under a minute.
Integrate into your app
Embed the API call into your application workflow.
Sample code
Replace ebp_YOUR_KEY with your API key and photo.jpg with your image path.
curl -X POST https://erasebgpro.com/api/v1/remove-background \
-H "Authorization: Bearer ebp_YOUR_KEY" \
-F "file=@photo.jpg" \
-o result.pngOutput formats
The API returns results in PNG format with alpha channel transparency.
| Format | Resolution | Transparency | Notes |
|---|---|---|---|
| PNG | Up to 4K (4096x4096) | Default format, ready for any use |
Rate limits & error handling
Free demo endpoint
5 requests per IP per 24 hours. Authenticated users are not rate-limited.
API v1 endpoint
Credit-based: subscribed users get unlimited access; free users consume 1 credit per request. Returns X-Credits-Remaining header.
X-Credits-Remaining: 99Error codes
| Status | Meaning |
|---|---|
| 200 | Success — returns the processed image |
| 400 | Bad request — no file provided or invalid input |
| 401 | Unauthorized — missing or invalid API key |
| 402 | Payment required — insufficient credits |
| 429 | Too many requests — rate limit exceeded (demo endpoint only) |
| 500 | Server error — please try again later |
API reference
Endpoint
Authentication
Include your API key as a Bearer token in the Authorization header.
Authorization: Bearer ebp_YOUR_KEYParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | File (multipart) | Yes | Image file to process (JPEG, PNG, WebP) |
| provider | String | No | Backend provider: "photoroom" (default: auto-select) |
Response headers
| Header | Description |
|---|---|
| Content-Type | image/png |
| X-Credits-Remaining | Remaining credits (or "unlimited" for subscribers) |
Changelog
API v1 initial release
Launched POST /api/v1/remove-background endpoint with Bearer token authentication, multipart file upload, and credit-based billing.
X-Credits-Remaining header
Added X-Credits-Remaining response header to track credit usage per request.
PhotoRoom provider support
Added optional provider=photoroom parameter for HD background removal.