Skip to main content

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.

Real-Time Facial Landmark Detection: Your Fraud Shield

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.

Didit checks behind a facial landmark decision, at list price
CheckWhat it provesPriceUnit
Passive liveness inside a workflow sessionOne frame shows a live face, not a print, a replay or a mask$0.10check
Active livenessA randomised action combined with light pattern depth analysis$0.15check
Face Match 1:1The selfie and the ID portrait are the same person$0.05check
Face Search 1:NThe face is not a duplicate and not on your blocklist$0.05search
Full ID check (KYC)Document, biometrics, device and IP in one decision$0.33check

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

The three liveness methods available in a Didit workflow
MethodHow it worksSecurity levelBest for
PASSIVESingle-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.StandardLow-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.HighFinancial 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.HighestBanking, 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.

The camera step of a Didit face scan while the liveness check runs
The face step runs the liveness method you set on the workflow, then hands the same selfie to face match.

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-key header. Missing or invalid credentials return 403 on the standalone APIs, which never return 401.
  • A workflow carrying the features you want: LIVENESS, plus ID_VERIFICATION and FACE_MATCH when you need the selfie compared with a document portrait.
  • The liveness method chosen before you build the flow: PASSIVE, ACTIVE_3D or FLASHING.
  • 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

  1. Choose the liveness method. Start with PASSIVE if you want the fewest user actions. Move a workflow to FLASHING or ACTIVE_3D when the value of the account justifies a depth check. The method is a workflow setting, not a parameter on the session call.
  2. Build the workflow. In the Business Console, or with POST /v3/workflows/, add LIVENESS, and ID_VERIFICATION plus FACE_MATCH for a full check. Keep the workflow_id you get back.
  3. Create a session. POST /v3/session/ with workflow_id, vendor_data (your own user id) and callback (where results should land). The response gives you session.url.
  4. 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.
  5. Fetch the decision. Call GET /v3/session/{sessionId}/decision/ or subscribe to session.status.updated, then read liveness_checks[], face_matches[] and warnings[].
  6. Or call the standalone passive liveness API when your own screen already captured the selfie. This route is passive only and takes one file:
    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'
    With save_api_request=true the call is persisted as an API-type session and the detected face is enrolled in your face search index. With false it is one-shot: nothing is stored and nothing is enrolled, while blocklist and duplicate screening still run.
  7. Compare with the ID portrait using Face Match. Two files, user_image for the live capture and ref_image for 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'
  8. Screen for duplicates and blocklisted faces. POST /v3/face-search/ takes search_type=most_similar for deduplication or blocklisted_or_approved when 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.
  9. Decide from the warnings, not from the status alone. A Declined status with LIVENESS_FACE_ATTACK, LOW_LIVENESS_SCORE or FACE_IN_BLOCKLIST is a hard stop in most policies. The possible variants and duplicate signals go to a person.
The intro screen of the Didit face step before the camera opens
The face step starts with a single instruction, then the liveness method you configured takes over.

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

Request fields for the standalone liveness, face match and face search calls
FieldUsed byRequiredNotes
user_imagepassive-liveness, face-match, face-searchYesFront-facing face image. tiff, jpg, jpeg, png or webp, 5 MB maximum. Images are compressed to about 0.5 MB before processing.
ref_imageface-matchYesThe reference portrait, usually cropped from the ID document.
save_api_requestall threeNoDefault true. Persists the call as an API-type session and enrols the face. false makes it one-shot.
vendor_dataall threeNoYour 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_typeface-searchNomost_similar (default) or blocklisted_or_approved.
x-api-keyall threeYesHeader. Missing or invalid credentials return 403.
Idempotency-Keyall threeNoHeader, for a safe retry of the same request.
What each call returns and which fields you act on
CallObjectFields you act on
Passive livenesslivenessstatus, method, score, warnings[], face_quality, face_luminance
Face Matchface_matchstatus, score from 0 to 100, warnings[]
Face Searchface_search, singularstatus, total_matches, matches[] with similarity_percentage and is_blocklisted
Session decisiondecision payloadliveness_checks[], face_matches[] and the session status

Failure cases and recovery

Documented failure modes and what to do next
Response or statusWhat it meansRecovery
HTTP 403Out of credits, or a missing or invalid API keyThe call fails before any image processing. Top up the balance or fix the key header, then resend.
HTTP 400Missing user_image, file over 5 MB, unsupported extension, or a PDFFix the payload and ask for a fresh capture. Malformed input returns 400 even in the sandbox.
HTTP 429The shared write budget of 300 requests per minute per API key is exhaustedBack off and retry. The budget covers all POST, PATCH and DELETE calls on the key.
Declined with LIVENESS_FACE_ATTACKThe model detected a presentation attackDo not approve. Log the attempt and the session id.
Declined with LOW_LIVENESS_SCOREThe score is at or below face_liveness_score_decline_threshold, default 30Ask for a retry with better light, or route to review if the user has exhausted attempts.
NO_FACE_DETECTED or MULTIPLE_FACES_DETECTEDNo face, or more than one face, in the frameAsk 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_BLOCKLISTA match against your face blocklist, exact or borderlineDecline the exact match. Send the possible match to manual review.
DUPLICATED_FACE or POSSIBLE_DUPLICATED_FACEThe same face already appeared in another approved sessionInformation severity, it never declines. Your deduplication policy decides whether to merge or block.
Retryable face match failure in a sessionA fixable capture problem, or a borderline similarityThe 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.

What each step costs and whether a person has to decide
StepPriceAutomated or human
Passive liveness in a session$0.10Automated decision with risk codes
Active liveness$0.15Automated decision with risk codes
Face Match 1:1$0.05Automated decision with a similarity score
Face Search 1:N$0.05Automated blocklist hit, human on possible hit
ID document verification$0.15Automated, human on extracted-data conflicts
Device and IP analysis$0.03Automated signal
Workflow Orchestrator, SDKs, MCP serverFreeInfrastructure, 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.

A liveness result in the Didit Business Console session view
The liveness result in the session view, which is what a reviewer reads when a case goes to manual review.

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

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.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.