People Background Removal API

Cut people out of portraits, group photos and model shots in one API call. $15 per 1,000 photos, pay as you go, $5 free to start.

 About

Send a photo of people, as a file or a link, and get it back with the background removed: on transparency, as a black-and-white mask, or on a new color or background image. The response also gives the person's bounding box.

Remove background feature

Transparent PNG or mask

Get a PNG of the person on a transparent background, with the edge pixels kept semi-transparent, or a grayscale mask to use in your own editor or pipeline.

People segmentation feature

New background in the same call

Fill the background with any color, or send a background image: the person is placed on it, centered, and the result keeps the size of your original photo.

Demo

Try the People Background Removal API without signing up: pick a sample photo or upload your own, then drag the slider to compare.

People background removal demo photo 1 People background removal demo photo 2 People background removal demo photo 3
People background removal demo photo 1, background removed
People background removal demo photo 1
People background removal demo photo 2
People background removal demo photo 3

Ready to try the API?

First, register on the API4AI portal and get your API key: no credit card, and $5 of free credit to start.

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/people/results" \
  -H "X-API-KEY: $YOUR_API_KEY" \
  -F "url=https://static.api4.ai/samples/img-bg-removal-people-2.jpg"
Or try a web sample right in the JSFiddle code playground
Explore more code examples for various programming languages:

 Benefits

A production API for photos of people: one HTTPS call in, the result back as JSON, 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 photo with the curl line above.

REST
API

Works from any language that can send an HTTP request, with code examples on GitLab.

People background removal: built for photos of people

Pay as
you go

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

Built for
people

Made for photos where the subject is a person: portraits, group photos, team headshots and model shots.

Use cases

Who uses it: photo and profile apps, online fashion stores, and teams that need every portrait on the same background.

Photo and profile apps
Give your users one-tap cut-outs for avatars, stickers, collages and new backgrounds.
Team and studio portraits
Put every headshot on the same color or backdrop for staff pages, badges and event photos, without editing each one by hand.
Fashion e-commerce
Cut out the models wearing your products and place them on your store's own background before the listing goes live.

FAQ

 Get started

Discover more APIs from api4ai