About this endpoint
What it does
Detects faces in an uploaded image and returns age range and gender information for each detected face, along with a face count. The request sends a binary image file, and the response comes back as a JSON object containing detection results.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Image file (max 20 MB), binary format. |
Response
Returns a JSON object with results and face_count fields. results is an array of face-detection objects, and face_count is an integer.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| results | Object Array | No | Array of detected face objects. Each object may include: age (string, age range label such as 25-32), bbox (object, nullable; contains h, w, x, y integers), gender (string ENUM: male, female), age_score (number), face_index (integer), and gender_score (number). |
| face_count | Integer | No | Number of faces detected. |