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

1

Get your API key

Sign up and generate an API key from your settings. Your first credits are on us.

2

Make your first API call

Use the sample code below to send your first request in under a minute.

3

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.png

Output formats

The API returns results in PNG format with alpha channel transparency.

FormatResolutionTransparencyNotes
PNGUp 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.

X-RateLimit-Limit: 5X-RateLimit-Remaining

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: 99

Error codes

StatusMeaning
200Success — returns the processed image
400Bad request — no file provided or invalid input
401Unauthorized — missing or invalid API key
402Payment required — insufficient credits
429Too many requests — rate limit exceeded (demo endpoint only)
500Server error — please try again later

API reference

Endpoint

POSThttps://erasebgpro.com/api/v1/remove-background

Authentication

Include your API key as a Bearer token in the Authorization header.

Authorization: Bearer ebp_YOUR_KEY

Parameters

ParameterTypeRequiredDescription
fileFile (multipart)YesImage file to process (JPEG, PNG, WebP)
providerStringNoBackend provider: "photoroom" (default: auto-select)

Response headers

HeaderDescription
Content-Typeimage/png
X-Credits-RemainingRemaining credits (or "unlimited" for subscribers)

Changelog

2025-06

API v1 initial release

Launched POST /api/v1/remove-background endpoint with Bearer token authentication, multipart file upload, and credit-based billing.

2025-06

X-Credits-Remaining header

Added X-Credits-Remaining response header to track credit usage per request.

2025-06

PhotoRoom provider support

Added optional provider=photoroom parameter for HD background removal.