visual-recognition, artificial-intelligence

πŸ‘€Human Background Removal

Effortlessly remove backgrounds from human portraits, enabling clean and professional images for profiles, resumes, and creative projects.

BASIC
PRO
ULTRA
MEGA
⚠️

You get 10 API units just by validating your email.
No credit card required.

  • API Units: 10/month
  • API Limit Type: HARD
  • Total Endpoints: 1
Effortlessly remove backgrounds from human portraits, enabling clean and professional images for profiles, resumes, and creative projects.
6 min read

Table of Contents

  • πŸ“„πŸ‘€ Human Background Removal API
  • ✨Features
  • πŸ“ŽUse-Cases
  • πŸ“˜API Documentation
  • πŸ”ŒEndpoint
  • πŸ“¦Request
  • πŸ“¬Response:
  • ⚠️Status Codes & Error Handling
  • πŸ“ŽSEO Keywords

πŸ‘€ Human Background Removal API

The Human Background Removal API is designed to isolate people in images by automatically removing the background. Whether it's for profile photos, marketing creatives, ID documentation, or social content, this API helps developers programmatically separate human subjects from any background and return a clean result in multiple formats.

It supports JPEG, JPG, BMP, WEBP, and PNG image types, offering flexibility in input and output formats.


Features

  • Automatic Human Segmentation
    Detects and removes backgrounds for images containing people using advanced AI segmentation.

  • Multiple Output Options

    • Transparent PNG (default 4-channel).
    • White background (whiteBK).
    • Single-channel binary mask (mask).
    • Cropped PNG removing empty borders (crop).
  • Supports Common Image Formats
    Accepts JPEG, JPG, BMP, WEBP, and 8-bit PNG images (does not support 16-bit or 64-bit PNG).

  • Optimized for Web & Mobile
    Lightweight response payloads and rapid processing for integration into online and mobile applications.


Use-Cases

  • Profile Picture Cleanup
    Remove noisy or cluttered backgrounds from user-uploaded headshots or portraits.

  • Virtual Backgrounds
    Enable custom backdrops for virtual try-on apps or video conferencing tools.

  • E-Commerce Models
    Cleanly isolate human figures from studio shots for use in catalogs or lookbooks.

  • ID or Passport Photo Automation
    Instantly convert user-submitted photos into white-background images suitable for documentation.


API Documentation

Endpoint

curl -X 'POST' \
  'https://prod.api.market/api/v1/ailabtools/human-background-removal/cutout/portrait/body' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: <YOUR API MARKET KEY>' \
  -H 'Content-Type: multipart/form-data' \
  -F 'image=@Markus-Beck-portrait-less-than-1MB-scaled-qnfhmm6p6lo14h0jjs50p6bg31bc1nv9i7rk0hq8a8.jpg;type=image/jpeg' \
  -F 'return_form=whiteBK'

Request

Image Requirements

PropertyValue
FormatsJPG, JPEG, BMP, WEBP, PNG (8-bit only)
Max Size3 MB
ResolutionUp to 2000 Γ— 2000 pixels

Request Body Parameters

FieldRequiredTypeValuesDescription
imageYesfileβ€”Image containing one or more humans.
return_formNostringmask, whiteBK, cropSpecifies the output format:
- mask: binary mask only
- whiteBK: person on white background
- crop: cropped transparent PNG
Default: full transparent PNG

Response:

{
  "data": {
    "image_url": "https://ai-result-001.ailabtools.com/cutout/body/2025-04-08/171445-9bc2820b-b2fc-663d-f87c-7ca0efa17e34-1744103685.jpg"
  },
  "error_code": 0,
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "log_id": "3B83EAFD-6219-592A-B96C-BE591203DD53",
  "request_id": "3B83EAFD-6219-592A-B96C-BE591203DD53"
}

Status Codes & Error Handling

FieldDescription
error_code0 indicates success; non-zero indicates an error (e.g. unsupported format, invalid resolution, file too large).
error_msgHuman-readable explanation of any issue.
status_codeStandard HTTP status code for network-level status.

SEO Keywords

human background removal API, remove background from person, automatic person cutout, portrait background removal, transparent background API, isolate person in image, profile picture API, human segmentation tool, person background eraser

Skip to API Playground

API Playground (Try the APIs)

API.market Guarantee

Only pay for API calls with OK(2XX) status code.

Cancel Anytime

Mange all your API subscriptions.

24/7 Customer Support

Just reach our using the chat window on the right corner.

Refunds policy

30 days return for unused API quota for any reason

β˜…N/A Β· 0 ReviewsBack to top

Write a Review for this API Product

πŸ‘€Human Background Removal# πŸ‘€ Human Background Removal API The Human Background Removal API is designed to isolate people in images by automatically removing the background. Whether it's for profile photos, marketing creatives, ID documentation, or social content, this API helps developers programmatically separate human subjects from any background and return a clean result in multiple formats. It supports JPEG, JPG, BMP, WEBP, and PNG image types, offering flexibility in input and output formats. --- ## Features - **Automatic Human Segmentation** Detects and removes backgrounds for images containing people using advanced AI segmentation. - **Multiple Output Options** - Transparent PNG (default 4-channel). - White background (`whiteBK`). - Single-channel binary mask (`mask`). - Cropped PNG removing empty borders (`crop`). - **Supports Common Image Formats** Accepts JPEG, JPG, BMP, WEBP, and 8-bit PNG images (does not support 16-bit or 64-bit PNG). - **Optimized for Web & Mobile** Lightweight response payloads and rapid processing for integration into online and mobile applications. --- ## Use-Cases - **Profile Picture Cleanup** Remove noisy or cluttered backgrounds from user-uploaded headshots or portraits. - **Virtual Backgrounds** Enable custom backdrops for virtual try-on apps or video conferencing tools. - **E-Commerce Models** Cleanly isolate human figures from studio shots for use in catalogs or lookbooks. - **ID or Passport Photo Automation** Instantly convert user-submitted photos into white-background images suitable for documentation. --- ## API Documentation ### Endpoint ```bash curl -X 'POST' \ 'https://prod.api.market/api/v1/ailabtools/human-background-removal/cutout/portrait/body' \ -H 'accept: application/json' \ -H 'x-magicapi-key: <YOUR API MARKET KEY>' \ -H 'Content-Type: multipart/form-data' \ -F 'image=@Markus-Beck-portrait-less-than-1MB-scaled-qnfhmm6p6lo14h0jjs50p6bg31bc1nv9i7rk0hq8a8.jpg;type=image/jpeg' \ -F 'return_form=whiteBK' ``` ### Request #### Image Requirements | Property | Value | |----------------|--------------------------------| | **Formats** | JPG, JPEG, BMP, WEBP, PNG (8-bit only) | | **Max Size** | 3 MB | | **Resolution** | Up to 2000 Γ— 2000 pixels | --- #### Request Body Parameters | Field | Required | Type | Values | Description | |---------------|:--------:|--------|----------------------------|-------------| | `image` | Yes | file | β€” | Image containing one or more humans. | | `return_form` | No | string | `mask`, `whiteBK`, `crop` | Specifies the output format:<br> - `mask`: binary mask only<br> - `whiteBK`: person on white background<br> - `crop`: cropped transparent PNG<br> Default: full transparent PNG | ### Response: ```json { "data": { "image_url": "https://ai-result-001.ailabtools.com/cutout/body/2025-04-08/171445-9bc2820b-b2fc-663d-f87c-7ca0efa17e34-1744103685.jpg" }, "error_code": 0, "error_detail": { "status_code": 200, "code": "", "code_message": "", "message": "" }, "log_id": "3B83EAFD-6219-592A-B96C-BE591203DD53", "request_id": "3B83EAFD-6219-592A-B96C-BE591203DD53" } ``` ## Status Codes & Error Handling | Field | Description | |---------------|-----------------------------------------------------------------------------------------------| | `error_code` | `0` indicates success; non-zero indicates an error (e.g. unsupported format, invalid resolution, file too large). | | `error_msg` | Human-readable explanation of any issue. | | `status_code` | Standard HTTP status code for network-level status. | ## SEO Keywords human background removal API, remove background from person, automatic person cutout, portrait background removal, transparent background API, isolate person in image, profile picture API, human segmentation tool, person background eraser
API provider offers quality service.

Recently Visited. APIs

  • πŸ‘€Human Background Removal

    By ailabtools

    Effortlessly remove backgrounds from human portraits, enabling clean and professional images for profiles, resumes, and ...

    visual-recognitionartificial-intelligence
    /ailabtools/human-background-removal
    0 (0)