#
Demographic Estimation API
#
Overview
The Demographic Estimation API provides AI-powered age estimation and gender detection services for faces in images.
The Demographic Estimation API enables you to:
- Estimate the age of detected faces with uncertainty scores
- Detect the gender of faces in images
- Process multiple faces in a single image
- Utilize high-accuracy AI models for demographic analysis
#
Base URLs
#
API Endpoints
#
Get Age
Estimates the age of faces detected in an image.
Endpoint: POST /v1/demographic-estimation/get-age
Authentication: API Key or Bearer Token
Request Body:
{
"image": {
"bytes": "base64-encoded-image-string",
"url": null
},
"maxFaceCount": 1
}
Request Parameters:
Response Example:
{
"faces": [
{
"face": {
"confidence": 0.9987,
"boundingBox": {
"x": 120,
"y": 80,
"width": 200,
"height": 250
}
},
"age": {
"prediction": 28.5,
"uncertainty": 0.45
}
}
],
"unprocessedFaceCount": 0
}
Response Fields:
Example Request:
curl -X POST "https://demographic-estimation-api-eu.realeyes.ai/v1/demographic-estimation/get-age" \
-H "Authorization: ApiKey API-KEY-FROM-DEV-CONSOLE" \
-H "Content-Type: application/json" \
-d '{
"image": {
"bytes": "/9j/4AAQSkZJRgABAQEAYABgAAD..."
},
"maxFaceCount": 5
}'
Response Codes:
200- Success400- Bad Request - Invalid image format, missing required fields, or invalid parameters401- Unauthorized - Missing or invalid authentication
#
Get Gender
Detects the gender of faces in an image.
Endpoint: POST /v1/demographic-estimation/get-gender
Authentication: API Key or Bearer Token
Request Body:
{
"image": {
"bytes": "base64-encoded-image-string",
"url": null
},
"maxFaceCount": 1
}
Request Parameters:
Response Example:
{
"faces": [
{
"face": {
"confidence": 0.9987,
"boundingBox": {
"x": 120,
"y": 80,
"width": 200,
"height": 250
}
},
"gender": "Male"
}
],
"unprocessedFaceCount": 0
}
Response Fields:
Example Request:
curl -X POST "https://demographic-estimation-api-eu.realeyes.ai/v1/demographic-estimation/get-gender" \
-H "Authorization: ApiKey API-KEY-FROM-DEV-CONSOLE" \
-H "Content-Type: application/json" \
-d '{
"image": {
"bytes": "/9j/4AAQSkZJRgABAQEAYABgAAD..."
},
"maxFaceCount": 5
}'
Response Codes:
200- Success400- Bad Request - Invalid image format, missing required fields, or invalid parameters401- Unauthorized - Missing or invalid authentication
#
Health Check
Check the API health status.
Endpoint: GET /v1/healthz
Authentication: None required
Response Example:
2026-02-16T13:45:30.1234567Z
Response Fields:
Example Request:
curl -X GET "https://demographic-estimation-api-eu.realeyes.ai/v1/healthz"
Response Codes:
200- API is healthy
#
Common Response Codes
#
Swagger Documentation
Interactive API documentation is available via Swagger UI:
- EU: https://demographic-estimation-api-eu.realeyes.ai/swagger
- US: https://demographic-estimation-api-us.realeyes.ai/swagger
Last updated: 2026-02-16