Identity verification is only as strong as its weakest point. You can have the best face-matching algorithm in the world, but if someone holds up a photo of another person's face to the camera, none of that matters. Liveness detection closes that gap by determining whether a face is physically present during capture, or whether it is a spoofing attempt.
Sightengine's Face Liveness Detection API uses passive liveness detection: it analyzes a single photo, with no user interaction required. No head turns, no blinks, no eye tracking. The user simply presents their face to the camera, and the API determines whether the face is live or spoofed.
The API identifies a wide range of presentation attacks:
Digital reproductions on phones, tablets, or monitors. This includes cases where the edge of the screen or monitor is not visible.
Physical prints, photos, magazine covers, posters, etc.
Digital overlays or elements inserted after the image was captured.
Physical masks that are flat and two-dimensional.
3D attempts using materials such as silcone, paper, or cardboard.
Physical cutouts of a full body, of an upper body, or of a face.
Physical cutouts of a face.
AI-generated face swaps or visual manipulations.
Entirely synthetic faces generated by AI models.
This breadth of coverage matters because attackers do not limit themselves to one technique. A system that catches screen replays but misses printed photos leaves a door open.
The workflow is straightforward:
Because the detection is passive, there is no friction for the end user. No multi-step challenges, no waiting for prompts. This makes it suitable for high-volume onboarding flows where drop-off rates matter.
Before performing liveness analysis, the API validates that the image meets the requirements for a reliable assessment:
Images that do not meet these criteria are rejected with a specific reason, so your application can prompt the user to retake the photo rather than returning an unreliable result.
Liveness detection is a critical building block for any workflow that relies on verifying a person's identity through their face:
Face Liveness Detection is available now through the Sightengine API. It works with the same API keys and endpoint you already use for other Sightengine models, so integration is straightforward.
Learn how Sightengine performed in an independent AI-media detection benchmark, outperforming competitors with advanced methodologies.
This is a guide to detecting, moderating and handling sexual abuse and unsolicited sex in texts and images.