Skip to main content

Passive Liveness Detection in 9 Steps: Stop Deepfakes (2026)

Passive liveness detects deepfakes, printed photos and screen replays from one selfie. We charge $0.10 per Passive Liveness check, in a session or on the standalone API, with a free sandbox.

Passive Liveness Detection in 9 Steps: Stop Deepfakes (2026)

Contents

In this guide

Jump to the part you need.

Use our passive liveness check when you need to catch a printed photo, a screen replay, a mask or a deepfake from one selfie, with no head turn and no blinking on cue. It fits sign-up, account recovery and step-up checks before a payment. Passive Liveness costs $0.10 per check. The caveat: passive is our standard security tier, so put 3D Flash or 3D Action in front of high-value accounts.

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

Passive liveness detection at a glance
ItemDetail
What it answersIs a real person in front of the camera, or a print, a screen, a mask or a deepfake?
InputOne front-facing face image: jpg, jpeg, png, tiff or webp, up to 5 MB, no PDFs
Outputstatus, score from 0 to 100, warnings[], face_quality, face_luminance
Price in a session$0.10 per check
Price, standalone API$0.10 per call, billed as one Passive Liveness credit per 200 response
SpeedSub-2-second p99 inference
Accuracy99.9%, with a false acceptance rate under 0.1%
Default decline thresholdface_liveness_score_decline_threshold = 30
SandboxFree on every plan; a sandbox key returns a static Approved mock and spends no credit
Best forSign-up, account recovery and step-up checks before a payment

Start free in the sandbox at business.didit.me, with no sales call. If you build with an AI assistant, connect Didit to it through our MCP server.

What passive liveness detection is

Passive liveness asks one question: is there a live person in front of the camera? It answers from a single frame. The user takes a selfie, nothing else. No motion or user interaction is required. That matters for two audiences at once. Your users get a one-tap step at sign-up, and fraud teams get a check that a replayed video or a printed photo has to survive.

Our passive model runs a convolutional neural network over the largest face it detects in the image. It looks at artifacts, texture patterns and other subtle indicators that separate a real face from a spoof, including the anomalies that printed photos and digital screens leave behind. The result is a liveness score from 0 to 100, a status, and a list of named warnings you can branch on. Passive Liveness is one component of the $0.33 full ID check, next to ID document verification, face match 1:1 and device and IP analysis.

A standalone passive check also suits checks you run later: an account recovery, a step-up before a high-value payment, a second look at a suspicious session. You send the image you already hold and read the result in the response, without asking the person for a new interaction pattern.

The selfie step presented to the user before the camera opens
The selfie step in a Didit flow. Passive liveness needs one frame, so the user is not asked to follow an action prompt.

Two ways to run the check

  • Inside a session. The user goes through a hosted Didit flow, or your app mounts the SDK, and the workflow's liveness node runs. Set face_liveness_method to "PASSIVE", "ACTIVE_3D" or "FLASHING" in the Business Console or with POST /v3/workflows/, then read the liveness_checks[] array from the decision.
  • Standalone API. You already hold the selfie and want one server-to-server answer. POST /v3/passive-liveness/ returns the liveness object in the response and the user never opens a session URL; with save_api_request set to true the call is still persisted as an API-type session you can fetch later. Passive only.

Recommended split: use the session for onboarding, where the user is present and you control the flow, and call the standalone endpoint for later step-ups when your backend already holds the image. Our liveness documentation covers both modes, and the pricing page lists the line items separately.

Choosing between passive, 3D Flash and 3D Action

Liveness methods and where each one fits
MethodWhat the user doesSecurity tierBest for
Passive LivenessTakes a selfie. Single-frame analysis, no interaction.StandardSign-up, low-risk step-ups, markets where drop-off is expensive
3D FlashHolds still while a light pattern is projected and read at over 30 frames per second to build a depth map.HighFinancial services, account access, identity verification
3D Action and FlashPerforms one randomized action while the light pattern is analyzed.HighestBanking, healthcare, government applications

All three methods report through the same decision surface: one entry per liveness node in liveness_checks[] on the decision payload, so switching method changes the workflow setting, not the field you read. Prices for each module are on didit.me/pricing.

Prerequisites

  • A Didit organization and application, with an API key from the Business Console.
  • A server that can send multipart form data, or a workflow you can publish in the console if you prefer the hosted flow.
  • A captured selfie: one face, front-facing, reasonably lit, jpg, jpeg, png, tiff or webp, at most 5 MB. PDFs are rejected.
  • Credit on a live key. Sandbox keys skip processing and billing, so they cost nothing while you build.
  • A written policy for three outcomes: pass, resubmit once, or send to a human reviewer.

How to add passive liveness detection in 9 steps

  1. Create the application and copy the API key. Sandbox and live keys are separate; start with the sandbox key so every call returns a static Approved mock and no credit is spent.
  2. Pick the route. Use a session when the user is present and you control the flow. Use the standalone API when your backend already has the image.
  3. For a session, set the liveness method, then create the session. Set face_liveness_method to "PASSIVE" in the workflow, create it with POST /v3/session/ using workflow_id, vendor_data and callback, and open session.url for the user or mount the SDK.
  4. For the standalone check, send the selfie. One POST, multipart form data, API key in the x-api-key header. vendor_data is your own user identifier; reuse the same value for the same person so a retry does not look like a duplicate.
    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'
  5. Read the score and the status together. status comes back as Approved, Declined or In Review. score runs from 0 to 100 and the check declines at or below face_liveness_score_decline_threshold, which defaults to 30.
  6. Branch on the warnings, not only on the status. NO_FACE_DETECTED and MULTIPLE_FACES_DETECTED mean a bad capture, so ask for one retry. LIVENESS_FACE_ATTACK and LOW_LIVENESS_SCORE decline the check and must not be approved. FACE_IN_BLOCKLIST is a block. DUPLICATED_FACE is information, never a decline, so your policy decides whether it goes to review.
  7. Keep the identifier. Store request_id from the standalone response and fetch the full record with GET /v3/session/{sessionId}/decision/ whenever you need the complete decision.
  8. Subscribe to the webhook. Register status.updated on a destination, read the raw body first, verify X-Signature-V2 with your destination secret, reject a timestamp older than 300 seconds, then process the event. Webhook statuses are exact, case-sensitive strings.
  9. Test, tune, then go live. Run real traffic shapes in the sandbox, tune the threshold against your own decline rate, then swap in the live key. Nothing else in the call changes. If you want a coding agent to do the wiring, hand it the integration prompt.
Camera view while the selfie is being captured
Capture inside the hosted flow. The standalone API takes the same kind of image if your app already captures one.

Expected output

The standalone call returns the request_id and a liveness object. The fields are these, with the values your capture and your thresholds produce:

{
  "request_id": "uuid",
  "liveness": {
    "status": "Approved | Declined | In Review",
    "method": "PASSIVE",
    "score": 0,
    "user_image": { "entities": [...], "best_angle": "..." },
    "warnings": [],
    "face_quality": 0,
    "face_luminance": 0
  }
}

score, face_quality and face_luminance are 0 to 100, and the last two are nullable, so treat a missing value as unknown rather than as a failure. Inside a workflow the same object appears as one entry in liveness_checks[] on the decision payload, one entry per liveness node. The canonical schema is in the data models reference.

A liveness result shown on a session in the Didit Business Console
A liveness result inside a session in the Business Console: status, score and warnings sit next to the rest of the decision.

Failure cases and how to recover

What each failure means and what to do next
SignalWhat happenedRecovery
HTTP 403Missing or invalid API key, or the balance cannot cover the call. This API never returns 401.Check the API key and available credit, then top up if the balance is insufficient. A 403 on balance arrives before any image processing.
HTTP 400Missing user_image, a file over 5 MB, an unsupported extension, or a PDF.Convert to jpeg or png and resize. Images are compressed to about 0.5 MB before processing anyway.
HTTP 429The shared write budget of 300 requests per minute per API key is exhausted.Slow down and retry after the window. The budget is shared across all POST, PATCH and DELETE endpoints.
NO_FACE_DETECTEDThe liveness model found no face in the frame.Ask for one new selfie, single face, better light.
MULTIPLE_FACES_DETECTEDWarning severity. It does not decline on its own.Re-capture with one person in frame, or route to review if your policy says so.
LOW_LIVENESS_SCOREThe score sat at or below the decline threshold.Do not approve. Allow one retry, then send to a person.
LIVENESS_FACE_ATTACKThe model detected a presentation attack.Decline the session and log it. Apply your retry policy and do not approve a session flagged with LIVENESS_FACE_ATTACK.
FACE_IN_BLOCKLIST, POSSIBLE_FACE_IN_BLOCKLISTThe face matches an entry on your face blocklist.Block per your policy. Faces from your own vendor_data are excluded from this screening.
DUPLICATED_FACE, POSSIBLE_DUPLICATED_FACEInformation severity: the same face already appeared in another approved session. Never declines.Route to review when the account is a duplicate risk.

The full risk catalogue with every code is in the liveness warnings documentation.

Inputs and outputs

Standalone Passive Liveness API fields
FieldDirectionNotes
user_imageInput, requiredBinary face image, one subject, 5 MB maximum
save_api_requestInputDefaults to true: the call is persisted, the image and face crop are stored, and the face is enrolled in your face search index. False makes it one-shot.
vendor_dataInputYour internal user id. Prior faces with the same value are excluded from duplicate and blocklist search.
request_idOutputThe session id you use with GET /v3/session/{sessionId}/decision/
liveness.statusOutputApproved, Declined or In Review
liveness.scoreOutput0 to 100, compared against your decline threshold
liveness.warnings[]OutputNamed signals with severity: error, warning or information
face_quality, face_luminanceOutput0 to 100 and nullable, describing capture quality

What you pay for and where review begins

  • Each 200 response consumes one Passive Liveness credit, paid from your plan credit first and then from top-ups. A shortfall returns 403 before the image is touched, so a failed billing call costs nothing. You pay for a check only when it finishes with a result.
  • Inside a session the $0.10 step is billed as part of that check; the standalone endpoint is its own per-call line. Both are read from the same live price feed.
  • Sandbox keys skip processing and billing entirely, and the sandbox is free on every plan.
  • Blocklist and duplicate screening run on every call, with or without save_api_request.
  • A status of In Review is the boundary: automated checks flagged something a person has to settle. A reviewer approves, declines or requests a resubmission in the console, and the session moves through the states documented in verification statuses.
  • Threshold tuning is your call, not ours. face_liveness_score_decline_threshold starts at 30. Raising it catches more spoofs and declines more real users, and only your traffic can tell you where that line belongs.

Worked cost example

Take 10,000 new users a month, each going through a full ID check, plus 2,000 step-up selfie checks for high-value actions through the standalone API.

  • Full ID checks at list price: 10,000 x $0.33 = $3,300.00. The passive liveness part inside each check is 10,000 x $0.10 = $1,000.00, already included in the $0.33 and not added again.
  • Standalone passive liveness calls at list price: 2,000 x $0.10 = $200.00.
  • Monthly total at list price: $3,300.00 + $200.00 = $3,500.00.
  • On the Scale plan every Didit price is 10% lower, so the full ID checks cost 10,000 x $0.297 = $2,970.00 and the standalone calls cost 2,000 x $0.09 = $180.00, for a monthly total of $2,970.00 + $180.00 = $3,150.00.

Read the exact numbers from the live feed at pricing.json before you commit to a budget, and see the pricing documentation for how credit and top-ups are consumed.

Sources

Next step: create a free sandbox application at business.didit.me, paste the curl call above with your sandbox key, and see the response before you talk to anyone. No sales call, no credit spent.

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

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Frequently asked questions

What is passive liveness detection?

Passive liveness detection decides whether a real person is in front of the camera by analyzing one image, with no blinking, head turn or spoken phrase required. We evaluate the largest detected face with a biometric model and return a liveness score from 0 to 100 plus named warnings. Passive Liveness costs $0.10 per check, in a verification session or on the standalone API.

How do you detect deepfakes and advanced presentation attacks?

Our passive model reads a single frame for artifacts and texture patterns associated with presentation attacks such as printed photos and screen replays. The result comes back as a score with named signals, so an attack surfaces as LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE instead of a silent pass. When the account is worth attacking, run 3D Flash or 3D Action as well: the projected light pattern builds a depth map that a flat screen cannot reproduce.

Is passive liveness enough for high-risk onboarding?

Passive liveness is our standard security tier: fast, no user interaction, and priced at $0.10 per check. For banking, healthcare or government flows, add 3D Flash (high) or 3D Action and Flash (highest) in the same workflow, since a randomized action plus a light pattern is harder to spoof than a still frame. One way to split it, as an implementation recommendation rather than a documented Didit behaviour: passive on sign-up, then a stronger method when your own risk signals fire.

How much does passive liveness detection cost?

$0.10 per check, in a verification session or on the standalone Passive Liveness API, paid from prepaid credit. Each 200 response consumes one Passive Liveness credit, taken from your plan credit first and then from top-ups. It is one of the four parts of the $0.33 full ID check, next to ID document verification at $0.15, face match at $0.05 and device and IP analysis at $0.03. The sandbox is free on every plan and a sandbox key spends no credit.

How is Passive Liveness billed in a session versus the standalone API?

Inside a verification session the check runs as one step of that session and is paid when the step finishes with a result. On the standalone endpoint each 200 response consumes one Passive Liveness credit, taken from your plan credit first and then from top-ups. A shortfall returns 403 before any image processing, and sandbox keys skip billing entirely.

What image should I send to the passive liveness API?

One front-facing face image as jpg, jpeg, png, tiff or webp, up to 5 MB, with a single person in the frame. PDFs are not accepted, and images are compressed to about 0.5 MB before processing, so a higher resolution does not buy accuracy. Good light matters more than megapixels: check face_quality and face_luminance in the response.

What does the liveness score mean and what threshold should I use?

The score runs from 0 to 100, and the check is declined when it sits at or below face_liveness_score_decline_threshold, which defaults to 30. Raising the threshold blocks more spoofs and declines more genuine users, so tune it against your own traffic in the sandbox before going live. The score is one input; the warnings carry the reason.

What happens when the check comes back Declined?

A decline with LIVENESS_FACE_ATTACK means the model detected a presentation attack, and that session should not be approved. A decline with LOW_LIVENESS_SCORE is often a poor capture, so allow one retry and then send it to a person. A face matching your own blocklist returns FACE_IN_BLOCKLIST or POSSIBLE_FACE_IN_BLOCKLIST.

Can I run passive liveness without a full KYC session?

Yes. POST https://verification.didit.me/v3/passive-liveness/ takes a selfie server to server and returns the result in one call, which suits a step-up check before a payment or a password reset. The call is billed at $0.10 and, with save_api_request set to false, nothing is stored and the face is not enrolled in your face search index. Blocklist and duplicate screening still run.

Does Didit store the selfie I send?

With save_api_request at its default of true, the call is saved as an API session, the reference image and face crop are stored, and the face is enrolled in your face search index for later duplicate and blocklist checks. Set it to false for a one-shot call that stores nothing. Retention follows your plan, from one year on Free up to ten years on Scale.

How fast is the passive liveness check?

Our inference runs at sub-2-second p99, and the standalone endpoint returns the liveness object in its own HTTP response, so you read the result from that call. The shared write budget is 300 requests per minute per API key across all POST, PATCH and DELETE endpoints, and exceeding it returns HTTP 429. Pace calls inside that budget.

Which certifications cover Didit liveness detection?

We hold iBeta Level 1 PAD for presentation attack detection, SOC 2 Type 2 and ISO/IEC 27001:2022, certificate ES144068. We publish 99.9% accuracy with a false acceptance rate under 0.1% for liveness. 4,000+ companies run Didit in production across 220+ countries.

What is the difference between passive and active liveness?

Active liveness asks the user to do something, such as a randomized action or a light-pattern challenge, then checks the response. Passive liveness asks for nothing and analyzes the frame it receives. Active is harder to spoof and costs $0.15 per check; passive is faster and costs $0.10 per check, and both return results through the same decision payload.

Can a photo held up to the camera or a replayed video get through?

That is the attack the check exists for: printed photos, screen replays, masks and deepfakes are presentation attacks, and the model returns LIVENESS_FACE_ATTACK when it detects one. Printed photos, screen replays, masks and deepfakes are presentation attacks the model is designed to detect. It is a probability rather than a guarantee, so pair the score with your warnings policy and your review rules.

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.