About this endpoint
What it does
Applies portrait beauty enhancement to an uploaded portrait image. The request sends a binary image file and optional tuning parameters, and the endpoint returns a binary file as the enhanced result.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| contrast | Number | No | Controls contrast. Default: 1.04. Allowed range: 0.8 to 1.4. |
| smoothing | Number | No | Controls smoothing. Default: 0.36. Allowed range: 0 to 1. |
| brightness | Number | No | Controls brightness. Default: 1.03. Allowed range: 0.8 to 1.3. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Portrait image file. Binary upload. Max size: 20 MB. |
Response
Returns a binary file (string with binary format) containing the enhanced portrait image.