Photography — entry 019 of 25

Remove.bg

Verified Jul 2026

Remove.bg's REST API strips the background from a photo in a single POST call, returning either the cut-out image directly or, on request, a JSON response carrying a base64-encoded result plus foreground metadata. Every request needs an API key sent via the X-Api-Key or Authorization header — a live call without one returns a 403 auth_failed error. New accounts get one free credit and unlimited low-resolution previews at no cost; a full-resolution removal then costs 1 credit (0.25 credits through the official apps), bought as one-off packs or a recurring subscription.

background-removalimage-editingai-image-processingcredit-based
AuthenticationAPI KeySign up with the provider to obtain credentials.
HTTPSSupportedTraffic is encrypted in transit.
CORSEnabledCallable directly from browser JavaScript.
PricingFreemiumA usable free tier exists, with paid plans for more volume.
FormatsBinary, JSONResponses can be requested as Binary or JSON.

GreatAPIs Score

Score87out of 100
Authentication15/25API key required
Pricing17/20Freemium tier available
Docs20/20Machine-readable spec file bundled
Formats15/15Supports 2 response formats
Freshness20/20Verified within 6 months

Embed this badge

Scored 87 on greatapis.com
<a href="https://greatapis.com/api/remove-bg/"><img src="https://greatapis.com/badge/remove-bg.svg" alt="Scored 87 on greatapis.com"></a>

Auth quickstart

  1. Sign up with the provider to get an API key.
  2. Send it on every request as a headerX-API-Key: <key>
Stored keyNo key stored

Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.

Endpoints

Servers
https://api.remove.bg/v1.0
Auth
APIKeyHeader
Background Removal1
POST/removebgRemove the background of an image
Request body

application/jsonRemoveBgJson (required)

Responses
StatusDescriptionSchema
200Image background removedRemoveBgJsonResponse
400Error: Invalid parameters or input file unprocessable (no credits charged)
402Error: Insufficient credits (no credits charged)
403Error: Authentication failed (no credits charged)AuthFailed
429Error: Rate limit exceeded (no credits charged)RateLimit
Fetch account info1
GET/accountFetch credit balance and free API calls.
Responses
StatusDescriptionSchema
200
403Error: Authentication failedAuthFailed
429Error: Rate limit exceededRateLimit
Improvement Program1
POST/improve
Request body

application/jsonImprovementProgramJson (required)

Responses
StatusDescriptionSchema
200Image submittedImprovementProgramJsonResponse
400Error: Invalid parameters or input file unprocessable
403Error: Authentication failedAuthFailed
429Error: Rate limit exceededRateLimit

Try it

Developer reference

Base URLhttps://api.remove.bg/v1.0
Rate limit

Resolution-scaled: up to 500 images/minute at 1 megapixel, scaling down as input resolution rises (roughly 250/minute at 2MP, 50/minute at 10MP, 10/minute at 50MP). Every response carries X-RateLimit-Limit (total megapixel-image budget), X-RateLimit-Remaining, and X-RateLimit-Reset (Unix timestamp) headers; exceeding the limit returns HTTP 429 (no credit charged) plus a Retry-After header with seconds until reset.

Key endpoints
  • POST/removebg
  • GET/account