Background Removal API
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
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
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.
Ready to try the API?
First, register on the API4AI portal and obtain an API key (no credit card required).
$
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"
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.
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.
FAQ
-
Pay as you go: $5 per 1,000 images ($0.005 an image), with no subscription, and your balance never expires. New accounts get $5 free, enough for 1,000 images. Volume prices from about 15,000 images a month: contact us.
-
Yes. The results are yours to use in your own products, ads and listings (Terms of Use).
-
Yes. remove.bg's self-serve API closes Dec 1, 2026. Our compatible endpoint takes almost all of its parameters: new URL and key, same code. Prices per image: $0.005 general background removal, $0.015 with type=person, $0.03 with type=car. How to switch.
-
Yes. For portraits and group photos use the People Background Removal API; for vehicles, the Car Background Removal API adds shadows and license-plate blur.
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
Useful articles
Moving from the remove.bg API: Prices and Code
Remove Backgrounds from Seller Uploads Automatically: Where It Fits, What to Check
Background Removal at 500+ Images a Day: Where Automation Fits and Where People Still Matter
Scaling Product Catalog Onboarding with Automated Background Removal