Hologram Detection: AI Anti-Counterfeiting Checks in 6 Steps
Check ID holograms and optical security features with Didit ID Verification: $0.15 per document in a workflow, $0.20 on the standalone API, with forgery warnings you route to review.

Contents
In this guide
Jump to the part you need.
This guide is for teams that must prove a presented ID document is genuine, including the hologram and the other optical security features on it, before trusting the data inside. Didit runs that check inside an ID verification step at $0.15 per document, or $0.20 per call on the standalone API. The caveat first: you get forgery warnings such as PRINTED_COPY_DETECTED and SCREEN_CAPTURE_DETECTED, not a numeric score for the hologram itself.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Step | What it establishes | How it runs | List price |
|---|---|---|---|
| 1. Capture the document | Four corners visible, no crop, no glare | Hosted flow or direct upload | Included |
| 2. Authenticity and forgery screening | Screen replay, printed copy, portrait manipulation, specimen and public image checks | ID Verification | $0.15 per check in a workflow, $0.20 on the standalone API |
| 3. Data cross-checks | Visual zone against MRZ and barcodes, dates, number formats | ID Verification | Included in step 2 |
| 4. Biometrics | The person presenting is live and matches the portrait | Passive liveness, face match | $0.10 and $0.05 |
| 5. Chip read (optional) | The chip is signed by the issuing authority | NFC add-on | $0.15 per check |
| 6. Decision | Approve, decline or send to a human | Decision API or status.updated webhook | Included |
Start free in the sandbox at https://business.didit.me/ (no sales call). Developers who work with an AI assistant can connect the MCP server at https://didit.me/developers/mcp/, and the product page for the check described here is https://didit.me/products/id-verification/.
Document liveness, OCR cross-checks and NFC evidence
Three checks run on one document and they answer three different questions. Document liveness is image-based forgery screening on the photos you send: screen replay, printed copy, portrait manipulation, specimen and public document images. OCR cross-checks read the visual zone and compare it with the MRZ, the barcodes, the date formats and the check digits, which is what catches edited data and mismatched front and back sides. NFC is a chip read that verifies the signature chain of an ePassport or eID chip against the issuing authority. Only the third one is cryptographic, and it needs a chip and a phone with NFC. None of the three measures the diffraction pattern of a foil.
What hologram detection actually checks
A hologram on an identity document is an Optical Variable Device, an OVD: a diffractive structure that bends light into a three dimensional image, a colour shift or a kinetic effect as the document tilts. Colour shifting inks, microtext, laser perforations and kinegrams belong to the same class. They are expensive to reproduce with a commercial printer, which is why issuing authorities put them on passports, ID cards, residence permits and driving licences.
An OVD signature is the specific visual behaviour of that feature for a given document design. A fake can copy the artwork. The copy usually fails on the optical behaviour, the registration against the rest of the design, or the way it photographs from an angle.

Why a camera cannot measure diffraction, and what AI reads instead
One physical limit, stated as general context: measuring the diffraction pattern of a foil is laboratory work with specialised readers, not something a phone camera is built to do. What the capture does contain is evidence about whether a real document sits in front of a real camera: substrate texture, foil edges, surface reflection, portrait geometry, a known official design, and the absence of a screen bezel, a print edge or a digital artifact.
Didit turns that evidence into explicit warning codes instead of a single opaque score. The documented fraud and hard-failure risks that always decline a document are DOCUMENT_EXPIRED, SCREEN_CAPTURE_DETECTED, PRINTED_COPY_DETECTED, PORTRAIT_MANIPULATION_DETECTED, PUBLIC_DOCUMENT_IMAGE_DETECTED, SPECIMEN_DOCUMENT_DETECTED and the extraction failures. A front image that does not match a known official document design with high confidence returns COULD_NOT_DETECT_DOCUMENT_TYPE, which also declines.
That is the honest boundary. A laboratory grade measurement of a foil needs physical equipment and an examiner. Stopping fake documents, printed copies, screen replays and manipulated portraits at onboarding scale is what the checks below do.
Where AI image recognition fits in counterfeit detection
The documented pipeline is short. The service detects, aligns and crops the document itself, classifies the design without you declaring the country or type, reads the visual zone with OCR, decodes the MRZ and any barcodes, then cross-checks dates, number formats and MRZ check digits and compares the visual zone against the MRZ. With perform_document_liveness=true, which is the default, the images are additionally screened for screen replays, printed copies and portrait manipulation.
The coverage is 14,000+ document types across 220+ countries, with the verification flow in 54 languages, and inference runs at a sub-2-second p99. What these checks establish is that the document matches a known official design, that its fields agree with each other, and that it was presented as a physical object. A dispute that needs a lab answer still needs a lab.

Prerequisites
- A Didit account and an API key sent in the
x-api-keyheader. Reading a session decision needs theread:sessionsprivilege on the key. - Credit on the organisation: $0.15 per ID document check inside a workflow, $0.20 per standalone ID Verification API call. The Free plan gives $10 of credit a month to organisations that sign up with a work email, and sandbox testing is free and unlimited.
- Images as
front_image(required) andback_imagefor dual-sided documents. Allowed extensions are tiff, jpg, jpeg, png, webp and pdf, up to 5 MB per file. Upload uncropped photos with all four corners visible; do not pre-crop, the service crops itself. - A workflow with the
ID_VERIFICATIONfeature if you take the hosted session route. The canonical feature value isID_VERIFICATION;OCRis the legacy name. - A webhook endpoint if you want the result pushed. The session emits
status.updatedevents.
How to add hologram and document authenticity checks in 6 steps
- Pick the delivery mode. Use the hosted session route when a person photographs their own document: you create a workflow, the flow renders the capture UI, and the document check runs as part of the session at $0.15. Use the standalone endpoint when you already hold one or two document images server side, for example a backlog of applications or a partner feed, at $0.20 per call.
- Configure the ID verification step. Add the
ID_VERIFICATIONfeature to the workflow in the Business Console or throughPOST /v3/workflows/. Keep document liveness on so the forgery screening runs. Decide the three configurable risk groups up front:invalid_mrz_action,inconsistent_data_actionandexpiration_date_not_detected_action, each set toDECLINEorNO_ACTION. The fraud risks listed earlier always decline and cannot be configured away. - Send the document. The standalone call is one multipart request. For the hosted route, configure the documented
ID_VERIFICATIONworkflow feature. Use the standalone fields shown below only withPOST /v3/id-verification/.
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 the warnings, not the HTTP code. A readable but problematic document returns HTTP 200 with
statusset to Declined, and the reason is inid_verification.warnings[]. Each warning carriesfeature,risk,log_type,short_descriptionandlong_description. Show the first terminal warning'slong_descriptionto the user and stop the flow. - Route In Review to a person. A
statusof In Review means do not approve. The specific caseDOCUMENT_LIVENESS_NOT_COMPUTEDmeans the forgery check produced no usable score because the provider failed or crashed: treat the document as unchecked for authenticity, which is exactly what a hologram question is about. Send it to your manual review queue. - Re-test with real captures and watch the warning mix. Run a sample of genuine documents from every issuing country you accept and confirm the design classification holds, then run your known bad cases: a phone photo of a screen, a colour photocopy, a specimen, a document with a swapped portrait. Watch the share of In Review and Declined results, because shifts in that mix can indicate capture problems or changes in the types of documents being submitted.
Inputs and outputs
| Field | Direction | What it does |
|---|---|---|
front_image | Input, required | The document front, uncropped, all four corners visible |
back_image | Input, required for dual-sided documents | ID cards, driving licences and similar two-sided designs |
perform_document_liveness | Input, default true | Turns on the screen replay, printed copy and portrait manipulation screening |
invalid_mrz_action, inconsistent_data_action, expiration_date_not_detected_action | Input | Choose DECLINE or NO_ACTION for each configurable risk group |
save_api_request | Input, default true | Persists the call as an API-type session you can read in the console and fetch the decision for |
status | Output | Approved, Declined, In Review or In Progress for this document |
warnings[] | Output | Every risk found, with the code, a short label and a long description |
document_type, mrz, barcodes | Output | Classification and the machine-readable and barcode payloads |
request_id | Output | A real session id when save_api_request is true, usable on the decision endpoint |
Expected output
What follows is a synthetic example of the response for a printed copy of an ID card, trimmed to the fields that matter for an authenticity decision. The values are placeholders, the warning description is illustrative rather than canonical, and the full schema is in the data models reference.
{
"request_id": "b1f0c2a4-5d7e-4a11-9c33-0b6f2f7d8a10",
"id_verification": {
"status": "Declined",
"document_type": "Identity Card",
"document_number": "X0000000",
"warnings": [
{
"feature": "ID_VERIFICATION",
"risk": "PRINTED_COPY_DETECTED",
"log_type": "error",
"short_description": "Printed copy detected",
"long_description": "The document appears to be a physical copy rather than an original."
}
]
}
}
A clean capture of the same card can return status Approved when no warning resolves to a decline, and informational warnings may still appear in warnings[] next to that Approved status. A capture where the forgery check never returned a score returns status In Review with DOCUMENT_LIVENESS_NOT_COMPUTED.

Failure cases and recovery
| Failure | What you see | Recovery |
|---|---|---|
| Insufficient balance | HTTP 403, not enough credits, returned before any image processing | Top up or upgrade the plan, then retry the same request |
| Unrecognisable document | HTTP 400 with COULD_NOT_RECOGNIZE_DOCUMENT | Recapture with all four corners visible, no crop, no glare, then resend |
| Malformed upload | HTTP 400 with multipart validation errors: missing back_image on a dual-sided document, file over 5 MB, unsupported extension | Add the second side or fix the file, then resend |
| Terminal decline | HTTP 200 with status Declined and a terminal risk such as DOCUMENT_EXPIRED or PRINTED_COPY_DETECTED | Show the first warning's long_description to the user and end the flow |
| Forgery check did not run | HTTP 200 with status In Review and DOCUMENT_LIVENESS_NOT_COMPUTED | Treat the document as unchecked, send to manual review, do not approve |
| Decision call fails | 404 when the session does not exist or belongs to another application, 403 when the key lacks read:sessions, 401 for an invalid key | Check the session id and the key privileges before retrying |
Paid steps and review boundaries
Billing is per completed check from prepaid credit. The workflow step and the standalone API are two separate published lines: an ID document check inside a workflow is $0.15, and a standalone ID Verification API call is $0.20, with each HTTP 200 response consuming one credit. A request refused with 403 for insufficient balance is refused before any image processing. Passive liveness is $0.10, face match 1:1 is $0.05, device and IP analysis is $0.03, and an NFC chip read is a $0.15 add-on. A full KYC check is $0.33: ID document $0.15 plus passive liveness $0.10 plus face match $0.05 plus device and IP $0.03. Growth takes 4% off every Didit price and Scale takes 10% off, and the same discount applies to both the workflow line and the API line.
The review boundary matters more than the price. Approved is automatic. Declined is automatic and final for that attempt: do not override a fraud risk to keep conversion. In Review is not an approval and should never be treated as one, especially the DOCUMENT_LIVENESS_NOT_COMPUTED case, where the forgery screening gave no answer at all. Both plan credit and top-ups can pay for the checks, and unused monthly plan credit does not roll over.
Worked cost example
Take 10,000 new users a month on the hosted flow, each with a document, a selfie and the standard device signals. The per check arithmetic from the live price feed:
- ID document check, the step that carries the authenticity and forgery screening: 10,000 x $0.15 = $1,500
- Passive liveness: 10,000 x $0.10 = $1,000
- Face match 1:1: 10,000 x $0.05 = $500
- Device and IP analysis: 10,000 x $0.03 = $300
- Total at list price: $1,500 + $1,000 + $500 + $300 = $3,300, which is 10,000 x $0.33
Suppose 2,000 of those captures are poor and your team re-runs the stored images through the standalone API instead of asking the person again: 2,000 x $0.20 = $400. All in, $3,300 + $400 = $3,700 for the month.
On the Scale plan, Didit prices carry a 10% discount, and that includes the standalone API line. The full check becomes $0.297, so 10,000 x $0.297 = $2,970. The 2,000 API re-runs cost 2,000 x $0.18 = $360. All in, $2,970 + $360 = $3,330 before the monthly plan fee, which is $299 on Scale. Plan fees, monthly credit and yearly pricing are on the pricing page and in the pricing docs; read them there rather than from any quote page, because plans changed on November 1, 2026.
Sources
- Didit docs: ID Verification API overview
- Didit docs: standalone ID Verification API, endpoint and decision logic
- Didit docs: ID verification warnings catalogue
- Didit docs: Document AI API
- Didit docs: Create Session API
- Didit docs: Retrieve Session decision API
- Didit docs: data models and the warning object
- Didit docs: pricing and billing rules
- Didit pricing page, read November 26, 2026, and the live price feed at https://didit.me/pricing.json
- Didit ID verification product page
- Didit MCP server setup
The next step is a sandbox key: sign up at https://business.didit.me/, run one genuine document and one known fake through the standalone call, and compare the warnings before you wire anything into a live flow. No sales call is needed to get a result.
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 hologram detection?
Hologram detection is the process of checking whether the optical security feature on a document, an Optical Variable Device, is consistent with a genuine document of that design. In a digital flow it means analysing the captured images for the document design, the surface and print characteristics, and the artefacts of a screen, a copy or a manipulated portrait. Didit reports the outcome as document risks such as PRINTED_COPY_DETECTED, not as a hologram score.
How does AI image recognition detect counterfeit documents?
The service detects and crops the document, classifies it against a known official design, reads the visual zone with OCR, decodes the MRZ and barcodes, then cross-checks dates, number formats and check digits and compares the visual zone against the MRZ. Separately, document liveness screening looks for screen replays, printed copies, portrait manipulation, specimen stamps and public document images. Every finding is returned as a warning code with a short and a long description.
Does Didit return a per-hologram confidence score?
No. Didit returns a document level status of Approved, Declined or In Review, plus a warnings[] array that names each risk found. For holograms and other OVDs, the useful signals are the design classification and the forgery screening, not a numeric measurement of the foil. A laboratory grade measurement of diffraction requires physical equipment and an examiner.
What does an anti-counterfeiting hologram system need in the way of equipment?
For a digital verification flow, no hologram-specific hardware is needed: the capture comes from the user's phone camera or a document scanner, and the analysis runs server side. Physical inspection equipment such as magnifiers, UV lamps and dedicated OVD readers is still what you use for forensic examination, field inspection or lab audits. The two are complementary: the API filters volume, the equipment resolves individual disputes.
Do I need a dedicated anti-counterfeiting hologram machine or machinery?
Not to run Didit. The standalone ID Verification API takes an image file of up to 5 MB in tiff, jpg, jpeg, png, webp or pdf and returns a decision in one call, and the hosted flow captures the image on the user's own device. Physical inspection equipment still has its place when you must examine a document under controlled light on site, which is a different problem from onboarding checks at scale.
What does an AI cluster have to do with anti-counterfeiting detection?
An AI cluster is compute for training and serving models, so it shows up when a team plans to build its own counterfeit detection model. If you buy detection as an API, you never size a cluster: inference runs in Didit and returns at a sub-2-second p99. Building and labelling your own counterfeit dataset is the expensive part, and it is the reason most teams start with a published check first.
How much does a document authenticity check cost?
An ID document check inside a workflow is $0.15 and a standalone ID Verification API call is $0.20; they are separate published lines. A full KYC check is $0.33: ID document $0.15, passive liveness $0.10, face match $0.05 and device and IP analysis $0.03. Growth takes 4% off every Didit price and Scale takes 10% off, and sandbox testing is free, with $10 of credit a month on the Free plan for organisations that sign up with a work email.
What happens when the forgery check cannot produce a score?
The call returns HTTP 200 with status In Review and a DOCUMENT_LIVENESS_NOT_COMPUTED warning, because a check that did not run is not evidence that the document is genuine. This escalation is not configurable and never overrides a Declined. Treat the document as unchecked and route it to a human reviewer.
Can this stop deepfake and screen replay document fraud?
It catches the presentation layer: SCREEN_CAPTURE_DETECTED for a phone photographing a screen, PRINTED_COPY_DETECTED for a physical copy, PORTRAIT_MANIPULATION_DETECTED for a swapped portrait and PUBLIC_DOCUMENT_IMAGE_DETECTED for a stock image pulled from the web. Combined with passive liveness and face match in the same session, it ties the document to a live person. No single check is complete on its own, which is why the session returns a bundled decision.
Which documents and countries are covered?
Didit verifies 14,000+ document types across 220+ countries and territories, with the verification flow and native SDKs in 54 languages and document recognition in 130+ languages across 50+ scripts. You never declare the country or the document type: the service classifies the document itself. If the front image does not match a known official design with high confidence, the call returns COULD_NOT_DETECT_DOCUMENT_TYPE and declines.
What is the difference between document liveness and an NFC chip read?
Document liveness is image based forgery screening that runs on the document photos at no extra step, and it is on by default. An NFC chip read is a separate $0.15 add-on that reads the chip in an ePassport or eID and checks the signature chain, which is an additional chip-authenticity check for documents that carry a chip when the phone supports NFC. Use both where the document supports it.
Do I need an AI assistant or MCP to use this?
No. The REST API is the primary route: one multipart call to POST /v3/id-verification/, or a session created from a workflow. The MCP server is available for optional AI-assistant integration during development, and connecting it is free.
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


