Background Remover API Documentation

Remove backgrounds from images using our simple API. The Background Remover separates the foreground from the background and returns your image with a transparent background instead.

Requirements #

Using Baseline Remover API #

Request #

Request Header parameters: #

The key should be prefixed by the string literal "Token", with whitespace separating the two strings. For example:

  Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b
Parameter Parameter Type Description
Authorization string API Key

Request Body parameters #

Parameter Description Required
image_file The Image File If present, other image source parameters must be empty
image_url A URL to an Image If present, other image source parameters must be empty

Response #

Successful responses look like this: #

Status Code: 200

  {
"content": "iVBORw0KGgoAAAANSUhEUgAABQAAA...", // Base64 coded binary image
}

Unsuccessful responses look like this: #

Status Code: 400

  {
"detail": "Image parameters missing, use either image_url or image_file",
}

During the Beta period, every user is limited to 100 requests per day to begin with.

Don’t wanna miss a thing?

Sign up for the Baseline Newsletter and get the latest updates from the Baseline Team.