Background Removal API

Remove the background
of any image*
with 1 API call

$ curl -H 'X-API-Key: YOUR_API_KEY'                      \
       -F '[email protected]/path/to/file.jpg'                \
       -f -o no-bg.png

$ curl -H 'X-API-Key: YOUR_API_KEY' \
  -F '[email protected]/path/to/file.jpg' \
  -f \
  -o no-bg.png

Get API Key

* Currently supported: Photos of persons, products and cars

Easy to integrate

Our API is a simple HTTP interface with various options:

  • Source images: Direct uploads or URL reference
  • Result images: Image file or JSON-encoded data
  • Output resolution: up to 10 megapixels
  • Requires images of persons, products or cars

Get started

  1. Get an API Key. Your first 50 API calls per month are on us (see Pricing).
  2. Use the following code samples to get started quickly
  3. Review the reference docs to adjust any parameters

Sample Code

Remove background from

Libraries and tools

API Reference

API Changelog

Most recent API updates:

  • 2019-05-13: Added car support (type=car parameter and X-Type: car response header)
  • 2019-05-02: Renamed size "regular" to "small". Clients should use the new value, but the old one will continue to work (deprecated)
  • 2019-05-01: Added endpoint GET /account for credit balance lookups
  • 2019-04-15: Added parameter format to set the result image format
  • 2019-04-15: Added parameter bg_color to add a background color to the result image