curl --request POST \
--url https://api.deepface.dev/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"img1": "<string>",
"img2": "<string>"
}
'{
"verified": true,
"distance": 123,
"threshold": 123,
"model": "<string>",
"facial_areas": {},
"time": 123
}curl --request POST \
--url https://api.deepface.dev/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"img1": "<string>",
"img2": "<string>"
}
'{
"verified": true,
"distance": 123,
"threshold": 123,
"model": "<string>",
"facial_areas": {},
"time": 123
}Use your API key as a bearer token.
Optional UUID used for request tracing.
Base64 image payload or data URL.
Base64 image payload or data URL.
Approved model name from the current allowlist.
"Facenet"
Optional detector backend from the current allowlist. When the active detector misses a face, the service may retry configured fallback detectors before returning no_face_detected.
"opencv"
Optional DeepFace normalization mode.
cosine, euclidean, euclidean_l2 "cosine"