AI Document Verification: How to Add It in 2026
Send a document image to POST /v3/id-verification/ and read id_verification.status and warnings. $0.20 per standalone call, $0.15 inside a workflow. In Review requires manual review;

Contents
In this guide
Jump to the part you need.
AI document verification reads an identity document, checks it for fraud and returns a decision you can act on. It fits teams that receive document images server to server, and teams that capture a document inside an onboarding flow. We charge $0.15 per document check inside a workflow and $0.20 through the standalone API. The caveat: In Review requires manual review; on the standalone API, it can mean document liveness was not computed. You still need a review queue.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Item | Detail |
|---|---|
| Decision you get | Approved, Declined or In Review, plus a warnings list that explains every issue found |
| Document coverage | 14,000+ document types from 220+ countries and territories |
| Standalone API price | $0.20 per successful call, charged once per 200 response (ID verification API line) |
| Price inside a workflow | $0.15 per document check |
| Full ID check (KYC) | $0.33 = ID $0.15 + passive liveness $0.10 + face match $0.05 + device and IP $0.03 |
| Latency | Sub-2-second p99 |
| Free testing | The sandbox is free and unlimited on every plan; $10 of credit a month for organizations that sign up with a work email |
| Adjacent paid steps | NFC chip reading $0.15, Document AI $0.20 per document, Database Validation priced per country, AML screening $0.20 |
Start free in the sandbox at business.didit.me, with no sales call. Developers who want an assistant to run checks can connect us through the MCP server. The product page with every method is ID Verification, and every list price is on didit.me/pricing.

What AI document verification and AI document validation each prove
The two words get used interchangeably, and they answer different questions. Validation asks whether the data on the document is internally consistent: do the check digits compute, do the dates make sense, does the machine readable zone agree with the printed text. Verification asks whether the document is genuine and belongs to the person holding it.
We run both in one call. The standalone endpoint is POST /v3/id-verification/. You send the front image and, for two-sided documents, the back image. We classify the document automatically, so you never declare the country or the type. We read the visual zone with OCR, decode the MRZ and any barcodes, then cross-check dates, number formats and MRZ check digits before comparing the visual zone against the MRZ. The result is a status plus a warnings list, not a bare true or false.
The order matters: authenticity checks come before the extracted data is trusted. A document that fails the forgery screen returns a decision even if the OCR looked clean.
How AI document fraud detection works
Document authenticity and liveness
With perform_document_liveness=true, which is the default, the images are additionally screened for screen replays, printed copies, public document images, specimen documents and portrait manipulation. Those risks always decline; they are not configurable. OCR, MRZ decoding, barcode decoding and the consistency checks between them run in the same pass.
If the forgery check returns no usable score because the provider failed or answered with an error, the call returns 200 with status In Review and a DOCUMENT_LIVENESS_NOT_COMPUTED warning instead of Approved. A check that did not run is not evidence that the document is genuine.
OCR, MRZ and barcode decoding
OCR reads the visual zone and returns full name, date of birth, document number, expiry date and address fields. The MRZ is a fixed-layout block defined by ICAO Doc 9303: three lines on ID cards (TD1), two on passports (TD3). It encodes the document number, nationality, date of birth, sex and expiry date, and the document number, date of birth and expiry date each carry a check digit, with a composite digit over the main fields.
Parsing the MRZ therefore gives a second, independent copy of the same data. Comparing it against the visual zone catches two different problems: an OCR misread, and an alteration made to only one part of the document. A mismatch, or a failed check digit, raises inconsistent data; the outcome follows your configured inconsistent_data_action, which is DECLINE or NO_ACTION. Barcodes add a third source where the document carries one.
Classification is part of the same call. If the front image does not match a known official design with high confidence, the standalone endpoint returns COULD_NOT_DETECT_DOCUMENT_TYPE and declines the request, rather than extracting values from a layout it does not recognise.

Prerequisites
- A Didit organization and an API key from the console. The endpoint requires the
x-api-keyheader. - Credit on the account. The standalone endpoint returns
403with a not-enough-credits error before any image processing when the balance cannot cover the call. - Images as tiff, jpg, jpeg, png, webp or pdf, max 5 MB per file, uncropped, with all four corners of the document visible.
- A webhook endpoint if you want
status.updatedevents, and a decision on which risk groups should decline for your market. - A manual review queue, because In Review is a real outcome inside a user-facing flow.
How to add AI document verification: 8 steps
- Pick the delivery mode. Session-based (Mode A) when the user photographs the document in a hosted Didit flow or the Web and Mobile SDKs. Standalone API (Mode B) when you already hold one or two document images and want a one-shot OCR plus checks call. Both are described in the ID Verification overview.
- For Mode A, add the feature to a workflow. Create or edit a workflow with the
ID_VERIFICATIONfeature, in the console or withPOST /v3/workflows/. The legacy enum for the same feature isOCR. - Create the session and open it. Call
POST /v3/session/withworkflow_id,vendor_dataandcallback, then open the returnedsession.urlor mount the SDK. After the user finishes, fetchGET /v3/session/{sessionId}/decision/or subscribe to thesession.status.updatedwebhook. Results appear under the arrayid_verifications[], one entry per document collected. - For Mode B, send the images. Call the standalone endpoint with your API key. Send
back_imageas well for ID cards and driver licences, and do not pre-crop.curl -X POST 'https://verification.didit.me/v3/id-verification/' \ -H 'x-api-key: YOUR_API_KEY' \ -F 'front_image=@./id_front.jpg' \ -F 'back_image=@./id_back.jpg' \ -F 'perform_document_liveness=true' \ -F 'minimum_age=18' \ -F 'expiration_date_not_detected_action=DECLINE' \ -F 'invalid_mrz_action=DECLINE' \ -F 'inconsistent_data_action=DECLINE' \ -F 'preferred_characters=latin' \ -F 'save_api_request=true' \ -F 'vendor_data=user-123' - Set the risk groups you want to decline. Three groups are configurable per request:
invalid_mrz_action,inconsistent_data_actionandexpiration_date_not_detected_action, each set toDECLINEorNO_ACTION. Fraud warnings and extraction failures always decline and cannot be turned off. - Read the status and the warnings, not the HTTP code. A readable but problematic document returns
200with status Declined. A document that cannot be processed at all returns400withCOULD_NOT_RECOGNIZE_DOCUMENT. - Branch on the outcome. Approved: continue. Declined: show the first warning's long description to the user and stop the flow. In Review: send to manual review and never auto-approve.
- Keep the record. With
save_api_request=true, the default, the call is persisted as an API-type session that appears in the Business Console,request_idis a real session id you can pass to the decision endpoint, and astatus.updatedwebhook fires. Set it tofalseonly when you want nothing stored.
Expected output
Read id_verification.status first, then id_verification.warnings. On a workflow session, the same values sit on the matching id_verifications[] entry.
| Status | Meaning | What to do |
|---|---|---|
| Approved | No warning resolved to a decline | Continue the flow |
| Declined | At least one terminal warning: DOCUMENT_EXPIRED, SCREEN_CAPTURE_DETECTED, PRINTED_COPY_DETECTED, PORTRAIT_MANIPULATION_DETECTED, PUBLIC_DOCUMENT_IMAGE_DETECTED, SPECIMEN_DOCUMENT_DETECTED, or an extraction failure | Show the first warning's long description and stop |
| In Review | Requires manual review; on the standalone API, it can mean DOCUMENT_LIVENESS_NOT_COMPUTED | Route to manual review; do not approve |
A successful call returns the request id, the decision and the fields we read:
{
"request_id": "8f14e45f-ceea-467f-a1f0-1c0a1d3b0e21",
"id_verification": {
"status": "Approved",
"full_name": "Jane Doe",
"document_type": "PASSPORT",
"document_number": "X1234567",
"date_of_birth": "1990-01-15",
"expiration_date": "2031-04-02",
"parsed_address": null,
"mrz": "P<UTOD...",
"barcodes": [],
"portrait_image": "https://<media-host>/ocr/portrait.jpg",
"front_document_image": "https://<media-host>/ocr/front.jpg",
"back_document_image": null,
"warnings": [
{ "code": "POSSIBLE_DUPLICATED_USER", "log_type": "warning" }
]
}
}
A declined document carries the same shape, with status set to Declined and the terminal warning that caused it. Warnings that are informational, such as POSSIBLE_DUPLICATED_USER, never decline on their own. Treat them as signals to weigh, not as a decision.
Inputs and outputs
| Field | Required | Notes |
|---|---|---|
front_image | Yes | Uncropped, all four corners visible, max 5 MB |
back_image | For two-sided documents | ID cards and driver licences |
perform_document_liveness | No, default true | Screens for replays, printed copies, specimen images and portrait manipulation |
minimum_age | No | Raises MIN_AGE_NOT_REACHED when the holder is younger |
invalid_mrz_action, inconsistent_data_action, expiration_date_not_detected_action | No | DECLINE or NO_ACTION |
preferred_characters | No | Script preference for extracted names, for example latin |
save_api_request | No, default true | Persists the call as a session and enables the webhook |
vendor_data | No | Your own identifier for the person |
| Field | What it carries |
|---|---|
request_id | Session id when save_api_request is true, otherwise a one-off correlation id |
id_verification.status | Approved, Declined or In Review |
id_verification.warnings | Every issue found, each with a code and a description |
full_name, document_number, date_of_birth, expiration_date | Extracted holder fields |
document_type, parsed_address | Classified type and the address block when present |
mrz, barcodes | The decoded machine readable zone and any decoded codes |
portrait_image, front_document_image, back_document_image | Short-lived media URLs for the cropped images |

Failure cases and recovery
| Failure | What you see | Recovery |
|---|---|---|
| Insufficient balance | 403 with the not-enough-credits error, before processing | Top up or turn on auto top-up; nothing was billed |
| Malformed request | 400 with multipart validation errors: missing back_image on a two-sided document, file over 5 MB, unsupported extension | Fix the request; nothing reached the models and no credit is consumed |
| Unrecognizable document | 400 with COULD_NOT_RECOGNIZE_DOCUMENT | Recapture with the full document in frame and better light |
| Readable but problematic | 200 with status Declined and terminal warnings | Stop the flow for that user and explain the first warning |
| Forgery check produced no score | 200 with status In Review and DOCUMENT_LIVENESS_NOT_COMPUTED | Treat the document as unchecked and route to manual review |
| Anything else In Review | 200 with status In Review | Manual review queue; never auto-approve |
Paid steps and review boundaries
Billing is per completed check from prepaid credit, and only a 200 response is billed. On the standalone endpoint each 200 consumes one ID verification API credit at $0.20; a malformed request returns 400 before any image processing, so a validation failure is not billed. Inside a workflow the document step is $0.15. Nothing is charged in the sandbox.
Steps you add around the document are priced separately and belong in the flow only where the risk justifies them: passive liveness $0.10, face match 1:1 $0.05, device and IP analysis $0.03, NFC chip reading $0.15, Document AI $0.20 per document, AML screening $0.20 per check. Database Validation has variable pricing by country and service. The boundary is explicit: models decide Approved and Declined, and a person decides everything that comes back In Review. Plan the review capacity for that, because In Review is a real outcome and not a free fallback.
Worked cost example
Workflow pricing and standalone API pricing are two separate lists, so keep them apart before you do the arithmetic. Take 5,000 completed onboardings in a month, each with a document, passive liveness, face match and a device and IP check, with an NFC chip read on ten percent of them.
- Full ID check at list price: $0.15 + $0.10 + $0.05 + $0.03 = $0.33 per check. 5,000 x $0.33 = $1,650.00.
- NFC add-on: 10% of 5,000 = 500 checks. 500 x $0.15 = $75.00.
- Workflow total at list price: $1,650.00 + $75.00 = $1,725.00, or $0.345 per onboarding.
- On the Scale plan, 10% off every price: 5,000 x $0.297 = $1,485.00, plus 500 x $0.135 = $67.50, for $1,552.50.
Now the standalone route. The document step alone is $0.20 per successful call, so 5,000 calls are $1,000.00, against $750.00 for the same step inside a workflow. Any other check you add server to server is a separate API line with its own price. The standalone endpoint returns the decision and warnings for that call. That is the trade: the workflow route bundles the steps and keeps the session record, and the standalone route is one call for one image. Either way, the users who come back In Review need a person, and that capacity is the cost the price list does not show.
AI document verification for banks and regulated onboarding
Regulated onboarding adds two requirements on top of accuracy: an auditable record of what was checked, and a documented human decision path for anything uncertain. Both are covered by the same call. With save_api_request=true, Didit stores the session with its warnings and exposes it in the Business Console, the decision endpoint returns the full payload, and In Review is a first-class status rather than an error. Where a document check alone is not enough, database validation against the authoritative national source catches a stolen but genuine document number, and face match on the registry portrait confirms the person owns it.
We hold SOC 2 Type 2 and ISO/IEC 27001:2022 (certificate ES144068), and the flow is used by 4,000+ companies. Test the failure and review behaviour with your own documents in the sandbox before you commit a policy.

AI fake document detection: what the checks actually catch
AI-generated and AI-altered documents fail on different signals than a photocopied forgery. Screen replays and printed copies are caught by the document liveness screen. Portrait replacement is caught as portrait manipulation. Specimen documents and public document images carry their own warning codes. A capture that does not match a known official design with high confidence is declined as COULD_NOT_DETECT_DOCUMENT_TYPE. Data inconsistency catches an image edited in one place while the machine readable zone still carries the original values.
No model catches everything. Watch pass rates, false rejects and review volume by country and document type, and fix the segments that underperform: often the answer is a capture hint, a new document design on our side or an extra step, not a threshold change. Genuine users get flagged when a redesigned document is not recognised yet, so treat a could-not-detect result as a product signal as well as a user error.
Sources
- Didit docs: ID Verification API
- Didit docs: ID Verification overview
- Didit docs: ID Verification methods (document, lookup, wallet)
- Didit docs: Document AI API
- Didit docs: Database Validation overview
- Didit docs: pricing and billing rules
- Didit docs: quick start
- Didit docs: integration prompt
- Didit pricing page and cost estimator
- Didit MCP server setup
- ICAO Doc 9303, machine readable travel documents, as referenced in the Didit ID Verification documentation.
Open the sandbox at business.didit.me, create an API key and send one test document to POST /v3/id-verification/. You will see the status and the warnings on a real capture in a few minutes, with no sales call and nothing billed.
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 AI document verification?
AI document verification uses computer vision and machine learning to read an identity document, check it for tampering and forgery, and return a decision. Our call returns an Approved, Declined or In Review status plus a warnings list that explains every issue found. It is available as a step inside a workflow or as a standalone server-to-server API.
How does AI detect fraud in identity documents?
Several checks run in one call. The forgery screen looks for screen replays, printed copies, public document images, specimen documents and portrait manipulation. OCR and MRZ parsing produce two copies of the same data that are compared field by field, including check digits, and barcode decoding adds a third source where a code is present. Document classification declines a capture that does not match a known official design with high confidence.
Is AI document verification more accurate than human review?
The documentation does not establish that AI or human review is universally more accurate. The call performs documented OCR, MRZ, authenticity and consistency checks across 14,000+ document types. Cases that come back In Review require a person to review them before anyone is approved.
What is the MRZ on an ID document?
The MRZ is a fixed-layout block defined by ICAO Doc 9303. ID cards use three lines (TD1) and passports use two (TD3). It encodes the document number, nationality, date of birth, sex and expiry date, with check digits on the document number, date of birth and expiry date plus a composite digit. Parsing it gives the system an independent copy of the data to compare against the printed text.
What happens when the MRZ and the visual zone disagree?
The check is flagged as inconsistent data, and the outcome depends on the action you configured for that risk group: DECLINE or NO_ACTION. In a workflow you can additionally require an extra step, such as an NFC chip read on a biometric passport, which returns the data stored on the document's chip. A disagreement is either an OCR misread or an alteration made to only one part of the document.
What does OCR contribute if the MRZ already holds the data?
OCR reads documents that have no MRZ, such as many driver licences, and captures fields the MRZ does not carry, including address blocks. It also produces the visual-zone copy that the MRZ is compared against, which is what makes the cross-check possible in the first place.
Which documents can AI document verification read?
We read 14,000+ document types from 220+ countries and territories, including passports, national ID cards, driver licences and residence permits. The document is classified automatically, so you do not declare the country or the type. If the front image does not match a known official design with high confidence, the call returns COULD_NOT_DETECT_DOCUMENT_TYPE and declines instead of guessing.
How much does AI document verification cost?
A document check costs $0.15 inside a workflow and $0.20 through the standalone ID verification API, where the charge applies once per successful 200 response. A full ID check is $0.33: ID $0.15, passive liveness $0.10, face match $0.05 and device and IP analysis $0.03. Prices are per completed check from prepaid credit, and nothing is charged in the sandbox.
What is the difference between the ID Verification API and Document AI?
ID Verification reads and authenticates government-issued identity documents, with document classification, MRZ and barcode decoding, cross-checks and a forgery screen. Document AI extracts fields you define from any PDF or image, such as a bank statement, payslip or invoice, and also runs name matching and tampering checks. Document AI costs $0.20 per document.
Can AI document verification detect AI-generated identity documents?
It catches several of the ways generated and edited documents reach you: screen replays, printed copies, portrait manipulation, specimen documents and captures that do not match an issued design. It will not catch every fabricated document, which is why database validation against an authoritative source and a manual review path remain part of a complete flow.
How do I test AI document verification without paying?
The sandbox is free and unlimited on every Didit plan, and nothing is charged in sandbox. Organizations that sign up with a work email also get $10 of credit a month to spend on real checks. Create an API key in the console and send one test document to the standalone endpoint.
Does AI document verification work for banks and regulated onboarding?
It can, provided the flow keeps a record and a human path. With save_api_request=true, Didit stores the session with its warnings and exposes it in the Business Console, returns the full decision payload, and treats In Review as a status that requires manual review rather than an error. Database validation and AML screening can be added inside the same workflow where the risk profile requires 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


