#
Face Verification API
#
Overview
The Face Verification API provides face detection, embedding extraction, and face comparison services for identity verification and authentication use cases.
The Face Verification API enables you to:
- Detect faces in images with bounding boxes and confidence scores
- Extract face embeddings from images for identity verification
- Compare face embeddings to verify if two faces belong to the same person
- Process multiple faces in a single image
- Utilize high-accuracy AI models for face verification
#
Base URLs
#
API Endpoints
#
Detect Faces
Returns a list of detected faces on the provided image with their respective bounding boxes.
Endpoint: POST /v1/face-verification/detect-faces
Authentication: API Key or Bearer Token
Request Body:
{
"image": {
"bytes": "base64-encoded-image-string",
"url": null
},
"maxFaceCount": 10
}
Request Parameters:
Response Example:
{
"faces": [
{
"confidence": 0.9876,
"boundingBox": {
"x": 120,
"y": 80,
"width": 200,
"height": 250
}
}
],
"unprocessedFaceCount": 0
}
Response Fields:
Example Request:
curl -X POST "https://face-verification-api-eu.realeyes.ai/v1/face-verification/detect-faces" \
-H "Authorization: ApiKey API-KEY-FROM-DEV-CONSOLE" \
-H "Content-Type: application/json" \
-d '{
"image": {
"bytes": "/9j/4AAQSkZJRgABAQEAYABgAAD..."
},
"maxFaceCount": 10
}'
Response Codes:
200- Returns the detected faces results
#
Get Face Embeddings
Returns a list of face embeddings for all the detected faces in the provided image.
Endpoint: POST /v1/face-verification/get-face-embeddings
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.9876,
"boundingBox": {
"x": 120,
"y": 80,
"width": 200,
"height": 250
}
},
"embedding": [0.123, -0.456, 0.789]
}
],
"unprocessedFaceCount": 0
}
Response Fields:
Example Request:
curl -X POST "https://face-verification-api-eu.realeyes.ai/v1/face-verification/get-face-embeddings" \
-H "Authorization: ApiKey API-KEY-FROM-DEV-CONSOLE" \
-H "Content-Type: application/json" \
-d '{
"image": {
"bytes": "/9j/4AAQSkZJRgABAQEAYABgAAD..."
},
"maxFaceCount": 1
}'
Response Codes:
200- Returns the face embeddings results
#
Compare Face Embeddings
Returns the similarity between two face embeddings as an integer between 0 and 100.
Endpoint: POST /v1/face-verification/compare-face-embeddings
Authentication: API Key or Bearer Token
Request Body:
{
"embedding1": [0.123, -0.456, 0.789],
"embedding2": [0.125, -0.450, 0.792]
}
Request Parameters:
Response Example:
{
"similarity": 85
}
Response Fields:
Example Request:
curl -X POST "https://face-verification-api-eu.realeyes.ai/v1/face-verification/compare-face-embeddings" \
-H "Authorization: ApiKey API-KEY-FROM-DEV-CONSOLE" \
-H "Content-Type: application/json" \
-d '{
"embedding1": [0.123, -0.456, 0.789],
"embedding2": [0.125, -0.450, 0.792]
}'
Response Codes:
200- Returns the similarity result
#
Health Check
Check the API health status.
Endpoint: GET /v1/healthz
Authentication: None required
Response Example:
2026-02-16T10:30:45Z
Response Fields:
Example Request:
curl -X GET "https://face-verification-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://face-verification-api-eu.realeyes.ai/swagger
- US: https://face-verification-api-us.realeyes.ai/swagger
Last updated: 2026-02-16