Request
- URL:
https://www.ailabapi.com/api/portrait/effects/smart-skin - 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: Photos containing 1 to 10 portraits with a clear skin share.
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 | |||
retouch_degree | NO | float | [0, 1.5] | 1.0 | Dermabrasion intensity. The higher the value, the less visible the skin texture. |
whitening_degree | NO | float | [0, 1.5] | 1.0 | Whitening strength. The higher the value, the whiter the 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
multipart/form-data
Response
200 - application/json
Success
The response is of type object.

