Background Removal API

Remove the background from any photo with one API call and get a transparent PNG back. Pay as you go: $5 per 1,000 images, $5 free to start.

 About

Send an image or an image URL over HTTPS and get the cut-out back in seconds, on a transparent background or as a mask. It fits into any backend, store or photo app with a few lines of code.

Remove background feature

Remove Background

The model finds the main subject and cuts it out along its edges: products, furniture, pets, objects held in a hand. It works on studio shots and on everyday photos taken against a busy background.

Change background feature

Change Background

Use the transparent PNG as it is, or put the subject on white, a brand color or your own backdrop in your app, so every picture in a catalog looks the same.

Automate Processes

Run it on every new upload: seller photos, product imports, user avatars. One call per image, no GPU to manage and no batch to wait for.

Demo

Try this solution out right now! Select one of the pictures below or upload your own image.

Remove background demo picture 1 Remove background demo picture 2 Remove background demo picture 3
Remove background demo picture processed 1
Remove background demo picture 1
Remove background demo picture 2
Remove background demo picture 3

Ready to try the API?

First, register on the API4AI portal and obtain an API key (no credit card required).

Copy and paste this code snippet into your command line terminal to try the API on your computer
$
curl -X "POST" \
  "https://api4ai.cloud/img-bg-removal/v1/results" \
  -H "X-API-KEY: $YOUR_API_KEY" \
  -F "url=https://static.api4.ai/samples/img-bg-removal-3.jpg"
Or try a web sample right in the JSFiddle code playground
Explore more code examples for various programming languages:

Moving from remove.bg? Its self-serve API closes Dec 1. Change the URL and the key, keep your code: $0.005 an image, $0.015 for people, $0.03 for cars. How to switch →

 Benefits

A ready production API: one HTTPS call, results in seconds, and commercial use of the results included (Terms of Use).

Off-the-shelf
solution

Nothing to train or host: get a key on the portal and send your first image in minutes.

Cloud
service

Runs in the cloud and scales with your volume, from a few images a day to tens of thousands a month.

Icon for API benefit item

Pay as
you go

No subscription: pay only for the images you process, and your balance never expires.

Robust
algorithm

Handles uneven light, rotated shots and cluttered backgrounds, so everyday photos work, not only studio ones.

Use cases

Who uses it: online stores and marketplaces cleaning up product and seller photos, photo and design apps, and teams preparing images for machine learning.

Photo and design apps
Give your users one-tap cut-outs for collages, stickers, profile pictures and edits.
Online stores and marketplaces
Put every product on the same clean background automatically, before the listing goes live.
Machine learning
Remove the background before training or inference, so your model sees the object and not the scene behind it.

FAQ

Customization

Unlock tailored solutions with api4ai's Background Removal API, designed to align with your specific needs. Our process initiates with an in-depth initial consultation to grasp your unique requirements, leading to the crafting of a bespoke proposal for you.

We offer transparent and fair pricing, typically involving a one-time setup fee that reflects the intricacy of your customized requirements, alongside a personalized subscription cost for our Background Removal API.

 Get started

Discover more APIs from api4ai