About this endpoint
What it does
Extracts a head/shoulders region from a portrait image and returns the result as a binary file with transparency. The request uploads one image file and can optionally adjust the padding used around the extracted region.
Query Parameter(s)
| Attribute | Type | Description |
|---|---|---|
| padding | Number | Controls the padding around the extracted head/shoulders region. Minimum 0.1, maximum 0.9, default 0.42. |
Request Body
| Parameter | Type | Description |
|---|---|---|
| file | Binary | Portrait image file. Binary upload. Maximum size: 20 MB. |
Response
Returns a binary file containing the extracted head/shoulders region with transparency.



