Real-Time Facial Landmark Detection: Your Fraud Shield
Facial landmark detection maps the face frame by frame, and that geometry is what liveness and face match decisions rest on. Here is the exact Didit setup, with published prices, the documented response fields and failure.

Contents
In this guide
Jump to the part you need.
This guide fits teams that need liveness and 1:1 face matching for compliance decisions, not a computer vision demo. We show the Didit setup end to end: choose a liveness method, create a session, call the standalone APIs when you already hold a selfie, read the warnings. Prices are published: passive liveness $0.10, active liveness $0.15, Face Match $0.05. Caveat: a score is evidence, not a legal conclusion, so your policy sets the thresholds.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Check | What it proves | Price | Unit |
|---|---|---|---|
| Passive liveness inside a workflow session | One frame shows a live face, not a print, a replay or a mask | $0.10 | check |
| Active liveness | A randomised action combined with light pattern depth analysis | $0.15 | check |
| Face Match 1:1 | The selfie and the ID portrait are the same person | $0.05 | check |
| Face Search 1:N | The face is not a duplicate and not on your blocklist | $0.05 | search |
| Full ID check (KYC) | Document, biometrics, device and IP in one decision | $0.33 | check |
Start free in the sandbox at business.didit.me, no sales call. For developers, connect Didit to an AI assistant through the Didit MCP server. Every published number is on the pricing page.
One pricing note before the detail. Passive Liveness is $0.10 per completed check on the live price feed.
What real-time facial landmark detection does inside a check
This section is general computer-vision context, not a description of Didit response fields. Facial landmark detection places fixed points on a face in every frame it receives: the corners of the eyes, the tip of the nose, the edges of the mouth, the outline of the jaw. A model trained on face data locates them in milliseconds, and those coordinates feed two decisions a fraud team cares about: whether this is a three dimensional, living face, and whether it is the same face as the one in the document.
Landmarks are intermediate geometry, not a product you call. Didit does not hand you raw coordinates. It returns the decision and the risk codes, so your integration reads liveness.score, face_match.score and warnings[]. Everything from here on comes from the published docs, and every field named in the tables below is a field the API actually returns. Two products consume that geometry: Liveness Detection and Face Match. Both run inside a workflow, or on their own as standalone API calls.
3D liveness detection: three methods, one workflow setting
| Method | How it works | Security level | Best for |
|---|---|---|---|
PASSIVE | Single-frame deep learning. A convolutional network reads texture, artefacts and other cues that separate a live face from a print, a screen or a mask. No user action. | Standard | Low-risk steps where you do not want to ask for an action |
FLASHING (3D Flash) | Light patterns are projected at over 30 frames per second and the reflections are read back as a depth map of the face. | High | Financial services, account access, identity verification |
ACTIVE_3D (3D Action and Flash) | A randomised action such as blinking or nodding, combined with the light pattern analysis, so behaviour and depth are checked together. | Highest | Banking, healthcare, government flows |
When someone asks about 3D liveness detection, this table is the answer. The flash and action methods measure depth directly through reflection analysis. Passive liveness scores a single frame, which is why it is the cheapest method and the only one the standalone API supports.
Didit reports 99.9% accuracy with a false acceptance rate under 0.1% for liveness, holds iBeta Level 1 PAD, and returns decisions with a sub-2-second p99. The method is set per workflow in the field face_liveness_method, in the Business Console or through POST /v3/workflows/. Changing the method does not change your integration code, only the camera step the user sees.

Face matching for compliance: what to run and what to keep
Face Match compares the live selfie with the ID portrait and returns a similarity score from 0 to 100. The standalone POST /v3/face-match/ declines a score of 30 or less by default, and the threshold is configurable per workflow node. For a file an auditor may later ask about, keep three artefacts together under one session_id: the liveness decision, the similarity score and the warnings list.
Retention is part of the design, not an afterthought. Plan data retention runs from 1 year on Free to 10 years on Scale, and Enterprise sets its own. Didit serves 4,000+ companies, is attested by Spain's Tesoro, Banco de España and SEPBLAC as safer than an in-person check, holds SOC 2 Type 2 and ISO/IEC 27001:2022 certification, and covers 220+ countries with 14,000+ document types.
Keep the session result, not only your own pass or fail. GET /v3/session/{sessionId}/decision/ returns the liveness_checks[] and face_matches[] arrays, and the session.status.updated webhook carries the same payload if you prefer to receive it. A score is evidence that your policy or a reviewer acts on. It is not a legal conclusion, and a regulator in your market still sets the documentation you keep.
Prerequisites
- A Didit organization and an API key. Sandbox testing is free and unlimited on every plan.
- The key sent in the
x-api-keyheader. Missing or invalid credentials return 403 on the standalone APIs, which never return 401. - A workflow carrying the features you want:
LIVENESS, plusID_VERIFICATIONandFACE_MATCHwhen you need the selfie compared with a document portrait. - The liveness method chosen before you build the flow:
PASSIVE,ACTIVE_3DorFLASHING. curl, and a selfie in tiff, jpg, jpeg, png or webp, 5 MB maximum. PDFs are rejected.- An idempotency key if your own code retries the same request.
Run the check, step by step
- Choose the liveness method. Start with
PASSIVEif you want the fewest user actions. Move a workflow toFLASHINGorACTIVE_3Dwhen the value of the account justifies a depth check. The method is a workflow setting, not a parameter on the session call. - Build the workflow. In the Business Console, or with
POST /v3/workflows/, addLIVENESS, andID_VERIFICATIONplusFACE_MATCHfor a full check. Keep theworkflow_idyou get back. - Create a session.
POST /v3/session/withworkflow_id,vendor_data(your own user id) andcallback(where results should land). The response gives yousession.url. - Send the user to
session.url, or mount the Web or Mobile SDK. The hosted flow guides the capture, and the method you set decides what the camera step does. - Fetch the decision. Call
GET /v3/session/{sessionId}/decision/or subscribe tosession.status.updated, then readliveness_checks[],face_matches[]andwarnings[]. - Or call the standalone passive liveness API when your own screen already captured the selfie. This route is passive only and takes one file:
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=truethe call is persisted as an API-type session and the detected face is enrolled in your face search index. Withfalseit is one-shot: nothing is stored and nothing is enrolled, while blocklist and duplicate screening still run. - Compare with the ID portrait using Face Match. Two files,
user_imagefor the live capture andref_imagefor the portrait:curl -X POST 'https://verification.didit.me/v3/face-match/' \ -H 'x-api-key: YOUR_API_KEY' \ -F 'user_image=@./selfie.jpg' \ -F 'ref_image=@./id_portrait.jpg' \ -F 'save_api_request=true' \ -F 'vendor_data=user-123' - Screen for duplicates and blocklisted faces. POST /v3/face-search/ takes
search_type=most_similarfor deduplication orblocklisted_or_approvedwhen blocklist screening is the point. Inside a Didit session this runs automatically during the liveness check, and again on the silent front-camera selfie taken while the document is photographed. - Decide from the warnings, not from the status alone. A Declined status with
LIVENESS_FACE_ATTACK,LOW_LIVENESS_SCOREorFACE_IN_BLOCKLISTis a hard stop in most policies. The possible variants and duplicate signals go to a person.

Expected output
The standalone passive liveness call returns a request_id and a liveness object in this shape:
{ request_id, liveness: { status, method: "PASSIVE", score, user_image: { entities, best_angle }, warnings, face_quality, face_luminance } }
status is one of Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. score runs from 0 to 100. warnings is a list of risk codes, and face_quality and face_luminance describe the capture on the same 0 to 100 scale and can be null. The Face Match call returns the same envelope with a face_match object and a similarity score. The Face Search call is different: it returns a singular face_search object with total_matches and up to 5 matches.
Sandbox API keys skip processing and billing. After request validation they return a static Approved mock payload, persist no session and consume no credits, so you can wire the whole flow before you spend anything. Malformed input still returns HTTP 400.
Inputs and outputs
| Field | Used by | Required | Notes |
|---|---|---|---|
user_image | passive-liveness, face-match, face-search | Yes | Front-facing face image. tiff, jpg, jpeg, png or webp, 5 MB maximum. Images are compressed to about 0.5 MB before processing. |
ref_image | face-match | Yes | The reference portrait, usually cropped from the ID document. |
save_api_request | all three | No | Default true. Persists the call as an API-type session and enrols the face. false makes it one-shot. |
vendor_data | all three | No | Your own user identifier, returned with the result. In the passive liveness call, prior faces with the same vendor_data are excluded from the blocklist and duplicate index search, so re-running liveness for the same user does not raise a duplicate warning. Face Search does not apply that exclusion. |
search_type | face-search | No | most_similar (default) or blocklisted_or_approved. |
x-api-key | all three | Yes | Header. Missing or invalid credentials return 403. |
Idempotency-Key | all three | No | Header, for a safe retry of the same request. |
| Call | Object | Fields you act on |
|---|---|---|
| Passive liveness | liveness | status, method, score, warnings[], face_quality, face_luminance |
| Face Match | face_match | status, score from 0 to 100, warnings[] |
| Face Search | face_search, singular | status, total_matches, matches[] with similarity_percentage and is_blocklisted |
| Session decision | decision payload | liveness_checks[], face_matches[] and the session status |
Failure cases and recovery
| Response or status | What it means | Recovery |
|---|---|---|
| HTTP 403 | Out of credits, or a missing or invalid API key | The call fails before any image processing. Top up the balance or fix the key header, then resend. |
| HTTP 400 | Missing user_image, file over 5 MB, unsupported extension, or a PDF | Fix the payload and ask for a fresh capture. Malformed input returns 400 even in the sandbox. |
| HTTP 429 | The shared write budget of 300 requests per minute per API key is exhausted | Back off and retry. The budget covers all POST, PATCH and DELETE calls on the key. |
Declined with LIVENESS_FACE_ATTACK | The model detected a presentation attack | Do not approve. Log the attempt and the session id. |
Declined with LOW_LIVENESS_SCORE | The score is at or below face_liveness_score_decline_threshold, default 30 | Ask for a retry with better light, or route to review if the user has exhausted attempts. |
NO_FACE_DETECTED or MULTIPLE_FACES_DETECTED | No face, or more than one face, in the frame | Ask the user to retry with a single, well-framed face. Multiple faces is warning severity and does not decline on its own. |
FACE_IN_BLOCKLIST or POSSIBLE_FACE_IN_BLOCKLIST | A match against your face blocklist, exact or borderline | Decline the exact match. Send the possible match to manual review. |
DUPLICATED_FACE or POSSIBLE_DUPLICATED_FACE | The same face already appeared in another approved session | Information severity, it never declines. Your deduplication policy decides whether to merge or block. |
| Retryable face match failure in a session | A fixable capture problem, or a borderline similarity | The user stays on the step with feedback_codes and attempts_used. face_match_max_attempts defaults to 3, range 1 to 3. |
The standalone Face Match endpoint is single-shot for retries. Passive Liveness and Face Search can persist sessions and enroll faces when save_api_request=true.
Paid steps and review boundaries
| Step | Price | Automated or human |
|---|---|---|
| Passive liveness in a session | $0.10 | Automated decision with risk codes |
| Active liveness | $0.15 | Automated decision with risk codes |
| Face Match 1:1 | $0.05 | Automated decision with a similarity score |
| Face Search 1:N | $0.05 | Automated blocklist hit, human on possible hit |
| ID document verification | $0.15 | Automated, human on extracted-data conflicts |
| Device and IP analysis | $0.03 | Automated signal |
| Workflow Orchestrator, SDKs, MCP server | Free | Infrastructure, not a decision |
Draw the boundary once and write it down. A blocklist exact hit, a detected face attack and a liveness score under the decline threshold can be automated. Anything with possible in the code name, an In Review status, or a similarity score near the threshold needs a person, because those are the cases where a false decline costs you a real customer.

Worked cost example
Assume 10,000 onboarding checks a month at list price, each a full ID check, plus 3,000 standalone Face Match calls on selfies and portraits your own system already holds, plus 3,000 face searches for duplicates.
- 10,000 full ID checks x $0.33 = $3,300.00
- 3,000 Face Match API calls x $0.05 = $150.00
- 3,000 face searches x $0.05 = $150.00
- Monthly total at list price = $3,600.00
On Growth, with 4% off every Didit price: $0.3168 x 10,000 = $3,168.00, and $0.048 x 3,000 = $144.00 twice, so $288.00. Total $3,456.00, plus the $99.00 monthly fee, with $115.00 of credit back each month. On Scale, with 10% off: $0.297 x 10,000 = $2,970.00, and $0.045 x 3,000 = $135.00 twice, so $270.00. Total $3,240.00, plus the $299.00 monthly fee and $350.00 of credit.
Billing is per completed check from prepaid credit, so a session that never reaches a result does not cost you a check. The plan rules, the credit and the top-up terms are on the pricing page.
Sources
- Didit docs: Liveness Detection API overview
- Didit docs: Passive Liveness API
- Didit docs: liveness warning catalogue
- Didit docs: Face Match 1:1 API overview
- Didit docs: Face Search 1:N API overview
- Didit docs: Face Search API reference
- Didit docs: webhooks and session.status.updated
- Didit docs: pricing and billing rules
- Didit pricing page, read November 26, 2026
- Didit price feed as JSON, read November 26, 2026
- Didit MCP server setup
Open the sandbox at business.didit.me and run your first passive liveness call with a test key. Sandbox testing is free and unlimited, there is no sales call, and nothing is charged until you switch to a live key.
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
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
What is 3D liveness detection?
3D liveness detection measures the depth of a face to decide whether the camera is pointed at a person or at a print, a screen or a mask. Didit implements it two ways: FLASHING projects light patterns at over 30 frames per second and reads the reflections as a depth map, and ACTIVE_3D adds a randomised action such as blinking or nodding to the same depth analysis. Both run inside a workflow, and the method is one workflow field, face_liveness_method.
Is face matching accepted for compliance checks?
Whether facial matching satisfies a compliance requirement depends on your regulator and your own policy. Didit Face Match returns a 0 to 100 similarity score between the live selfie and the ID portrait, and the session decision keeps the liveness result, the match score and the warnings together under one session id, which is the evidence a reviewer or auditor works from. Didit is attested by Spain's Tesoro, Banco de España and SEPBLAC as safer than an in-person check, and holds SOC 2 Type 2 and ISO/IEC 27001:2022 certification. Your regulator still sets the retention period and the documents you must produce.
How much does liveness and face matching cost on Didit?
Passive liveness is $0.10 per check. Active liveness is $0.15, Face Match 1:1 is $0.05 and Face Search 1:N is $0.05 per search. A full ID check that bundles the document, passive liveness, face match and device and IP analysis is $0.33. Growth takes 4% off every price and Scale takes 10%.
Can I run liveness on a selfie I already captured, without a hosted flow?
Yes. POST /v3/passive-liveness/ takes one image and returns a liveness status, a score and warnings. It is passive only, so it does not run the flash or action methods. When save_api_request is true, the call is persisted as an API-type session and the face is enrolled in your face search index. Use a session when you want the guided camera step or an active method.
What happens when a face match score is borderline?
In a session, a borderline or poorly captured match does not decline straight away. The user stays on the step with coaching feedback in feedback_codes, and face_match_max_attempts controls how many submissions are allowed, default 3 and range 1 to 3. When the attempts run out the computed status is applied, either Declined or In Review. The standalone endpoint is single-shot, so your own logic has to handle the retry.
What does the Didit sandbox return for a liveness call?
Sandbox API keys skip processing and billing. After request validation the endpoint returns a static Approved mock payload, persists no session and consumes no credits, while malformed input still returns HTTP 400. That lets you wire the full flow, including your error handling, before you spend anything.
How do I handle a blocklisted or duplicate face?
A FACE_IN_BLOCKLIST warning sets the status to Declined, so the check stops there. POSSIBLE_FACE_IN_BLOCKLIST is a borderline match below the hard threshold and belongs in manual review. Duplicate warnings, DUPLICATED_FACE and POSSIBLE_DUPLICATED_FACE, are information severity and never decline, so your own deduplication policy decides what happens.
Is the landmark map stored as biometric data?
Didit's documented payload has no landmark-map field. When save_api_request=true, the reference image and face crop are stored and the face is enrolled in your face-search index. Set it to false for a one-shot request.
Which Didit check covers a full compliance file?
The full ID check, at $0.33, combines ID document verification at $0.15, passive liveness at $0.10, Face Match at $0.05 and device and IP analysis at $0.03. It is billed once per completed check, and the decision payload keeps each part separate so a reviewer can see which one failed. Add AML screening at $0.20 when the file also needs sanctions and PEP coverage.
Can I connect Didit to an AI assistant or coding agent?
Yes. The Didit MCP server is free and hosted at https://mcp.didit.me/mcp with OAuth sign-in, and there is a published integration prompt that lets a coding agent build the flow end to end. Both are documented at didit.me/developers/mcp. The API calls the agent produces are the same ones on this page.
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


