Request
- URL:
https://www.ailabapi.com/api/portrait/effects/face-beauty - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEGJPGPNGBMP - Image size: No more than 3 MB.
- Image resolution: Larger than 10x10px, smaller than 2000x2000px.
- Image quality recommendation: Suitable for portrait images of most skin types, with average results for images containing scenes with more severe discoloration, acne, or low exposure.
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 | ||
sharp | YES | float | [0, 1.0] | Sharpness level. A higher value indicates a greater degree of sharpness. |
smooth | YES | float | [0, 1.0] | Smoothness level. A higher value results in a smoother appearance. |
white | YES | float | [0, 1.0] | Whitening level. A higher value leads to lighter skin. |
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
The degree of sharpening (sharpness). shu zhi The higher the degree of sharpening. The higher the degree of sharpening.
Smoothness. The higher the value, the higher the degree of smoothness.
Whitening degree. The higher the value, the higher the degree of whitening.
Response
Success
The response is of type object.

