Request
- URL:
https://www.ailabapi.com/api/portrait/effects/emotion-editor - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEGJPGPNG - Image size: No more than 5 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 | Scope | Description |
|---|---|---|---|---|
image_target | YES | file | ||
service_choice | YES | integer | 10, 11, 12, 13, 14, 15, 16, 100 | Expression type. 10`: Dimple Smile.` 11: Pear Dimple Smile. 12`: Big Grin.` 13: Standard Grin. 14`: Cool Pose.` 15: Sad. 16`: Forced Smile.` 100: Opening eyes. |
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 | string | The result image, returning the Base64 encoding of the image. |
Response Example
Sample Code
Authorizations
API Key for authentication
Body
multipart/form-data
Response
200 - application/json
Success
The response is of type object.

