Universal Background Removal API uses advanced AI to intelligently detect and isolate subjects, automatically erasing backgrounds. Suitable for people, animals, food, and objects in various scenes.
Documentation Index
Fetch the complete documentation index at: https://ailabtools.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
https://www.ailabapi.com/api/cutout/general/universal-background-removalPOSTmultipart/form-dataJPEG JPG BMP WEBP PNG(8-bit, 16-bit, 64-bit PNG not supported)| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
| Field | Required | Type | Scope | Description |
|---|---|---|---|---|
image | YES | file | ||
return_form | NO | string | mask, whiteBK, crop | Specifies the form of the returned image. If not set, the four-channel PNG map is returned. mask`: Returns a single channel mask.` whiteBK: Return to white background image. “crop: Returns the four-channel PNG image after cropping (cropping out the blank areas around the edges). |
| Field | Type | Description |
|---|---|---|
data | object | The content of the result data returned. |
+image_url | string | Resulting image URL address. |
API Key for authentication
Specifies the form of the returned image.
mask: Returns a single channel mask.whiteBK: Return to white background image.crop: Returns the four-channel PNG image after cropping (cropping out the blank areas around the edges).Success
The response is of type object.