Slazzer logo
Slazzer App

All-in-one AI photo editor

Get App

AI upscale your photos, instantly. Try Now

AI enhance your photos, instantly. Try Now

AI replace your sky, instantly. Try Now

AI stunning vehicle visuals, instantly. Try Now

Download Mobile App Now. Androidios

Background Removal API

  • remove background
  • crop
  • background color
Remove image background with just a single API call

Our AI will remove the background from any image that has a clear foreground and background. (tested with human, cars, animals, & products )

Authorization

  • API-KEY :
    string
  • Your API key :
    xxxx xxxx xxxx xxxx
  • Get API Key

Try it out

Send a real request to the Background Removal API from this page. Click Authorize, paste your API key, open the endpoint, click Try it out, choose an image and click Execute. Each successful request uses credits from your account.

API Reference

Head
  • Server URL:
    https://api.slazzer.com/v2.0
  • Request Body:
    multipart/form-data
  • Method:
    POST
  • API:
    /remove_image_background

Loading API explorer…

Response

Success

Background successfully removed!
Your image has been processed, and the background is now removed. You can now download or use it as you wish.

Binary image data

Error

Background removed failed!
The request could not be processed due to invalid parameters or an unsupported image format. Ensure the input image meets the required format and size specifications, then try again. (No credits were deducted for this request.)

Example :
{
    "error": "Source image file not found"
}

Error

Background removed failed!
API-KEY missing or invalid API-KEY (No credit deducted)

Example :
{
    "error": "invalid api key"
}

Error

Background removed failed!
No credits remaining (No credit deducted)

Example :
{
    "error": "No credits remaining"
}

Error

Background removed failed!
Api rate limit crossed (No credit deducted)

Example :
{
    "error": "Api rate limit crossed"
}

Output Formats

Easily request any one of the 2 formats via our format parameter.
Format Resolution
png
  • Upto 10 MP , Ex - 3872 x 2592
jpg
  • Upto 25 MP , Ex - 6250 x 4000

*Please note that PNG images above 10 megapixels are not supported by default. If you do not require transparency we recommend using the JPG format.

API Rate Limit

You can instantly process upto 500 images per minute via the API, but depending on the input image megapixel resolution.
Input image Megapixels Rate Limit approx
625 x 400 1 MP 500 images per minute
1200 x 800 1 MP 500 images per minute
1600 x 1200 2 MP 250 images per minute
2500 x 1600 4 MP 125 images per minute
4000 x 2500 10 MP 50 images per minute
6250 x 4000 25 MP 20 images per minute

Error code 429 will return if api rate limit exceed & no credit will be charged.

Higher api rate limits are available for enterprise customers. Contact Us