Skip to content

Remove.bg API

by remove.bg

API keyHTTPSPhotography
Open documentation ↗

Overview

Image Background removal

Remove.bg is a photography API from remove.bg. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 3 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Category
Photography
Base URL
https://api.remove.bg/v1.0
Version
1.0.0
Endpoints
3
Spec updated
2023-03-06

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.remove.bg/v1.0/account" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.remove.bg/v1.0/account", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.remove.bg/v1.0/account",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/accountFetch credit balance and free API calls.
POST/improveSubmit an image to the remove.bg Improvement program
POST/removebgRemove the background of an image

Questions

Does the Remove.bg API need an API key?

Yes. The Remove.bg API uses API key authentication; the documentation explains how to get credentials.

Does the Remove.bg API support HTTPS?

Yes, the Remove.bg API is served over HTTPS.

How many endpoints does the Remove.bg API have?

Its OpenAPI description lists 3 endpoints in version 1.0.0. All of them are shown on this page.

What are alternatives to the Remove.bg API?

Other Photography APIs include Giphy, Getty Images, Unsplash, Imgur, shutterstock.

Compare alternatives →

Listed from public-apis (MIT), public-apis database (MIT), APIs.guru (CC0).