About this endpoint
What it does
Extracts a heuristic hair region from a portrait image and returns the resulting image as binary output with transparency.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| sensitivity | Number | No | Controls how aggressively the hair region is extracted. Minimum 0.1, maximum 1, default 0.55. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Portrait image. Binary upload. Maximum size: 20 MB. |
Response
Returns a binary file response. The output schema is a single binary string, so the success payload is the extracted image data rather than a JSON object.