About this endpoint
What it does
Smooths and sharpens a portrait photo. Send a portrait image file in the request body and optional query parameters to control the sharpening and smoothing strength; the response is a binary file.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| sharpen | Number | No | Sharpening amount. Minimum 0, maximum 1, default 0.12. |
| strength | Number | No | Smoothing strength. Minimum 0, maximum 1, default 0.32. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Portrait image file. Binary upload. Maximum size: 20 MB. |
Response
Returns a binary file. The success response is a single binary payload, not a JSON object.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary | String | Yes | The processed portrait image returned as binary data. |