Liveness Detection: Methods, Metrics, and Testing (2026)
Liveness detection decides whether a biometric sample comes from a live person present at capture. Passive liveness costs $0.10 per check at Didit, active $0.15, and a full KYC check is $0.33.

Contents
In this guide
Jump to the part you need.
Liveness detection fits any flow where a selfie decides something: onboarding, account recovery, a payout change, an age check. At Didit, Passive Liveness costs $0.10 per check, Active Liveness $0.15, and a full KYC check that bundles passive liveness with face match and device and IP analysis costs $0.33. The caveat: a liveness pass proves presence, not identity, and the method only holds when you test it against the attacks your own users meet.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Method and workflow value | What the user does | Documented security level | Published price |
|---|---|---|---|
Passive Liveness (PASSIVE) | Nothing beyond a normal selfie; a single frame is analysed | Standard | $0.10 per check |
3D Flash (FLASHING) | Nothing; a light pattern at over 30 frames per second builds a depth map | High | Active Liveness line, $0.15 per check |
3D Action and Flash (ACTIVE_3D) | A randomized action such as blinking or nodding, plus the light pattern | Highest | Active Liveness line, $0.15 per check |
Standalone passive check (POST /v3/passive-liveness/) | Nothing; you send an image you already captured | Standard | $0.10 per call |
One split matters before you read the rest. The three methods in the first three rows run inside a Didit workflow, driven by the face_liveness_method setting on a session that the user completes in the hosted flow or an SDK. Only passive liveness has a standalone server-to-server endpoint, for an image your own app already captured. If you need an active challenge, capture it through a session. The detail is in the liveness documentation.
Start free in the sandbox at https://business.didit.me/, with no sales call. The Free plan adds $10 of monthly credit for eligible organizations that sign up with an eligible work email on a company domain, and sandbox testing is free on every plan. Developers who want an AI assistant to drive the setup can connect Didit through https://didit.me/developers/mcp/. Published prices are on https://didit.me/pricing/. Technical limits and response fields are documented in the linked API references.
The outcome, and the method we recommend
A finished liveness setup gives you three things. First, a per-check result you can read in code: status, method, score and named warnings. Second, separate fields for capture quality and face match, so a blurry photo and a suspected attack never collapse into one failed state. Third, a written policy that maps each result to approve, retry, step up, review or decline, with a record of the threshold in force and the warning counts behind each decision. Keep the scope tight: a liveness result is presence evidence, not an identity decision, and the face match step is what compares the live face with a reference.
For low-risk consumer flows we recommend starting with Passive Liveness. It costs $0.10 per check, asks nothing beyond a normal selfie, and covers what most consumer flows actually see: printed photos, screen replays and masks. Treat that as a deployment recommendation, not a general default: the right method depends on your risk model and on the user experience you can afford. Move a segment to an active method when the action behind the check justifies the extra interaction: recovery on an existing account, a change of payout details, a high-value transfer, or a session where device and IP signals already look wrong.
Didit's liveness documentation states 99.9% accuracy with a false acceptance rate under 0.1%, and lists iBeta Level 1 and Level 2 PAD. Read that as a manufacturer claim about a defined configuration. Your own error rates depend on your cameras, compression, lighting and user population, which is why the testing section below matters more than the headline.
What the three capture methods do
Passive Liveness runs single-frame deep learning that looks for artefacts, texture patterns and other indicators that separate a real face from a spoof. Documented security level: standard. Documented fit: low-friction scenarios.
3D Flash projects a light pattern onto the face at over 30 frames per second and reads the reflections to build a depth map, which separates a three-dimensional face from a flat image. The user does nothing. Documented security level: high. Documented fit: financial services, account access, identity verification.
3D Action and Flash adds a randomized action prompt, such as blinking or nodding, then combines the behavioural response with the light-pattern depth analysis. Documented security level: the highest of the three. Documented fit: banking, healthcare, government applications.

Prerequisites
- A Didit organization and a sandbox application, created free at business.didit.me. Sandbox sessions are never billed.
- An API key sent in the
x-api-keyheader. The decision endpoint needs a key that holdsread:sessions. - A workflow with the liveness feature enabled, and its
workflow_id, which is a UUID. - For the standalone route, a face image in tiff, jpg, jpeg, png or webp, at most 5 MB, containing a single subject. PDFs are not accepted.
- A written policy: decline threshold, retry limit, and who reviews what.
How to run a liveness check, step by step
Configure the method in the workflow. In the Business Console, or with
POST /v3/workflows/, setface_liveness_methodto"PASSIVE","ACTIVE_3D"or"FLASHING". The workflow controls which method runs, so use separate workflows when different segments need different methods.Create a session. Call
POST /v3/session/withworkflow_id,vendor_dataandcallback. Send a stablevendor_datafor the person: it binds the session to that entity and is used in duplicate detection across sessions. If your application has allowed domains configured, the callback must sit on one of those origins, otherwise creation fails with a 400 oncallback. The response returnssession_idandsession_url. Full field list in the Create Session docs.Show the capture. Open
session.urlfor the user, or mount the Web or Mobile SDK. The hosted flow handles framing and guidance, and the same capture runs in sandbox as in production.

Fetch the decision. When the flow finishes, call the decision endpoint, or subscribe to the
session.status.updatedwebhook, which carries the same decision envelope:curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \ -H "x-api-key: <API_KEY>"Read
liveness_checks[]. There is one entry per liveness node in the workflow, each pinned bynode_id, withstatus,method,score,warnings[],face_qualityandface_luminance. Do not read the session status alone: a session can be declined for a document reason while liveness passed, or the reverse.Or check an existing selfie server to server. If your app already captured the image, the standalone endpoint is passive only and takes one image:
curl -X POST 'https://verification.didit.me/v3/passive-liveness/' \ -H 'x-api-key: YOUR_API_KEY' \ -F 'user_image=@./selfie.jpg' \ -F 'save_api_request=true' \ -F 'vendor_data=user-123'save_api_requestdefaults to true: the call is stored as an API session, the reference image and face crop are stored, and the detected face is enrolled in your face search index. Set it to false for a one-shot check where nothing is stored and no face is enrolled. Blocklist and duplicate screening run on every call either way.Turn the result into a policy, not a bare threshold. Map each warning code to an action, and record which threshold was in force. The default
face_liveness_score_decline_thresholdis 30. Treat any threshold change as something to evaluate rather than something to turn up: choose the candidate value, then compare measured APCER and BPCER at the old and the new setting on your own population and attack types before you ship it.
Expected output
The standalone endpoint returns request_id and a liveness object with status, method ("PASSIVE"), score, user_image (with entities and best_angle), warnings, face_quality and face_luminance. Inside a session the same fields appear in liveness_checks[], with node_id added. The score is 0 to 100, and face_quality and face_luminance are also 0 to 100 and nullable.
Status values, as documented:
"Not Started" | "In Progress" | "Approved" | "In Review" | "Declined" | "Abandoned" | "Kyc Expired"
Liveness warnings come from the LIVENESS feature: LOW_LIVENESS_SCORE, NO_FACE_DETECTED, LIVENESS_FACE_ATTACK, MULTIPLE_FACES_DETECTED, FACE_IN_BLOCKLIST, POSSIBLE_FACE_IN_BLOCKLIST, DUPLICATED_FACE and POSSIBLE_DUPLICATED_FACE. Severity is the part most integrations get wrong. A check is declined when an error severity warning fires, such as LIVENESS_FACE_ATTACK or a score at or below the decline threshold. MULTIPLE_FACES_DETECTED is a warning and does not decline. DUPLICATED_FACE and POSSIBLE_DUPLICATED_FACE are information and never decline on their own. Schemas are in the data models reference.

Failure cases and recovery
| Case | What you see | Recovery |
|---|---|---|
| No credits | HTTP 403 before any image processing | Top up or move the call to a sandbox key. Never retry in a loop. |
| Bad input | HTTP 400: missing user_image, file over 5 MB, unsupported extension, PDF | Validate extension and size client side before sending. Compress to about 0.5 MB; the API compresses anyway, so higher resolution does not help. |
| Attack suspected | status="Declined" with LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE | Do not approve. Offer one guided retry, then step up to an active method or send to review. |
| Blocklist hit | FACE_IN_BLOCKLIST or POSSIBLE_FACE_IN_BLOCKLIST | Block or route to manual review, per your own policy. Screening is bypassed for faces from your own vendor_data. |
| Duplicate face | DUPLICATED_FACE or POSSIBLE_DUPLICATED_FACE, information severity | Treat as a network signal for review, not as a rejection. These never decline. |
| Capture problem | NO_FACE_DETECTED or MULTIPLE_FACES_DETECTED | Ask for a retry with one face, well framed, better lit. Use different copy from a suspected-attack message. |
| Too many calls | HTTP 429 | The write budget is 300 requests per minute per API key across all POST, PATCH and DELETE endpoints. Handle the 429 according to your rate-limit policy and retry after capacity is available. The budget is shared, so a burst on one write endpoint spends it for the rest. |
| Decision lookup fails | 404 when the session does not exist or belongs to another application, 403 when the key lacks read:sessions, 401 when the API key itself is invalid | Check that the key is valid, that it holds read:sessions, and that the session belongs to the application the key was issued for. |
| Sandbox static approval | A static Approved mock payload with no session persisted, returned to sandbox keys calling the standalone passive-liveness endpoint after request validation | Expected on that endpoint only. Session workflows in sandbox can simulate other outcomes, including declines and review, through a scenario from GET /v1/sandbox/scenarios/. |
Metrics that make a liveness claim checkable
ISO/IEC 30107 separates errors on attack presentations from errors on genuine users. The two terms to quote are APCER, the attack presentation classification error rate, meaning the share of attack presentations of a given type wrongly classified as bona fide, and BPCER, the bona fide presentation classification error rate, meaning the share of genuine presentations wrongly classified as attacks. They only mean something together, and only with four things stated: the attack type, the population, the threshold and the denominator behind each rate. Averaging all attacks into one figure hides weakness against a specific instrument, such as a replay or a mask.
Then add the operational measures that decide whether the control survives contact with users: failure to acquire, retry rate, abandonment, decision latency, results by device, camera and network, results across demographic groups, manual review rate and reviewer agreement, and confirmed fraud plus false positives found after deployment. Face match has its own false-match and false-non-match measures, and those are not liveness metrics. Every rate in a report should name its subsystem, population, threshold and denominator.
How to test liveness, in the sandbox and in production
Sandbox tests the experience, not the model. In a sandbox application every external provider is mocked, but liveness runs exactly as it does live in the hosted flow and through the native SDKs' web handoff, so you can rehearse the capture your users get. Only the liveness result is simulated, by the scenario or magic value, and the report records the method your workflow configures. That simulation is how you reproduce a decline or a review on demand. Sandbox sessions are never billed, outcomes come from the scenario rather than the pixels, and a per-application quota of 500 session creates per 24 hours applies. Scenarios are served live at GET /v1/sandbox/scenarios/. Details in the sandbox testing docs.
Read a lab report for its scope, not its headline. Independent testing is valuable because the test plan, the attack instruments and the results come from outside the vendor. It still does not prove your deployment behaves the same way. Ask which product and version were tested, whether the mode was passive, active or both, which attack species and presentation levels were included, which devices and conditions were used, which thresholds and retry rules applied, and whether injection attacks were in scope at all.
Test the integration you will actually ship. Run the production SDK or capture component on the devices, browsers, bandwidth and lighting your users have. Test permission denial, backgrounding, interruption, retries, emulators, virtual cameras, reused sessions and expiry. Test the paths after the check too: what happens on retry, on step-up, on manual review, and on account recovery. Attackers use the weakest path in the lifecycle, not the strongest.
Inputs and outputs
| Direction | Field | Notes |
|---|---|---|
| Input | x-api-key | Header. On the standalone passive-liveness API, missing or invalid credentials return 403, not 401. The decision endpoint answers 401 for an invalid key and 403 for a missing scope. |
| Input | user_image | Required. tiff, jpg, jpeg, png or webp, maximum 5 MB, single subject. Compressed to about 0.5 MB before processing. |
| Input | save_api_request | Defaults to true. False makes the call one-shot: nothing stored, no face enrolled. |
| Input | vendor_data | Your stable identifier for the person. Used to exclude the person's own prior faces from duplicate checks. |
| Input | face_liveness_method | Workflow setting: PASSIVE, ACTIVE_3D or FLASHING. Applies to session-based flows, not the standalone call, which is passive only. |
| Output | request_id / session_id | Look the result up later through the decision endpoint or the status.updated webhook. |
| Output | liveness.status | One of the status enum values. Declined means an error severity warning fired. |
| Output | liveness.score | 0 to 100. Compared against face_liveness_score_decline_threshold, default 30. |
| Output | liveness.warnings[] | Risk codes with log_type of error, warning or information, plus short and long descriptions. |
| Output | face_quality, face_luminance | 0 to 100, nullable. Use them to separate a bad capture from a suspected attack. |
Paid steps and review boundaries
What is billed. On the standalone endpoint, each 200 response consumes one Passive Liveness API credit, at $0.10 per call on the published price book, and an insufficient balance returns 403 before any image processing. Inside a workflow, a completed check bills the liveness line: $0.10 passive or $0.15 active. Nothing in sandbox is billed, and the sandbox balance check is bypassed. The Workflow Orchestrator, MCP server and SDKs carry no fee. The full list, including plan discounts, is on didit.me/pricing and in the pricing docs.
Where a human belongs. Keep the automated decision for the clear cases and route the rest. A blocklist hit, a duplicate face, a marginal score near the threshold, or two genuine capture failures in a row on an accessible device are all review triggers, not grounds for a sixth retry. Reviewers should see the documented result fields, method, score, warnings with their descriptions, face_quality and face_luminance, so the decision is explainable months later. Anything with legal or financial consequence, such as declining a person outright on a suspected spoof, should have a documented escalation path.
Worked cost example
Take 10,000 completed verifications in a month. A full KYC check is $0.33, made of ID document verification at $0.15, passive liveness at $0.10, face match 1:1 at $0.05 and device and IP analysis at $0.03. The arithmetic: 0.15 + 0.10 + 0.05 + 0.03 = 0.33, and 10,000 x 0.33 = $3,300.
Now send 2,000 of those sessions to active liveness instead, because they are account recovery or payout changes. The example assumes active liveness replaces passive liveness for those sessions while the ID document, face match and device and IP components stay unchanged. Active liveness is $0.15 instead of $0.10, so the extra is 0.15 - 0.10 = 0.05 per check, and 2,000 x 0.05 = $100. The month is $3,300 + $100 = $3,400.
If you already capture the selfie yourself and only need a passive check server to server, 10,000 calls at $0.10 is $1,000, before any face match you add on your side.
Plan discounts apply to Didit prices. On Growth, $3,400 x 0.96 = $3,264. On Scale, $3,400 x 0.90 = $3,060. Credit included in those plans is spent first, and unused monthly credit does not roll over.
Sources
- Didit liveness overview: methods, security levels, warnings, failure modes.
- Didit passive liveness API: request fields, billing, enrolment, sandbox behaviour.
- Didit Create Session API:
workflow_id,vendor_data,callback. - Didit Retrieve Session API: decision payload and feature arrays.
- Didit data models: warning object, severity, liveness check schema.
- Didit sandbox testing: scenarios, quotas, what is mocked.
- Didit pricing in the docs and didit.me/pricing: list prices read November 26, 2026.
- ISO/IEC 30107-3: PAD testing and reporting principles.
- Didit MCP server: connecting Didit to an AI assistant.
The next step is a sandbox check you can run in minutes. Create a free application at https://business.didit.me/, run the passive liveness call with a sample selfie, and look at the warnings before you set a single threshold. No sales call is needed to start.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alejandro Rosas
Co-founder and CTO

Questions
Frequently asked questions
What is liveness detection in identity verification?
Liveness detection estimates whether a biometric sample comes from a live person who is present during capture, rather than from a printed photo, a screen replay, a mask or a deepfake. In face verification it answers "is this a live capture?" before a separate face match answers "is this the right person?". Didit Passive Liveness costs $0.10 per check and Active Liveness $0.15.
Is liveness detection the same as face recognition or face match?
No. Liveness estimates whether a sample comes from a live, present person. Face match compares that sample with a reference to estimate whether they show the same person. A live stranger can pass liveness and still be the wrong person, and an accurate image of the right person can match while being a replay. Most flows need both, and at Didit face match 1:1 is a separate $0.05 check.
What is presentation attack detection, or PAD?
PAD is the automated detection of attempts to interfere with a biometric sensor by presenting an artefact, such as a print, a screen, a mask or a prosthetic. The standards term matters because ISO/IEC 30107 defines how PAD is tested and reported. PAD does not cover injection attacks, where forged media is inserted into the capture path so the physical camera never sees it.
How much does liveness detection cost at Didit?
Passive Liveness is $0.10 per check and Active Liveness is $0.15 per check. The standalone passive liveness API is $0.10 per call. A full KYC check that bundles ID document verification, passive liveness, face match and device and IP analysis is $0.33. Sandbox testing is free and never billed.
What is the difference between passive and active liveness?
Passive liveness analyses an ordinary capture and asks the user to do nothing, which keeps the flow short but places the security burden on the model and the conditions. Active liveness asks for a randomized action, such as blinking or nodding, and Didit pairs it with a light pattern that builds a depth map. At Didit the three methods are Passive Liveness, 3D Flash and 3D Action and Flash, selected by the workflow field face_liveness_method.
What do APCER and BPCER mean?
APCER is the attack presentation classification error rate: the share of attack presentations of a specified type that are wrongly classified as bona fide. BPCER is the bona fide presentation classification error rate: the share of genuine presentations wrongly classified as attacks. They must be read together at a stated threshold, and each figure needs its attack type, population and denominator named, because changing the operating point usually moves one rate against the other.
How do I test liveness detection before going live?
Use a Didit sandbox application: liveness runs exactly as it does live in the hosted flow and the SDKs' web handoff, while the result is simulated by a scenario from GET /v1/sandbox/scenarios/, which lets you reproduce declines and review outcomes on demand. Then run the production SDK on your real devices, lighting and networks, and test retries, permission denial, backgrounding and recovery paths. Sandbox allows 500 session creates per application per 24 hours and is never billed.
What does a Declined liveness status mean, and what should I do?
Declined means an error severity warning fired, most often LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE, which is a score at or below face_liveness_score_decline_threshold, default 30. Do not approve the session. Offer one guided retry, then step up to an active method or send the case to manual review, and keep the suspicion level in your records.
Which liveness method should a bank or a high-risk flow use?
Use an active method for high-risk actions. Didit documents 3D Action and Flash as its highest security level, fit for banking, healthcare and government applications, and 3D Flash as high security for financial services and account access. Keep passive liveness for the lower-risk steps of the same journey so most users still have a short path.
Does liveness detection catch injected or deepfaked video?
Liveness and PAD target what is presented to the sensor, so an injected stream can avoid the physical conditions the method expects. Injection needs its own controls: capture-path integrity, session binding, replay resistance and server-side consistency checks, alongside the biometric result. A liveness score on its own is not evidence about how the media reached your server.
Can a live person still commit fraud after passing liveness?
Yes. A live person can present someone else's document or act for a synthetic identity, and a live stranger passes liveness while being the wrong person. Pair presence evidence with a trusted reference, face match, document checks and customer due diligence controls. Liveness is one control inside an identity decision, not proof of identity.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


