Skip to content

Face Verification (1:1)

Compare two face images to determine if they belong to the same person. Use cases: ID verification, KYC, access control.

POST /api/v1/verify
ParameterTypeRequiredDescription
image1fileYesFirst face image
image2fileYesSecond face image
thresholdfloatNoMatch threshold (default: 0.4)
Terminal window
curl -X POST http://localhost:8000/api/v1/verify \
-F "image1=@id_card.jpg" \
-F "image2=@selfie.jpg" \
-F "threshold=0.4"
{
"is_match": true,
"similarity": 0.782,
"face1": { "detection": { ... }, "quality": { ... } },
"face2": { "detection": { ... }, "quality": { ... } }
}
ThresholdFARUse Case
0.3~1e-4Convenience (unlock phone)
0.4~1e-6Standard verification (KYC)
0.5~1e-8High security (border control)
0.6~1e-10Maximum security

Higher threshold = fewer false matches, but more false rejections.