AILabTools API - Image Erasure - API
This API has been discontinued. Please refer to the latest API documentation.Request
- URL:
https://www.ailabapi.com/api/image/editing/image-erase - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEGJPGPNGBMPWEBP - Image size: No more than 3 MB.
- Image resolution: Less than 4096x4096px.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type | Description |
|---|---|---|---|
image | YES | file | The image to be erased. |
user_mask | YES | file | Mask image. |
Response
Response Field Handling Flow-
Handle
Public Response FieldsParse and validate thePublic Response Fields, checking the status code or response message to ensure the request is successful and error-free. -
Handle
Business Response FieldsIf thePublic Response Fieldsare valid and error-free, proceed with processing the business logic in theBusiness Response Fields.
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 | The URL of the image after erasing. |
Response Example
Sample Code
Authorizations
API Key for authentication
Response
200 - application/json
Success
The response is of type object.

