Request
- URL:
https://www.ailabapi.com/api/cutout/general/food-background-removal - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEGJPGBMPPNG - Image size: No more than 4 MB.
- Image resolution: Larger than 40x40px, smaller than 1999x1999px.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type | Scope | Description |
|---|---|---|---|---|
image | YES | file | ||
return_form | NO | string | mask, whiteBK | 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. |
Response
Public Response Fields
Viewing Public Response Fields and Error CodesBusiness Response Fields
| Field | Type | Description |
|---|---|---|
data | object | The content of the result data returned. |
+image_url | string | Resulting image URL address. |
Response Example
Sample Code
Authorizations
API Key for authentication
Body
multipart/form-data
Response
200 - application/json
Success
The response is of type object.

