Request
- URL:
https://www.ailabapi.com/api/portrait/effects/smart-face-slimming - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEGJPGPNG - Image size: No more than 6 MB.
- Image resolution: Larger than 128x128px, smaller than 5000x5000px.
- Image content: Contains at least 1 face and no more than 3 faces with a face share of more than 64x64px.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
image | YES | file | |||
slim_degree | NO | float | [0, 2.0] | 1.0 | Standard strength. The higher the value, the more pronounced the face slimming effect. |
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.

