Request
- URL:
https://www.ailabapi.com/api/portrait/effects/enhance-face - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEGJPGPNGBMP - Image size: No more than 3 MB.
- Image resolution: Larger than 32x32px, smaller than 2048x2048px (longest side less than or equal to 2047px), with a face occupying no less than 64x64px.
- The input image needs to contain faces.
- The number of faces in the input image should not exceed 10, otherwise only the first 10 faces with the largest area are processed.
- The face in the input image should not have scratches, breaks, etc., and the algorithm does not support such repairs at this time.
- The quality of the faces in the input image should not be too sharp or too high in resolution, as this may lead to inverse quality degradation.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type |
|---|---|---|
image | YES | file |
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.

