AI Document Verification: Catching Forgeries and Deepfakes
AI document verification catches altered documents and deepfakes by layering document authenticity, liveness, face match and device signals.

Contents
In this guide
Jump to the part you need.
This guide fits product, risk and engineering teams that run ID checks and want AI to catch altered documents and deepfakes. On Didit an ID document check costs $0.15 inside a workflow, or $0.20 as a standalone API call, and the ID Verification step includes document authenticity checks. The caveat: a forgery check that cannot produce a score returns In Review with DOCUMENT_LIVENESS_NOT_COMPUTED, so you still need a human review path.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
Summary
| Check | Question it answers | Price (USD) | How it runs |
|---|---|---|---|
| ID document verification, with document liveness running inside it | Is the document genuine, current and physically present? Flags screen replays, printed copies, portrait manipulation, expiry, invalid MRZ and inconsistent data | $0.15 in a workflow, $0.20 standalone API | Session, or POST /v3/id-verification/ |
| Passive liveness, a separate biometric check | Is a live person in front of the camera rather than a photo, mask, replay or deepfake? | $0.10 per check | Session, or POST /v3/passive-liveness/ |
| Face match 1:1 | Does the live selfie match the portrait on the document? | $0.05 | Session, or POST /v3/face-match/ |
| Device and IP analysis | Same device seen before, VPN or Tor, country mismatch with the document | $0.03 | Session only |
| Document AI | Fields from a payslip, statement or invoice, plus a tampering check and a name match | $0.20 per document | Session, or POST /v3/document-ai/ |
| Full ID check (KYC) | All four identity parts in one check | $0.33 | Session |
Start free in the sandbox at business.didit.me (no sales call). For developers, connect Didit to an AI assistant through the MCP server. The matching product page is Didit ID Verification, and the published prices are on Didit pricing.
What AI document verification has to catch in 2026
Forgery is no longer only a printing problem. Digital edits, screen replays and manipulated portraits now appear in ordinary onboarding traffic. AI fraud detection for ID verification has to cover all of them in one pass, because the user only uploads once.
- Altered data fields: a changed date of birth, expiry date or name, on paper or in the image file.
- Screen captures and printed copies of a genuine document, presented instead of the physical card.
- Portrait replacement and face morphing, where the photo on the document is not the person holding it.
- Fabricated templates, specimen documents and public sample images taken from the internet.
- Logical fraud that looks clean: expired documents, invalid MRZ check digits, and data that disagrees between the visual zone and the MRZ.
- Synthetic or recycled identities, where a stolen document is paired with a face that is not the holder, or the same face enrolls twice under different names.
Didit returns 200+ fraud signals per session across the checks that run. The document call carries named warnings for document-side risks such as screen capture, printed copy, portrait manipulation, expiry, invalid MRZ and data consistency. Synthetic or recycled identity risk can require combining liveness, face match and device signals, not the document call alone. That is the difference between AI document validation and a plain OCR read: OCR tells you what the document says, authenticity checks tell you whether to believe it.
The recommended method: authenticity first, then data, then the person
The ID verification call classifies the document automatically, so you never declare the country or the document type. It then reads the visual zone with OCR, decodes the MRZ and any barcodes, and cross-checks dates, number formats, MRZ check digits and the visual zone against the MRZ. With perform_document_liveness=true, which is the default, the images are also screened for screen replays, printed copies and portrait manipulation.
That order matters: we treat the document result, the liveness result, the face match score and the device signals as separate pieces of evidence, each with its own status and its own warnings. Coverage is 14,000+ document types across 220+ countries and territories, with 54 languages in the capture flow and 130+ document-recognition languages.
Prerequisites
- A Didit account and an API key. Sandbox testing is free and unlimited on every plan.
- For session mode, a workflow containing the
ID_VERIFICATIONfeature, created in the Business Console or withPOST /v3/workflows/. - Document images that are uncropped, with all four corners visible. Accepted formats are tiff, jpg, jpeg, png, webp and pdf, up to 5 MB per file. The service detects, aligns and crops the document itself, so do not pre-crop.
- A front image for every document and a back image for two-sided documents such as ID cards and driver licences.
- Prepaid credit on the organization, or an understanding of the 403 response your code will get without it.
- A decision consumer:
GET /v3/session/{sessionId}/decision/or a subscription to thesession.status.updatedwebhook.

How to detect advanced forgeries and deepfakes: six steps
- Pick the delivery mode. Use session mode when the user photographs the document inside a hosted Didit flow, because the workflow carries the step order, the retry budget and the decision. Use the standalone API when your server already holds one or two images and needs a one-shot OCR plus authenticity result.
- Configure the workflow. Add
ID_VERIFICATION, set the liveness method withface_liveness_methodtoPASSIVE,ACTIVE_3DorFLASHING, and addFACE_MATCHto the same workflow so the document portrait becomes the reference image. Document liveness thresholds can be tuned per fraud type: screen replay, printed copy and portrait replacement. - Send the document and let the forgery check run. Keep
perform_document_livenessat true. The request below is the documented standalone call, with the risk actions set to decline.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' - Read the status and every warning, not the HTTP code. A 200 response can still carry
status: Declined. Checkid_verification.statusandid_verification.warningsbefore you show anything to the user. - Run the person checks. Passive liveness first, then face match against the document portrait. In a session, a face match that fails for a fixable capture reason does not decline immediately: the user is coached and retried up to
face_match_max_attempts, default 3. - Add device and IP signals, then set the review boundary. Device and IP analysis runs automatically in a session and returns VPN, duplicate-device and location-mismatch flags. Anything that comes back In Review goes to a person, never to auto-approval.

Expected output
The standalone call returns the extracted holder fields, the parsed MRZ, the decision and a warnings array. This is the documented response shape, with placeholders where your values land.
{
"request_id": "...",
"id_verification": {
"status": "Approved",
"full_name": "...",
"document_type": "...",
"document_number": "...",
"date_of_birth": "...",
"expiration_date": "...",
"parsed_address": "...",
"mrz": "...",
"barcodes": [],
"portrait_image": "...",
"front_document_image": "...",
"back_document_image": "...",
"warnings": []
}
}
status is one of Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. Fraud and hard failures always decline: DOCUMENT_EXPIRED, SCREEN_CAPTURE_DETECTED, PRINTED_COPY_DETECTED, PORTRAIT_MANIPULATION_DETECTED, PUBLIC_DOCUMENT_IMAGE_DETECTED, SPECIMEN_DOCUMENT_DETECTED, COULD_NOT_DETECT_DOCUMENT_TYPE, plus extraction failures such as NAME_NOT_DETECTED and DOCUMENT_NUMBER_NOT_DETECTED. Three risk groups are configurable per request through invalid_mrz_action, inconsistent_data_action and expiration_date_not_detected_action, each with DECLINE or NO_ACTION. Informational warnings such as POSSIBLE_DUPLICATED_USER never decline on their own. The full warning catalogue is at ID Verification warnings.

Inputs and outputs
| Field | Direction | Required | What it does |
|---|---|---|---|
front_image | Input | Yes | Front of the document, uncropped, up to 5 MB |
back_image | Input | For two-sided documents | Back of an ID card or driver licence |
perform_document_liveness | Input | No, default true | Runs screen replay, printed copy and portrait manipulation checks |
minimum_age | Input | No | Adds age gating to the decision |
invalid_mrz_action, inconsistent_data_action, expiration_date_not_detected_action | Input | No | Set each risk group to DECLINE or NO_ACTION |
preferred_characters | Input | No | Character set for the extracted text, for example latin |
save_api_request | Input | No, default true | Stores the call as an API session, returns media URLs and emits a webhook |
vendor_data | Input | No | Your request reference for the call |
request_id | Output | Always | The session id when save_api_request is true |
id_verification.status | Output | Always | The decision for this document |
id_verification.warnings | Output | Always | Named risk codes with long descriptions |
Holder fields, mrz, barcodes, images | Output | When detected | Extracted data and short-lived media URLs |
Failure cases and recovery
| Symptom | What it means | Recovery |
|---|---|---|
| HTTP 403, not enough credits | Balance cannot cover the call; nothing was processed | Top up or start the sandbox, then retry |
| HTTP 400, multipart validation error | Missing back image on a two-sided document, file over 5 MB, or unsupported extension | Fix the request and resend; no credit is consumed before processing |
HTTP 400, COULD_NOT_RECOGNIZE_DOCUMENT | The file could not be processed at all | Ask for a new capture, all four corners visible, better lighting |
200 with status: Declined | One or more terminal warnings resolved to a decline | Show the first warning long description and stop the flow; do not retry the same image |
200 with status: In Review and DOCUMENT_LIVENESS_NOT_COMPUTED | The forgery check returned no usable score, so the document is unchecked | Route to manual review. A check that did not run is not evidence the document is genuine |
200 with status: In Review | A risk needs a human decision | Send to your review queue and hold the account in a pending state |
Liveness Declined with LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE | A presentation attack is suspected | Do not approve. Ask for a fresh capture on a device you trust, or escalate |
Face match Declined with LOW_FACE_MATCH_SIMILARITY | The selfie and the document portrait do not match | Use the session retry budget first, then decline or review per policy |
ip_analyses array is empty | The SDK fingerprint was blocked by a privacy extension | Decide fail-closed or accept soft signals, per your risk policy |
Paid steps and review boundaries
Each 200 response from the standalone ID verification endpoint consumes one ID Verification API credit, priced at $0.20 in the price book, and the call is refused with a 403 before any image processing when the balance cannot cover it. In a workflow the same document step is $0.15 and is billed with the rest of the session. Document AI is $0.20 per document and returns a 400 before extraction when the fields array is malformed, so nothing is billed in that case.
Two boundaries keep the automation honest. First, In Review is never an approval: DOCUMENT_LIVENESS_NOT_COMPUTED means the forgery provider failed or crashed, and the escalation to review is not configurable. Second, a decline is final for that submission. The docs say to surface the first warning and stop the flow, so do not resend the same image. If a person overrides, keep an audit trail that records the warning and the reason for the override.
Worked cost example
Take 10,000 new users a month, a full ID check on each, and 2,000 payslips read with Document AI. All numbers are published list prices.
- Full ID check: $0.15 ID document + $0.10 passive liveness + $0.05 face match + $0.03 device and IP = $0.33 per check.
- 10,000 x $0.33 = $3,300 a month.
- Document AI: 2,000 x $0.20 = $400.
- Total at list price: $3,300 + $400 = $3,700 a month.
- On Scale, every Didit price is 10% off: $0.33 x 0.90 = $0.297, so 10,000 x $0.297 = $2,970. Document AI falls to 2,000 x $0.18 = $360. Total $3,330.
Plans, monthly credit and top-up rules are on didit.me/pricing, and every figure above is machine-readable at didit.me/pricing.json.
Where the document result sits in the wider flow
Document verification answers one question. Identity proofing needs the sequence around it, which is why we run Authenticate, Verify, Monitor on one API. Device and IP analysis adds duplicate-device and location signals for $0.03 per check. After onboarding, transaction monitoring screens activity at $0.001 per transaction beyond the plan allowance, and AML screening checks a person against 1,300+ lists at $0.20. Wallet screening, at $0.15 per screening, runs inside transaction monitoring, and you can bring your own screening provider and run it inside Didit if you already have one.
On the security side, Didit holds SOC 2 Type 2 and ISO/IEC 27001:2022 (certificate ES144068), and lists GDPR, DORA, MiCA, AMLD6 and eIDAS 2.0 among its compliance marks. Didit holds iBeta Level 1 PAD, and the liveness documentation cites iBeta Level 1 and Level 2 PAD. An EU member-state government, Spain's Tesoro with Banco de España and SEPBLAC, has formally attested that verification through Didit is safer than in-person verification.
Sources
- Didit docs: ID Verification overview
- Didit docs: ID Verification API reference
- Didit docs: ID Verification warnings
- Didit docs: Document AI API
- Didit docs: Liveness Detection overview
- Didit docs: Face Match overview
- Didit docs: Device and IP Analysis overview
- Didit docs: Pricing and billing
- Didit pricing page, read November 26, 2026
- Didit pricing feed as JSON, read November 26, 2026
- Didit ID Verification product page, read November 26, 2026
- Didit MCP server setup
- Didit integration prompt
- Didit site index for AI agents
- Figures use Didit Academy and Didit Business Console screens from the Didit image catalog, read November 26, 2026.
Next step: run one document through the sandbox at business.didit.me, read the warnings on the result, and wire the In Review path to a person before you turn on production traffic.
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 is the use of machine learning to read an identity document and decide whether it is genuine, current and being presented by the person it belongs to. It covers document classification, OCR of the visual zone, MRZ and barcode decoding, cross-checks between those data zones, and separate forgery checks for screen replays, printed copies and portrait manipulation. On Didit the document step costs $0.15 in a workflow and $0.20 as a standalone API call.
How does AI fraud detection for ID verification actually work?
The system classifies the document automatically, then reads every data zone and compares them against each other: dates, number formats, MRZ check digits and the visual zone against the MRZ. In parallel it screens the image for signs that it is a screen capture, a printed copy or a manipulated portrait. Each finding becomes a named warning, and the strictest warning decides the status, which is why a 200 response can still return Declined.
Can AI detect altered documents and forged fields?
Yes, within the limits of the signals it receives. Didit returns specific codes for the cases you can act on: SCREEN_CAPTURE_DETECTED, PRINTED_COPY_DETECTED, PORTRAIT_MANIPULATION_DETECTED, PUBLIC_DOCUMENT_IMAGE_DETECTED, SPECIMEN_DOCUMENT_DETECTED, INVALID_MRZ, INCONSISTENT_DATA and DOCUMENT_EXPIRED. A single-field visual edit that leaves every zone consistent is the hard case, which is why the device, duplicate and face signals run alongside.
How does AI detect deepfakes during identity proofing?
Deepfake detection lives in liveness, not in the document. Didit passive liveness analyses a single frame for spoof artefacts, while the 3D action and flashing methods combine a randomized action with dynamic light patterns and depth analysis, which is much harder to spoof with a photo, screen, mask or deepfake. Liveness reaches 99.9% accuracy with a false acceptance rate under 0.1%, and the liveness documentation cites iBeta Level 1 and Level 2 PAD. Passive liveness costs $0.10 per check; active liveness costs $0.15.
What is advanced document verification technology, and what does it check?
It is the combination of document authenticity analysis, data consistency checks, liveness and biometric matching in one decision. Didit adds device and IP analysis so a genuine document used on a device already tied to another account still surfaces, and returns 200+ fraud signals per session. Coverage is 14,000+ document types in 220+ countries and territories, with 54 languages in the capture flow.
What is the difference between AI document validation and AI document verification?
Validation is the internal consistency check: does this document make sense, are the dates possible, does the MRZ match the printed fields, is the number format correct. Verification is the identity decision: is this document genuine, is this person live, and does the face match the portrait. Didit returns both in one call, and you read them from status and warnings.
Is AI document verification accurate enough to replace manual review?
It replaces the first pass, not the last one. Submissions with no blocking warnings may be approved automatically, while In Review results require human review. Documents where the forgery check returned no usable score must go to a person. We treat DOCUMENT_LIVENESS_NOT_COMPUTED as an unchecked document, never as a pass.
How much does AI document validation and verification cost on Didit?
The ID document step is $0.15 inside a workflow and $0.20 through the standalone API. A full ID check that adds passive liveness, face match and device and IP analysis is $0.33. Document AI, for payslips, statements and other free-form documents, is $0.20 per document.
How do I test AI automated document fraud detection before paying?
The sandbox is free and unlimited on every plan, and the Free plan includes $10 of credit a month for organizations that sign up with a work email. Create a workflow, send a few real captures through it, and read the warnings in the Business Console. You can start at business.didit.me without a sales call.
What happens when the forgery check cannot produce a score?
With perform_document_liveness=true, a provider error, a non-200 answer or a 200 with status=ERR from the forgery check returns status: In Review with a DOCUMENT_LIVENESS_NOT_COMPUTED warning. That escalation is not configurable and never overrides a decline. Treat the document as unchecked and route it to a human.
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


