Skip to main content

Liveness and Face Match Interoperability: A 2026 How-To

Liveness proves a live person is present; face match proves that person owns the document. Run both in one Didit session at $0.33 per full KYC check, or $0.10 plus $0.05 per standalone passive liveness and face match call.

Liveness and Face Match Interoperability: A 2026 How-To

Contents

In this guide

Jump to the part you need.

This guide fits engineering and compliance teams that need liveness detection and 1:1 face match running together in one check. A full KYC check on Didit costs $0.33: ID document $0.15, passive liveness $0.10, face match $0.05, device and IP $0.03. The caveat: a similarity score is only evidence that two faces look alike. Read it together with the liveness result, the document check and your own policy.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Liveness and face match: what each step proves and what it costs at list price
StepWhat it provesOptionsList priceDecision field
Liveness detectionA live person is in front of the camera, not a print, a screen replay, a mask or a deepfakePASSIVE, ACTIVE_3D, FLASHING$0.10 passive, $0.15 activeliveness_checks[]
Face match 1:1The live face matches the portrait on the ID documentSimilarity score 0 to 100, declined at or below your threshold$0.05face_matches[]
ID verificationThe document is genuine and supplies the reference portraitOCR, MRZ parsing, barcode decoding$0.15id_verifications[]
Device and IP analysisDevice and IP analysis is included in the full KYC check at $0.03Runs in every full check$0.03ip_analyses[]

Start free in the sandbox at business.didit.me, no sales call. If you build with an AI assistant, connect Didit to it through the Didit MCP server. Every unit price on this page is on the pricing page and in the machine-readable price feed.

What interoperability means in practice

Liveness detection answers one question: is there a live person in front of the camera right now? It rejects printed photos, screen replays, masks and deepfakes. Face match answers a different question: is this face the same person as the portrait on the ID document? A similarity score from 0 to 100 gives the answer, and your threshold decides the outcome.

Run alone, each one has a hole. Face match alone compares two images, so a fraudster holding a photo of the victim can be matched to the victim's stolen document. Liveness alone confirms a real person is present, but says nothing about who that person is. Together they close both holes: liveness proves the capture is live, face match proves the live capture belongs to the document owner.

Inside a Didit session, the workflow determines which features run. Liveness and face match results appear in the decision payload arrays as liveness_checks[] and face_matches[].

The selfie capture step during a Didit liveness check
The liveness capture is the image face match later compares against the document portrait.

Prerequisites

  • A Didit organization and an application, with an API key from the Business Console. Sandbox API keys skip processing and billing.
  • A workflow containing ID_VERIFICATION, LIVENESS and FACE_MATCH, or two images if you call the standalone endpoints.
  • Images in tiff, jpg, jpeg, png or webp, maximum 5 MB each. The passive liveness endpoint does not accept PDFs. Images are compressed to roughly 0.5 MB before processing, so higher resolution does not improve accuracy.
  • A written threshold policy: what you auto-approve, what you send to manual review, what you decline.
  • For webhooks, an HTTPS endpoint that reads the raw request body and verifies the HMAC-SHA256 signature before parsing JSON.

Step-by-step: run liveness and face match together

  1. Choose the path. Use the session path when a user goes through a hosted flow in your app or on your site. Use the standalone path when your backend already holds two captured images and wants one-shot results. A standalone call consumes one credit per successful 200 response; inside a session you pay per completed check.
  2. Build one workflow with the three features. Add ID_VERIFICATION, LIVENESS and FACE_MATCH in the Business Console or through POST /v3/workflows/. Set face_liveness_method to PASSIVE, ACTIVE_3D or FLASHING. Set face_match_score_decline_threshold (default 30) and, for the session flow, face_match_max_attempts (default 3, range 1 to 3).
  3. Create the session. Call POST https://verification.didit.me/v3/session/ with workflow_id, vendor_data and callback. The response contains the session id and session.url. The sessions API reference is indexed at docs.didit.me/llms.txt.
  4. Send the user to the capture. Open session.url, or mount the Web or Mobile SDK so the capture stays inside your app. The workflow decides which liveness method the user sees.
  5. Fetch the decision. Call GET /v3/session/{sessionId}/decision/ or subscribe to the status.updated webhook. Read the per-feature arrays; a session can hold more than one liveness or face match node.
  6. Or verify liveness directly from your server. If you already have a selfie, send it to the standalone passive liveness endpoint. This is the runnable call from the Didit docs:
    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'
  7. Then compare that same selfie to the document portrait. Reuse the liveness image as user_image and the portrait cut from the ID as ref_image:
    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. Read the arrays, not only the top-level status. Approve only when the liveness check carries no error-severity warning and the face match score is strictly above your threshold. Both conditions belong in the same decision, evaluated once.
  9. Route by warning, not by score alone. A declined liveness check with LIVENESS_FACE_ATTACK is a suspected presentation attack. A duplicate face signal is a policy decision, not an automatic decline. Different warnings deserve different destinations.
  10. Verify the webhook before you trust the payload. Recompute the HMAC-SHA256 signature with your destination secret, accept X-Signature-V2, Reject timestamps when abs(now - X-Timestamp) exceeds 300 seconds, then verify the current or rotation-previous signature in constant time. Details are in the webhooks documentation.

Expected output

The passive liveness endpoint returns the status, the method, a score and the quality of the capture. Blocklist and duplicate screening run on every liveness call, with or without save_api_request:

{ "request_id": "...", "liveness": { "status": "Approved", "method": "PASSIVE", "score": 97.4, "user_image": { "entities": [...], "best_angle": "front" }, "warnings": [], "face_quality": 88, "face_luminance": 71 } }

The face match endpoint returns a similarity score and a status. A score strictly above face_match_score_decline_threshold gives Approved; a score at or below it gives Declined with LOW_FACE_MATCH_SIMILARITY. This endpoint never enrolls faces and never runs blocklist or duplicate screening:

{ "request_id": "...", "face_match": { "status": "Approved", "score": 91.2, "user_image": { "entities": [...] }, "ref_image": { "entities": [...] }, "warnings": [] } }

In the session flow a fixable capture problem does not decline on the first try. The user stays on the step and the SDK surfaces coaching text drawn from feedback_codes:

{ "detail": "Make sure your face matches your document photo, improve lighting and try again.", "error": "LOW_FACE_MATCH_SIMILARITY", "feedback_codes": ["LOW_FACE_MATCH_SIMILARITY"], "attempts_used": 1, "max_attempts": 3 }
The liveness result of a session in the Didit Business Console
The same liveness result in the Business Console, with the score, method and warnings for the session.

Inputs and outputs

Standalone liveness and face match: the fields that matter
FieldWhere it goesType and limitWhat you do with it
user_imageBoth endpointsFile, tiff/jpg/jpeg/png/webp, max 5 MBThe live selfie. Reuse the same file for both calls.
ref_imageFace match onlyFile, same formats and limitThe document portrait or a previously enrolled photo.
face_match_score_decline_thresholdFace match onlyNumber, default 30, 0 to 100Raises or lowers the bar for Approved.
save_api_request, Passive LivenessPassive liveness onlyBoolean, default trueTrue persists the call as an API-type session and enrolls the detected face in your face search index. False is one-shot: nothing is stored and no face is enrolled, but blocklist and duplicate screening still run.
save_api_request, Face MatchFace match onlyBoolean, default trueTrue persists the call as an API-type session with both images. It never enrolls a face and never runs blocklist or duplicate screening. False returns a one-off correlation id you cannot look up later.
vendor_data, Passive LivenessPassive liveness onlyStringYour user id. Prior faces with the same value are excluded from the duplicate index search, so re-running liveness for the same user does not raise DUPLICATED_FACE.
vendor_data, Face MatchFace match onlyStringYour user id, carried on the session for your own lookup. Face match does not search the face index at all.
statusResponseApproved, Declined, In Review, In Progress, Not Started, Abandoned, Kyc ExpiredThe applied outcome after your thresholds.
scoreResponse0 to 100Similarity for face match, liveness confidence for liveness.
warnings[]ResponseRisk codesYour routing key for review, retry, block or approve.

Failure cases and recovery

Every failure below is named in the Didit documentation, so you can write the branch before you go live rather than after the first incident.

Failure, cause and the recovery you should implement
What you seeWhat it meansRecovery
HTTP 403 on either endpointOut of credits, or missing and invalid credentialsTop up or check the x-api-key header. Nothing is processed when the balance cannot cover the call.
HTTP 400Missing user_image or ref_image, file over 5 MB, unsupported extensionValidate the upload client side before the call. Reject PDFs on passive liveness.
Declined with LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCOREA presentation attack is suspected, or the score is at or below the decline threshold (default 30)Do not approve. Route to review or block according to policy.
FACE_IN_BLOCKLIST or POSSIBLE_FACE_IN_BLOCKLISTThe face matches an entry on your own blocklistBlock or send to review. Faces from a session with your own vendor_data are not flagged.
DUPLICATED_FACE or POSSIBLE_DUPLICATED_FACEInformation severity: the face appeared in an earlier approved sessionNever declines on its own. Decide whether a second account on the same face is allowed.
NO_FACE_DETECTED or MULTIPLE_FACES_DETECTEDCapture problem. The multiple-faces signal is warning severity and does not decline by itselfAsk the user to retry with a single, well-framed face.
Declined with LOW_FACE_MATCH_SIMILARITYThe two faces are not the same person, or the capture is poorRetry inside the attempt budget, then apply In Review or Declined.
Declined with NO_REFERENCE_IMAGENo scorable face pair. The call still returns 200, with score null on the default save pathRe-capture the document portrait. Do not read a null score as a mismatch.
HTTP 429Shared write budget of 300 requests per minute per API key exceededBack off and retry. Budget across all POST, PATCH and DELETE calls.

Each 200 response consumes one credit on the endpoint you called: passive liveness is $0.10 and face match is $0.05, on the standalone APIs and inside a workflow. A 403 for insufficient balance happens before any image processing, so a failed billing check costs nothing. Sandbox API keys skip processing and billing entirely and return a static Approved mock payload, which means sandbox calls cannot show you a Declined result; test declines in a live application with small volume.

The docs pricing page notes that some retries are billable, so a generous face_match_max_attempts has a cost. Set it to the number you are willing to pay for, and coach the user well so the first capture is the good one.

Draw the review boundary in writing before launch:

  • Auto-approve when liveness carries no error-severity warning and the face match score is above your threshold, with no blocklist hit.
  • Send to In Review when the score is borderline, when a duplicate face signal fires, or when a quality signal suggests a capture problem the user cannot fix alone.
  • Decline when liveness reports LIVENESS_FACE_ATTACK, or when a blocklist entry is confirmed and your policy says so.
  • Never let a single score decide alone. The score is evidence of similarity; the decision belongs to your policy, applied to the liveness result, the document check and the score together.
A Didit session overview showing the warnings that route a case to review
The session overview for one Didit session in the Business Console.

Worked cost example

Take 10,000 full KYC checks a month at list price. The bundle is $0.33 per check, and it decomposes exactly:

  • ID document: 10,000 multiplied by $0.15 = $1,500.00
  • Passive liveness: 10,000 multiplied by $0.10 = $1,000.00
  • Face match 1:1: 10,000 multiplied by $0.05 = $500.00
  • Device and IP analysis: 10,000 multiplied by $0.03 = $300.00
  • Total: $1,500 + $1,000 + $500 + $300 = $3,300, which equals 10,000 multiplied by $0.33

On the Scale plan the same check is $0.297, so 10,000 checks cost 10,000 multiplied by $0.297 = $2,970. If you move from passive to active liveness, the per-check price goes from $0.33 to $0.38 (active liveness $0.15 replaces passive liveness $0.10, so the check rises by $0.05), and 10,000 checks cost $3,800.

If your backend already holds the images and you only need the two standalone calls, the cost per user is $0.10 for the passive liveness API plus $0.05 for face match, so $0.15 per user and 10,000 multiplied by $0.15 = $1,500 for 10,000 users. There is no monthly minimum on either endpoint; the Free plan gives $10 of credit a month to organizations that sign up with a work email.

3D liveness for compliance, and the separate 1:1 face match

Compliance reviewers ask a sharper question than "does it match". They ask whether the capture could be a spoof, and whether the process is repeatable across customers. That is where the 3D liveness methods matter, and they are a different control from the face comparison that follows. We document three liveness methods: ACTIVE_3D combines a randomised action sequence with dynamic light pattern analysis, FLASHING projects light patterns at over 30 frames per second to build a depth map, and PASSIVE analyses a single frame for artifacts and texture. The docs describe 3D Action & Flash as the highest security option, recommended for banking, healthcare and government use, and passive as standard security for lower-risk flows.

For a compliance file, pair the method with the evidence. Set ACTIVE_3D on high-value onboarding, keep passive liveness on lower-risk steps, run the 1:1 face match after the liveness capture in the same session, store the decision payload and the warnings with the session, and record the threshold you applied and when you changed it. Didit holds SOC 2 Type 2 and ISO/IEC 27001:2022 certification, which is the documentation counterpart to the technical check. The liveness documentation states 99.9% accuracy with a false acceptance rate under 0.1%, and the face match documentation describes the full 1:1 flow. Regulators publish the expectations you are mapping to; the FATF digital identity guidance is the usual starting reference.

AI-enabled customer verification with liveness detection in the UAE

Teams asking about the UAE usually want three things in one flow: an ID document check, liveness detection and a face match, plus a working phone check for local numbers. We support 220+ countries with the verification flow and native SDKs in 54 languages, so a UAE onboarding flow is a workflow configuration, not a custom build. Phone verification codes for the UAE are $0.1025 per SMS code at list price, which is the carrier price plus Didit's $0.02 fee; WhatsApp is $0.0542 per message. All of that is in the public price feed.

For identity documents, NFC chip reading is a $0.15 add-on to a document check and adds a strong assurance layer where the passport supports it. UAE PASS is listed as a coming soon digital ID wallet, so do not build the flow expecting it today. Local licensing and data rules are set by UAE authorities, and your compliance team owns that reading; the check itself is the part Didit runs.

Sources

Next step: open the sandbox at business.didit.me, create an application with a sandbox API key, and run the two curl calls above against your own test images. No sales call, and nothing is charged until a check completes with a result.

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 the difference between liveness detection and face match?

Liveness detection confirms that a real, live person is in front of the camera and not a printed photo, a screen replay, a mask or a deepfake. Face match compares two faces 1:1 and returns a similarity score, usually the live selfie against the portrait on an ID document. Liveness proves presence; face match proves identity linkage.

Do I still need face match if I already run liveness detection?

Yes. Liveness tells you a real person is present but not who that person is, so a live fraudster holding someone else's document would still pass. Face match closes that gap by comparing the live capture to the document portrait. Run both in the same session so the two results describe the same capture.

What face match score should I set as the threshold?

Start from the documented default. The standalone face match endpoint approves when the score is strictly above face_match_score_decline_threshold, which defaults to 30, and declines at or below it. Raise the threshold for high-value onboarding and send borderline scores to manual review rather than auto-declining them.

How much do liveness and face match cost per user on Didit?

Inside a full KYC check, passive liveness is $0.10 and face match is $0.05, and the whole check with ID document and device and IP analysis is $0.33. Using the standalone server-to-server APIs, passive liveness is $0.10 and face match is $0.05, so $0.15 per user. Active liveness is $0.15.

Can I test liveness and face match without paying?

Yes. Sandbox testing is free and unlimited, and sandbox API keys skip processing and billing. One caveat: the standalone endpoints return a static Approved mock payload in sandbox, so you cannot see a Declined result there. Test decline paths in a live application at low volume.

How many retries does a user get on a failed face match?

In a session, face_match_max_attempts controls the total submissions and defaults to 3, which is one attempt plus two retries; the range is 1 to 3. A fixable capture problem keeps the user on the step with coaching feedback and does not decline immediately. Once the budget is used, the computed status applies. The standalone endpoint has no retry budget at all.

What does LOW_FACE_MATCH_SIMILARITY mean and what should I do?

It means the similarity score is at or below your decline threshold, so the two faces do not match well enough to approve. Either the user is a different person or the capture was poor. Retry within the attempt budget with lighting guidance, then send the case to review or decline it according to your policy.

Does face match enroll faces into my face search index?

No. The face match endpoint never enrolls faces and never runs blocklist or duplicate screening. Enrolment and duplicate screening happen through the passive liveness endpoint, which runs that screening on every call and enrolls the detected face when save_api_request is true.

Can I run liveness and face match for UAE customers?

Yes. We cover 220+ countries and the verification flow runs in 54 languages. A UAE phone verification code costs $0.1025 per SMS at list price, and NFC passport chip reading is a $0.15 add-on. UAE PASS is listed as coming soon, so plan the flow around document checks and liveness today.

What is 3D face matching and is it accepted for compliance?

The phrase is loose, and it is worth splitting it: the 3D part is a liveness method, and face match is a separate 1:1 comparison. 3D liveness is either an action sequence with dynamic light patterns or flashing light patterns above 30 frames per second; the face match that follows compares the live capture to the document portrait. The docs describe 3D Action & Flash as the highest-security option and 3D Flash as high security. Keep the decision payload and the threshold you applied as the audit evidence.

What happens if my organization runs out of credits mid-flow?

The endpoint returns HTTP 403 before any image processing, so no partial result is produced and nothing is billed for that call. Top-ups on Free, Growth and Scale range from $50 to $20,000, and auto top-up adds your chosen amount whenever the balance runs low. Turn auto top-up on if live checks must not stop.

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.