How to Benchmark Liveness Detection: Metrics, Datasets, Scenarios
Benchmark liveness with APCER and BPCER at one fixed threshold on frozen prints, replays, masks and deepfakes. Price every call at the passive liveness line, $0.10 a check at list.

Contents
In this guide
Jump to the part you need.
This guide is for developers and risk teams who need to compare liveness methods with numbers instead of vendor adjectives. It gives a repeatable benchmark: ISO/IEC 30107-3 metrics, a frozen attack set, a runnable Didit call, and a cost line. Didit passive liveness is $0.10 per check at list price. Caveat: the sandbox proves your integration, not your accuracy, because sandbox liveness results are simulated.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Decision | What to do |
|---|---|
| Metric | Report APCER and BPCER at a fixed threshold, and give FAR and FRR as the business names for the same two errors |
| Acceptance rule | Write down how each status becomes a label before the first call. Accepted means status Approved. Everything else needs a stated decision |
| Attack set | Print, screen replay, mask, deepfake and injected video, with a spread of lighting, devices and demographics |
| Method | PASSIVE, FLASHING or ACTIVE_3D, chosen per scenario risk, then held fixed for the run |
| Price | Passive liveness $0.10 per check and active liveness $0.15 per check at list. Growth takes 4% off and Scale takes 10% off both |
| Sandbox | Free on every plan, with a 500-session-create quota per application every 24 hours, and simulated liveness results |
| Didit figures | Vendor-reported: 99.9% accuracy and FAR under 0.1%, tested to iBeta Level 1 and Level 2. Label every published number with who measured it |
| Standard | ISO/IEC 30107-3 for presentation attack detection metrics |
Start free in the sandbox at business.didit.me (no sales call). If you build with an AI assistant, connect Didit through Didit MCP. The method, status and warning reference is the liveness documentation, and every number is on the pricing page.
The outcome: four numbers and the threshold they were measured at
A finished liveness benchmark gives you four numbers and the threshold behind them. Anything else is a demo.
- APCER, attack presentation classification error rate, is the share of attack presentations the system accepts as live. This is the security number.
- BPCER, bona fide presentation classification error rate, is the share of genuine users the system rejects. This is the conversion number.
- FAR and FRR are the same two ideas in vendor language: false acceptance rate and false rejection rate. Use FAR and FRR with business owners, APCER and BPCER with anyone who has read ISO/IEC 30107-3.
- ACER averages the two and hides the trade-off, so print it next to both components, never instead of them.
Numbers only compare at a fixed threshold. Didit declines a standalone passive liveness call when the score is at or below face_liveness_score_decline_threshold (default 30), when a presentation attack is detected, or when the face matches your blocklist. Move the threshold and APCER and BPCER move with it, so write the threshold into the report.
Write the acceptance rule before you collect anything
Two teams can run the same 600 images and publish different APCER numbers, because they turned statuses into labels differently. Fix the rule in writing first. Ours: a call counts as accepted only when liveness.status is Approved.
- Accepted attack. An attack image whose status is Approved. This is the numerator of APCER. Divide it by the number of attack images in the set.
- Rejected genuine user. A bona fide image whose status is Declined. This is the numerator of BPCER. Divide it by the number of bona fide images in the set.
- In Review. State whether it counts as not accepted or is excluded from the rate. Keep it in the denominator either way, and report the count, so a reader can recompute your number.
- Not a liveness decision.
FACE_IN_BLOCKLIST,POSSIBLE_FACE_IN_BLOCKLIST,DUPLICATED_FACEandPOSSIBLE_DUPLICATED_FACEcome from your own lists and face index, not from the liveness model. Exclude them and report how many you excluded. - Capture failures.
NO_FACE_DETECTEDandMULTIPLE_FACES_DETECTEDdescribe framing and light. Decide once whether they count as rejections or as invalid captures, then keep that decision across runs. - Warning severities matter. Error severity declines the call:
NO_FACE_DETECTED,LOW_LIVENESS_SCORE,LIVENESS_FACE_ATTACK,FACE_IN_BLOCKLIST,POSSIBLE_FACE_IN_BLOCKLIST.MULTIPLE_FACES_DETECTEDcarries warning severity and does not decline.DUPLICATED_FACEandPOSSIBLE_DUPLICATED_FACEcarry information severity and never decline. - Score-only baseline. If you also want a raw score view, report APCER and BPCER against a stated score cutoff and label it as a score rule, not as the product decision. The product decision is the status.
That rule, the threshold, the method and the run date are the four lines that make two reports comparable. Without them you have two opinions.
Prerequisites
- A Didit application and API key from the Business Console. Sandbox testing is free on every plan, with a 500-session-create quota per application every 24 hours.
- A frozen image set: at least 300 bona fide images and 100 per attack class you intend to quote. Consent, retention and deletion rules settled before collection.
- A results table with one row per image: file name, expected label, attack class, the returned
request_id, the time you sent the call, score, status, warning codes,face_qualityandface_luminance. For persisted runs, keep therequest_idand the timestamp on every row so a disputed result can be retrieved later. Withsave_api_request=falsethe call is one-shot and nothing is stored, so retain the response and the timestamp as the audit record. - The workflow or endpoint fixed for the whole run, plus the liveness method it uses:
PASSIVE,FLASHINGorACTIVE_3D. - A live application if you need accuracy numbers, because the sandbox simulates the liveness result.
Step by step
- Write down the decision the benchmark informs. A run that answers whether one vendor beats another produces an argument. A run that answers whether method Y, at threshold X, accepts this attack set produces a number you can act on. Fix the method, the threshold and the acceptance rule before you collect anything.
- Freeze the bona fide set. Collect genuine selfies across age bands, genders, skin tones, glasses, head coverings, facial hair, indoor and outdoor light, and cameras from several price points. 300 images is a floor, not a target. Keep the same images for every system you compare, and check that no vendor has trained on them.
- Freeze the attack set by class. Record how each presentation was built, because a printed photo in daylight and the same print under a desk lamp are different tests. The classes that matter: printed photos in colour and grayscale, screen replays from phone, tablet and monitor, paper and silicone masks, resin or 3D printed heads, recorded video, deepfake re-capture, and injected virtual camera video.
- Separate integration testing from accuracy testing. The sandbox runs the real capture and returns a simulated result from a scenario or magic value. That makes it the right place to prove your session, your webhook and your report handling, and the wrong place to claim a false acceptance rate. Accuracy needs live checks on your own set, or a PAD test report you can read.
- Run the standalone endpoint over the set. The passive liveness API takes one image per call and returns a score. This is the documented call:
For a benchmark, loop the same call over your folder withcurl -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_request=falseso the images are not enrolled into your face search index:
Keep the loop under 300 requests a minute, the shared write budget per API key, or calls answerfor f in ./benchmark/bona-fide/*.jpg; do curl -s -X POST 'https://verification.didit.me/v3/passive-liveness/' \ -H 'x-api-key: YOUR_API_KEY' \ -F "user_image=@$f" \ -F 'save_api_request=false' \ >> ./benchmark/results.jsonl done429. - Read the score, the status and the warnings. The score runs 0 to 100.
face_qualityandface_luminancerun 0 to 100 and can be null. Record the warning codes separately from the score:LIVENESS_FACE_ATTACK,LOW_LIVENESS_SCORE,NO_FACE_DETECTED,MULTIPLE_FACES_DETECTED,FACE_IN_BLOCKLIST,DUPLICATED_FACE. A rejection on a frame captured in very low light tells you about your capture step, not only about the model, so readface_luminancebefore you blame the classifier. - Compute APCER and BPCER at that threshold. APCER is accepted attacks divided by total attacks. BPCER is rejected genuine users divided by total genuine users. Publish both with counts, the threshold, the method, the acceptance rule and the date, so the next run is comparable.
- Slice the results. An average across a whole set hides the clusters that matter: low light, glossy monitor replays, older front cameras, and any demographic group with thin coverage. Publish per-slice numbers where you have at least 30 samples.
- Keep the evidence trail. Store the
request_idand the time of every call next to its row. Withsave_api_request=true, therequest_idand the timestamp let you retrieve the persisted session and its decision in the Business Console. Withsave_api_request=false, no session is persisted, so review the response you retained instead. - Benchmark the response, not only the score. A score matters only if it changes a decision. In the workflow, set what a low score does (decline or route to review), whether a duplicated face blocks, and which warnings need a human. Test those paths in the sandbox, where the outcome is deterministic.
- Date the run and repeat it. Models, thresholds and attack tools change. Keep the image set frozen, record the workflow, method and threshold, and re-run quarterly or after any configuration change. A benchmark without a version number is a story.

Scenarios that deserve their own run
| Scenario | Method to test | What changes |
|---|---|---|
| Consumer sign-up, low risk | PASSIVE, single frame analysis | Attack mix is mostly prints and replays, and BPCER drives the decision |
| Account access and step-up checks | FLASHING, no user action | Light pattern depth at more than 30 frames per second, tested on low-end front cameras |
| Banking, healthcare, government | ACTIVE_3D, randomized action plus light patterns | Highest security of the three. Test glasses, low vision and older devices, and measure abandonment, not only APCER |
| Re-verification of an existing user | Standalone passive liveness with a stable vendor_data | Prior faces with the same vendor_data are excluded from the index search, so a re-run does not flag the user against themselves |
Vendor-reported performance versus your measured results
Vendor-reported: what Didit publishes
Our liveness documentation states 99.9% accuracy with a false acceptance rate under 0.1%, tested to iBeta Level 1 and Level 2 presentation attack detection. Those figures come from our conditions, our attack set and our threshold. Treat them as a claim to check, not as an input to your risk model. 4,000+ companies run checks on Didit today, and that still does not replace a run on your own set.
Independently measured: what your run produces
Your run produces APCER and BPCER on your frozen set, at your threshold, on your devices, with a count behind each rate. Publish it with a source line that records who measured it and on what date, so nobody puts your number in the same row as ours. If you also quote the iBeta result, give it its own row labelled with the lab that issued it. Mixing the two in one cell is the most common way a benchmark table loses its meaning.
Inputs and outputs
| Field | Direction | What it means |
|---|---|---|
x-api-key | In | Your application API key. Missing or invalid credentials return 403. This endpoint never returns 401 |
user_image | In | Front facing face image. Allowed extensions tiff, jpg, jpeg, png, webp. Maximum 5 MB. One subject. PDFs are not accepted |
save_api_request | In | Defaults to true: the call is stored as a session and the face is enrolled in your face search index. Set it to false for a one-shot call. Blocklist and duplicate screening run either way |
vendor_data | In | Your own user reference, kept on the session and used to exclude the same user from duplicate detection |
request_id | Out | When save_api_request=true, request_id identifies the persisted session whose decision can be retrieved later. With false, treat the response as one-shot. Copy it into your results table |
liveness.status | Out | Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired for this check |
liveness.score | Out | 0 to 100. This is the number your threshold acts on |
liveness.warnings | Out | Risk codes, the field you count when you explain a rejection |
face_quality, face_luminance | Out | 0 to 100, nullable. Capture diagnostics for your upper funnel |
user_image.entities, best_angle | Out | What the model saw in the frame, useful when a call fails for framing rather than spoofing |
Expected output
The response carries request_id and a liveness object. The documented shape is:
{ request_id, liveness: { status, method: "PASSIVE", score, user_image: { entities, best_angle }, warnings, face_quality, face_luminance } }
In a session workflow the same data arrives as one entry per liveness node in liveness_checks[] on GET /v3/session/{sessionId}/decision/ and inside the status.updated webhook, with the same status values. Two outcomes cover a benchmark run: Approved with a score above your threshold and no error severity warnings, or Declined with LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE recorded against the image. Write the returned request_id and the time of the call into the row before you move to the next image.

Failure cases and recovery
| Symptom | Meaning | Recovery |
|---|---|---|
403 with permission detail | Missing or invalid API key | Fix the key header. This endpoint answers 403, never 401 |
403 before processing | Out of credits | Top up, or move the run to a sandbox application, where billing is bypassed |
400 | Missing user_image, file over 5 MB, unsupported extension, or a PDF | Normalise the set to jpg or png under 5 MB before the run, so file errors never look like model errors |
429 | Over 300 write requests a minute on the key | Throttle the loop and re-run only the calls that were refused |
Declined with LIVENESS_FACE_ATTACK | The model detected a presentation attack | Do not approve. Count it as a rejected attack according to your label, and keep the image |
Declined with LOW_LIVENESS_SCORE | Score at or below the decline threshold | Log the score and the threshold together. If the label was bona fide, this is a BPCER case |
NO_FACE_DETECTED or MULTIPLE_FACES_DETECTED | Framing problem, warning severity | Ask for a retry with one well framed face, then count the retry rate as a UX cost |
FACE_IN_BLOCKLIST | Face matches an entry on your blocklist | Block or route to review per policy. Exclude it from APCER because it is not a liveness decision |
DUPLICATED_FACE | Information severity: the same face already appears in another approved session | Never declines on its own. Decide whether duplicates block, and keep them out of the liveness error rates |
| Every sandbox image comes back Approved | Sandbox returns a static mock payload after validation | Expected. Move accuracy measurement to live checks on a live application |
Paid steps and review boundaries
- Each
200response consumes one Passive Liveness credit. Price every call at the passive liveness line: $0.10 at list, $0.096 on Growth and $0.09 on Scale. Active liveness is $0.15 at list. - Sandbox calls are never billed, and a sandbox key returns a static Approved mock after validation, so a full sandbox sweep costs $0.
- A reviewer, not the score, closes an In Review session: approve, decline or request a resubmission. Human review time is yours to budget. The API price covers the automated check, not the person.
- The boundary sits at your configuration. Didit returns the score, the warnings and a status. Your workflow sets which warning routes to review and which declines, and your policy owns that choice.
Worked cost example
A benchmark of 600 images: 400 bona fide selfies and 200 attack presentations across print, replay, mask and deepfake. Every call is priced at the passive liveness line.
- Passive liveness at list price: 600 x $0.10 = $60.00.
- On Growth, 4% off: 600 x $0.096 = $57.60.
- On Scale, 10% off: 600 x $0.09 = $54.00.
- A quarterly re-run on the same frozen set is four times that: 4 x $60.00 = $240.00 a year at list.
Running the same 600 images through full workflow checks costs more, because a check is four line items: 600 x $0.15 ID document = $90.00, 600 x $0.10 passive liveness = $60.00, 600 x $0.05 face match = $30.00, 600 x $0.03 device and IP = $18.00, a total of $198.00 at list, which is 600 x $0.33. Swapping active liveness into the session adds $0.05 per check, which is $30.00 more across 600 checks.
Set aside reviewer time as well. At a 5% review rate, 600 x 0.05 = 30 of the 600 images reach a person. Budget that time separately from the API cost. For an eligible Free organization, $10 of monthly credit covers 100 passive liveness checks at $0.10 each, which is enough to prove the pipeline before you fund the full set. Full plan terms are on Didit pricing and in the pricing documentation.

Sources
- Didit liveness detection documentation
- Didit passive liveness API reference
- Didit sandbox testing documentation
- Didit data models
- Didit verification statuses
- Didit API errors
- Didit pricing in the docs
- Didit pricing page and cost estimator
- Didit integration prompt for coding agents
- Didit MCP server setup
- ISO/IEC 30107-3, biometric presentation attack detection testing and reporting (standard, not linked)
Create a free sandbox application and run your frozen set against the passive liveness API: sandbox is free on every plan, no sales call, and a first live benchmark of 600 images costs $60.00 at list at the passive liveness price. Developers who want an agent to do the wiring can start from Didit MCP.
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 metrics are used to benchmark liveness detection?
APCER and BPCER from ISO/IEC 30107-3, plus FAR and FRR as the business names for the same two errors. APCER is the share of attack presentations accepted as live and BPCER is the share of genuine users rejected. Report both at one fixed threshold, with ACER only as a summary line.
How do I turn a liveness result into an APCER or BPCER label?
Write one acceptance rule and apply it to every row: a call counts as accepted only when liveness.status is Approved. An attack image with status Approved counts in the APCER numerator, and a bona fide image with status Declined counts in the BPCER numerator. Statuses that are not a liveness decision, such as FACE_IN_BLOCKLIST or DUPLICATED_FACE, are excluded and counted separately.
What false acceptance rate does Didit liveness have?
Our liveness documentation states 99.9% accuracy with a false acceptance rate under 0.1%, tested to iBeta Level 1 and Level 2 presentation attack detection. That is a vendor figure measured on our conditions and our attack set. Keep it in its own row in any table, then put the number your own frozen set produces beside it, labelled with the date you measured it.
Can I measure liveness accuracy in the Didit sandbox?
No. The sandbox runs the real capture but simulates the liveness result from a scenario or magic value, so every outcome is deterministic and none of it is a measurement. Use it to test your session, webhook and report handling, then measure accuracy on live checks. Sandbox testing is free on every plan, with a 500-session-create quota per application every 24 hours.
How big should a liveness test set be?
Start with at least 300 bona fide images and 100 per attack class you intend to quote, then slice by light, device and demographic group only where a slice holds at least 30 samples. Sample size decides how much a rate can move: on 100 attack samples a single misclassification shifts APCER by a full percentage point, so the interval around that rate is wider than the gap between many vendors. Publish counts next to every rate so the reader can see how much weight it carries.
Which spoof types should a liveness dataset include?
Printed photos in colour and grayscale, screen replays from phone, tablet and monitor, paper and silicone masks, resin or 3D printed heads, recorded video, deepfake re-capture and injected virtual camera video. Add lighting and camera variation, because most false accepts in production appear in conditions your set never covered.
How much does it cost to benchmark liveness with Didit?
Passive liveness is $0.10 per check at list price, $0.096 on Growth and $0.09 on Scale, and a 600 image benchmark is 600 x $0.10 = $60.00 at list, $57.60 on Growth and $54.00 on Scale. Active liveness is $0.15 per check at list if your scenario needs the action step. Sandbox calls are never billed.
What is the difference between passive liveness, 3D Flash and 3D Action?
Passive liveness scores a single frame with a convolutional model. 3D Flash projects light patterns above 30 frames per second and reads depth from the reflections without asking the user to move. 3D Action and Flash adds a randomized action such as blinking to the light patterns, and it is the highest security of the three.
Why did a liveness check come back In Review?
In Review means automated checks raised warnings that your configuration routes to a person, such as a low score near the threshold, a possible duplicate face or a capture quality warning. A reviewer approves, declines or asks for a resubmission. Decide in advance how In Review counts in your APCER and BPCER labels, because the reviewer decision arrives later than the check.
What does a Declined liveness status mean?
Declined means an error severity signal fired, most often LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE at or below the decline threshold, which defaults to 30. Do not approve the session. Retry with better lighting and framing, or route it to review under your policy.
Does re-running liveness for the same user flag a duplicate face?
No, on the standalone API. Prior faces with the same vendor_data are excluded from the index search, so a re-run for the same user does not raise DUPLICATED_FACE. Duplicate and blocklist screening still runs on every call, including when save_api_request is false.
How do I read a liveness result in a session rather than a standalone call?
Read liveness_checks[] on GET /v3/session/{sessionId}/decision/, or take it from the status.updated webhook. Each entry carries a status, the score, the method and its warnings, and node_id tells you which workflow node produced it.
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


