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

* Any image that has a foreground (tested with persons, products, animals, cars, etc.)

Easy to integrate

Our API is a simple HTTP interface with various options:

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

Upcoming API Change

Credit balances can now have fractional digits: Starting Jun 11th, 2019 the X-Credits-Charged response header and the account balance returned by the /account endpoint will potentially be float numbers (instead of integers).

Most applications should not be affected by this change. If your client application relies on the response value type of these fields however, please make sure to adapt your code accordingly. If in doubt, we're happy to help!

API Changelog

Most recent API updates:

  • 2019-09-16: Added enterprise credit balance field to account endpoint.
  • 2019-08-01: Added add_shadow option for car images.
  • 2019-06-26: Added crop_margin, scale and position parameters.
  • 2019-06-19: Added support for animals and other foregrounds (response header X-Type: animal and X-Type: other)
  • 2019-06-03: Added parameters bg_image_url, bg_image_file (add a background image), crop (crop off empty regions) and roi (specify a region of interest).
  • 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

Thanks for your feedback!

Want to help us improve? (optional)

Choose if you want us to use this image for quality improvements.
Choose if you do NOT want us to use this image for quality improvements.

Your image will be used for future improvements of

Your image will NOT be used for future improvements of