Passive Liveness API: How to Integrate It (2026)
Didit's passive liveness API takes one selfie at POST /v3/passive-liveness/ and returns a liveness score plus warnings. It costs $0.10 per call at list price ($0.096 on Growth, $0.09 on Scale) and the sandbox is free and.

Contents
In this guide
Jump to the part you need.
Didit's passive liveness API takes one selfie and returns a liveness verdict from a single POST to /v3/passive-liveness/. It fits teams that already capture a selfie and want a presentation attack and deepfake check without asking the user to move. The call costs $0.10 at list price. The caveat: passive liveness is Didit's single-image method at the standard security tier, so high-risk flows should run 3D Flash or 3D Action liveness instead.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Item | Detail |
|---|---|
| Endpoint | POST https://verification.didit.me/v3/passive-liveness/ |
| Authentication | x-api-key header, key scoped to one application |
| Request | multipart/form-data with one image in user_image |
| Price | $0.10 per completed call at list price ($0.096 on Growth, $0.09 on Scale) |
| Inside a full ID check | The passive liveness step is the same $0.10 of the $0.33 full ID check, next to ID document ($0.15), face match 1:1 ($0.05) and device and IP analysis ($0.03) |
| Latency | sub-2-second p99 |
| Sandbox | Free and unlimited on every plan, returns a static Approved mock, no credit used |
| Best for | Teams that already capture a selfie and want a single-image, server-side attack check |
Start free in the sandbox at business.didit.me, no sales call. Sandbox keys return a mock Approved payload and consume no credit. Developers who want an AI assistant to drive the integration can connect Didit through the Didit MCP server, and the liveness docs cover the three methods side by side. Every list price on this page is on didit.me/pricing.
What the passive liveness API answers
Passive liveness answers one question about one image: is the face in this selfie a real person in front of a camera, or a printed photo, a screen replay, a mask or a deepfake? You send the image. There is no video, no motion prompt and no head turn. The model evaluates the largest detected face and returns a status plus a score from 0 to 100.
Didit documents three liveness methods. Passive liveness analyses a single frame and returns the standard security tier, which suits lower-risk scenarios. 3D Flash projects light patterns and reads the reflections to build a depth map without asking the user to act. 3D Action combines a randomized action with the light pattern and is the highest security tier. All three land in the same decision payload as liveness_checks[], so changing method does not change how you read the result.
The standalone API is one module, not a whole check. It does not read an ID document (ID Verification, $0.15), it does not compare the selfie to a document portrait (Face Match 1:1, $0.05), and it does not screen sanctions and PEP lists (AML screening, $0.20). A full ID check on Didit bundles the document, passive liveness, face match and device and IP analysis for $0.33: 0.15 + 0.10 + 0.05 + 0.03. We run these checks for 4,000+ companies across 220+ countries.
Prerequisites
- A Didit organization and an application. API keys are scoped to an application, and each application gets a primary key with full access when it is created.
- An API key from Developers, then API keys in the Business Console. New keys start with
sk_live_for a live application orsk_test_for a sandbox application. The programmatic route in the authentication docs returns both keys from the register and verify-email calls, with no console click. - Credit on the live key, or a sandbox key while you build. Sandbox calls skip processing and billing, and sandbox testing is free and unlimited.
- A capture step in your own app that produces a single front-facing image, since this endpoint has no hosted UI.
- Optional: a
vendor_datavalue per user, so re-runs for the same user are excluded from the blocklist and duplicate index search.
Call the API in seven steps

Pick the key. Use the
sk_test_key while you build and thesk_live_key only when the organization has credit. Treat either key as a server-side secret and never ship it to a browser or a mobile bundle.Capture one front-facing image. Allowed extensions are
tiff,jpg,jpeg,pngandwebp, with a 5 MB maximum upload. Didit compresses the file to about 0.5 MB before processing, so a very high resolution does not improve accuracy. The frame should contain a single subject, because the largest detected face is the one evaluated.Send the POST. This is the documented curl call, with your key and your file path:
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'The endpoint also accepts an
Idempotency-Keyheader if you need to retry a request without sending it twice.Read the status, the score and the warnings. A
200carries alivenessobject.statusisApprovedorDeclined,scoreruns 0 to 100, andwarnings[]tells you why a call was declined.Decide on persistence.
save_api_requestdefaults totrue, which stores the call as an API-type session, keeps the reference image and face crop, and enrolls the face in your face search index. Set it tofalsefor a one-shot call: nothing is stored and the face is not enrolled. Blocklist and duplicate screening run on every call either way.Fetch the decision or wait for the webhook. With
save_api_requeston, use the returnedrequest_idonGET /v3/session/{sessionId}/decision/, or subscribe to thestatus.updatedwebhook. The liveness report appears asliveness_checks[], one entry per liveness node.Map every warning to your own policy. Didit returns the signals; the approve, block or review decision is yours.
const { status, score, warnings } = response.liveness; if (status === "Declined") { const risks = warnings .filter((w) => w.log_type === "error") .map((w) => w.risk); // LIVENESS_FACE_ATTACK, LOW_LIVENESS_SCORE, NO_FACE_DETECTED, FACE_IN_BLOCKLIST }
The response you get back
Field names below are exactly as documented. Values are illustrative, and the warning object is trimmed to the fields you branch on.
{
"request_id": "6c1f0a2e-5b0f-4f0e-9f0e-2d7b8c1a4e11",
"liveness": {
"status": "Approved",
"method": "PASSIVE",
"score": 97.4,
"warnings": [],
"face_quality": 88,
"face_luminance": 71
}
}
A declined call returns the same envelope with status set to Declined and at least one error severity warning in the array:
{
"request_id": "b2d4c8a0-1f6e-4a51-9a3c-6f8e2b1d7c90",
"liveness": {
"status": "Declined",
"method": "PASSIVE",
"score": 12.0,
"warnings": [
{ "risk": "LIVENESS_FACE_ATTACK", "log_type": "error" }
],
"face_quality": 74,
"face_luminance": 65
}
}

save_api_request is true the call becomes a session, and this panel shows the liveness result in the console.Inputs and outputs
| Field | Required | Notes |
|---|---|---|
user_image | Yes | Binary image. tiff, jpg, jpeg, png or webp, 5 MB maximum, compressed to about 0.5 MB before processing |
save_api_request | No, defaults to true | true persists an API-type session, stores the image and crop and enrolls the face. false is one-shot |
vendor_data | No | Your user identifier. Faces already stored under the same vendor_data are excluded from the blocklist and duplicate index search |
Idempotency-Key | No | Header. Reusing a key conflicts with the request already sent and returns 409 |
| Field | What it tells you |
|---|---|
request_id | The stored call. Use it on GET /v3/session/{sessionId}/decision/ when save_api_request is true |
liveness.status | Approved, Declined, In Review, Not Started, In Progress, Abandoned or Kyc Expired |
liveness.method | PASSIVE on this endpoint |
liveness.score | Liveness score, 0 to 100 |
liveness.warnings[] | Objects carrying feature, risk, log_type, additional_data, short and long descriptions and node_id |
liveness.face_quality, liveness.face_luminance | 0 to 100 and nullable. They describe the capture, not the person |
liveness.user_image | The detected entities and the best angle of the submitted image |
Failure cases and how to recover
| What happened | Response | Recovery |
|---|---|---|
| Missing or invalid key | 403 with the detail "You do not have permission to perform this action." This endpoint never returns 401 | Check the x-api-key header and confirm the key belongs to the application you expect |
| Balance cannot cover the call | 403, returned before any image processing | Top up, or keep testing on the sandbox key |
Missing user_image, unsupported extension, file over 5 MB | 400 | Re-encode as jpg or png under 5 MB and resend |
| Too many requests | 429 with a wait field in seconds | Back off and retry. The write budget is 300 requests a minute per key, shared across POST, PATCH and DELETE |
| Attack suspected | 200 with status Declined and LIVENESS_FACE_ATTACK | Do not approve. Ask for a new capture or move the user to active liveness |
| Score at or below the threshold | 200 with LOW_LIVENESS_SCORE. The decline threshold is 30 by default | Retry with better light and a tighter frame, then escalate |
| No face, or several faces | 200 with NO_FACE_DETECTED (declines) or MULTIPLE_FACES_DETECTED (warning severity, does not decline) | Ask the user to retry with one well-framed face |
| Face on your blocklist | 200 with FACE_IN_BLOCKLIST or POSSIBLE_FACE_IN_BLOCKLIST | Block, or route to manual review under your own policy |
| Same face seen before | 200 with DUPLICATED_FACE or POSSIBLE_DUPLICATED_FACE, information severity | These never decline. Decide in your own policy |
| Didit-side error | 500 or 503 | Retry with backoff, and contact support if it repeats |
The full risk catalogue for liveness lives at warnings and liveness, the status and warning object schemas are on data models, and the status code reference is API errors.
Standalone API or liveness inside a session
There are two documented routes and each is billed as its own line. The standalone route is the one on this page: you already have the image, you send it server to server, and you get a verdict back, at $0.10 per call. The session route is for when the same user also has to pass an ID document step or another node in one flow: you set face_liveness_method to PASSIVE, ACTIVE_3D or FLASHING in the workflow, create a session with POST /v3/session/, open session.url or mount the SDK, then read liveness_checks[] from the decision. The passive liveness step inside a full ID check is the same $0.10, and the whole check totals $0.33.
Pick the standalone route when you own the capture UI and only need the attack check. Pick the session route when you need the hosted flow, the document, the face match and the device and IP signals in one decision. The integration prompt covers both routes in one page you can hand to a coding agent.
What you pay for, and where review starts
Every 200 response consumes one passive liveness credit, at $0.10 at list price. A Declined result arrives as a 200, so it bills. Refused requests never produced a result, and the docs bill 200 responses only. Sandbox keys skip processing and billing entirely: after request validation, which still returns 400 for a malformed request, the endpoint returns a static Approved mock payload, no session is persisted and no credit is used. Sandbox testing is free and unlimited on every plan.
The review boundary is the status and the warnings array. Didit tells you whether a face passed, what the score was and which risk fired. Your policy decides what happens to FACE_IN_BLOCKLIST, POSSIBLE_FACE_IN_BLOCKLIST and the duplicate signals, and whether a LOW_LIVENESS_SCORE gets a second capture or a manual review. Nothing else on this route is a paid step: the API call is the whole charge.

Worked cost example
Take a consumer app that runs 100,000 standalone passive liveness calls in a month and no other check. The arithmetic uses published unit prices only.
- List price: 100,000 x $0.10 = $10,000.00
- Free plan: $10,000.00 of usage, of which $10.00 is the monthly credit for an organization that signed up with a work email, so $9,990.00 is drawn from top-ups. The plan fee is $0.
- Growth: 4% off gives $0.10 x 0.96 = $0.096 per call. 100,000 x $0.096 = $9,600.00. The $115.00 monthly credit covers the first $115.00, so top-ups cover $9,485.00. Month total: $99.00 + $9,485.00 = $9,584.00.
- Scale: 10% off gives $0.09 per call. 100,000 x $0.09 = $9,000.00. The $350.00 monthly credit covers the first $350.00, so top-ups cover $8,650.00. Month total: $299.00 + $8,650.00 = $8,949.00.
Scale is the cheapest of the three at this volume. For contrast, 100,000 full ID checks at $0.33 each would be $33,000.00, because each of those carries a document check, a face match and device and IP analysis on top of liveness. Plan credit lands monthly and does not roll over; top-ups last 12 months. All of this is testable for free first, because sandbox testing is free and unlimited. The pricing docs list the billing rules and didit.me/pricing has the estimator.
Sources
- Didit docs: Passive Liveness API, deepfake detection, read November 26, 2026
- Didit docs: Liveness detection overview and integration prompt, read November 26, 2026
- Didit docs: Liveness warning catalogue, read November 26, 2026
- Didit docs: data models, status enum and warning object, read November 26, 2026
- Didit docs: API authentication and key formats, read November 26, 2026
- Didit docs: API errors, status codes and retries, read November 26, 2026
- Didit docs: rate limiting and 429 backoff, read November 26, 2026
- Didit docs: full integration prompt, read November 26, 2026
- Didit docs: pricing, plans and billing rules, read November 26, 2026
- Didit pricing page and pricing as JSON, read November 26, 2026
- Didit MCP server setup, read November 26, 2026
The quickest way to check any of this is the sandbox. Create an application at business.didit.me, copy the sk_test_ key and send the curl call above. Sandbox calls return a mock Approved payload and cost nothing, and sandbox testing is free and unlimited, so you can wire capture, parsing and your warning policy before you spend a credit. No sales call.
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
How much does the Didit passive liveness API cost?
$0.10 per completed call at list price, on the passive liveness line in Didit's price book. Growth takes 4% off every Didit price and Scale takes 10% off, so the call is $0.096 on Growth and $0.09 on Scale. The passive liveness step inside a full ID check is the same $0.10, and the full check totals $0.33.
What is the difference between passive and active liveness?
Passive liveness decides from a single image, so the user does nothing beyond taking a selfie. Active liveness asks the user to perform an action such as blinking or nodding, and Didit's 3D Action method also projects light patterns to read facial depth. Passive liveness sits at Didit's standard security tier, and the 3D methods sit at the higher tiers for higher-risk flows.
Can a photo or a deepfake pass the Didit passive liveness check?
The model is trained to flag printed photos, screen replays, masks and deepfakes, and when it detects a presentation attack it returns status Declined with the warning LIVENESS_FACE_ATTACK. Didit reports 99.9% liveness accuracy with a false acceptance rate under 0.1% and holds iBeta Level 1 PAD. No single-frame method is impossible to spoof, so high-risk flows should use 3D Flash or 3D Action.
What image should I send to /v3/passive-liveness/?
One front-facing face in tiff, jpg, jpeg, png or webp, no larger than 5 MB. Didit compresses the file to about 0.5 MB before processing, so very high resolution does not improve accuracy. If several faces are in the frame the largest one is evaluated and the call raises MULTIPLE_FACES_DETECTED, which is warning severity and does not decline the result.
What does a Declined status mean?
The endpoint returns Declined when any error severity warning fires: NO_FACE_DETECTED, LOW_LIVENESS_SCORE (a score at or below the decline threshold, 30 by default), LIVENESS_FACE_ATTACK, FACE_IN_BLOCKLIST or POSSIBLE_FACE_IN_BLOCKLIST. A declined result is an answer about the image, not an error in your request. Do not approve it; ask for a new capture or escalate the user to active liveness.
Does a declined call still cost a credit?
Yes. Each 200 response consumes one passive liveness credit, and a declined result arrives as a 200. Requests refused with 400, 403 or 429 produced no result, and the docs bill 200 responses only. That is why the sandbox matters while you are tuning capture quality.
Does the sandbox cost anything?
Nothing. Sandbox testing is free and unlimited on every plan. Sandbox keys skip all processing and billing: after request validation, which still returns 400 for a malformed request, the endpoint returns a static Approved mock payload, no session is persisted and no credits are used.
How fast is the API and is there a rate limit?
Didit publishes sub-2-second p99 inference, and this endpoint processes one image per call. Throughput is bounded by a shared write budget of 300 requests a minute per API key across all POST, PATCH and DELETE endpoints. Above that budget the API answers 429 with a wait value, and you should back off before retrying.
What does save_api_request do?
It defaults to true, which persists the call as an API-type session, stores the reference image and face crop, and enrolls the detected face in your face search index so later duplicate checks and face searches can match it. Set it to false for a one-shot call that stores nothing and does not enroll the face. Blocklist and duplicate screening run on every call either way.
Do I need a workflow or a session to use the passive liveness API?
No. The standalone endpoint is server to server: you send an image and get a verdict back. Use the session flow when the same user must also pass an ID document check or another node in one workflow, or when you want the hosted UI and the liveness_checks[] array on the decision payload.
Which certifications cover Didit's liveness detection?
Didit holds SOC 2 Type 2 and ISO/IEC 27001:2022 certification, and iBeta Level 1 PAD for presentation attack detection. The liveness documentation states 99.9% accuracy with a false acceptance rate under 0.1%. Those are Didit's published numbers, and you should test them against your own capture conditions before you rely on them.
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


