Skip to main content

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.

Hologram Detection: AI Anti-Counterfeiting Checks in 6 Steps

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.

Document authenticity and hologram related checks in a Didit flow, with list prices
StepWhat it establishesHow it runsList price
1. Capture the documentFour corners visible, no crop, no glareHosted flow or direct uploadIncluded
2. Authenticity and forgery screeningScreen replay, printed copy, portrait manipulation, specimen and public image checksID Verification$0.15 per check in a workflow, $0.20 on the standalone API
3. Data cross-checksVisual zone against MRZ and barcodes, dates, number formatsID VerificationIncluded in step 2
4. BiometricsThe person presenting is live and matches the portraitPassive liveness, face match$0.10 and $0.05
5. Chip read (optional)The chip is signed by the issuing authorityNFC add-on$0.15 per check
6. DecisionApprove, decline or send to a humanDecision API or status.updated webhookIncluded

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.

Phone screen capturing the front of an ID document with all four corners inside the frame
Step 1: the capture has to contain the whole document. Cropping removes the area where OVDs sit.

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.

The verification screen after upload, showing the document being analysed
Step 2: the same request reads the document, runs the forgery screening and returns a status with warnings.

Prerequisites

  • A Didit account and an API key sent in the x-api-key header. Reading a session decision needs the read:sessions privilege 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) and back_image for 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_VERIFICATION feature if you take the hosted session route. The canonical feature value is ID_VERIFICATION; OCR is the legacy name.
  • A webhook endpoint if you want the result pushed. The session emits status.updated events.

How to add hologram and document authenticity checks in 6 steps

  1. 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.
  2. Configure the ID verification step. Add the ID_VERIFICATION feature to the workflow in the Business Console or through POST /v3/workflows/. Keep document liveness on so the forgery screening runs. Decide the three configurable risk groups up front: invalid_mrz_action, inconsistent_data_action and expiration_date_not_detected_action, each set to DECLINE or NO_ACTION. The fraud risks listed earlier always decline and cannot be configured away.
  3. Send the document. The standalone call is one multipart request. For the hosted route, configure the documented ID_VERIFICATION workflow feature. Use the standalone fields shown below only with POST /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'
  1. Read the status and the warnings, not the HTTP code. A readable but problematic document returns HTTP 200 with status set to Declined, and the reason is in id_verification.warnings[]. Each warning carries feature, risk, log_type, short_description and long_description. Show the first terminal warning's long_description to the user and stop the flow.
  2. Route In Review to a person. A status of In Review means do not approve. The specific case DOCUMENT_LIVENESS_NOT_COMPUTED means 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.
  3. 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

Fields on POST /v3/id-verification/ and what comes back
FieldDirectionWhat it does
front_imageInput, requiredThe document front, uncropped, all four corners visible
back_imageInput, required for dual-sided documentsID cards, driving licences and similar two-sided designs
perform_document_livenessInput, default trueTurns on the screen replay, printed copy and portrait manipulation screening
invalid_mrz_action, inconsistent_data_action, expiration_date_not_detected_actionInputChoose DECLINE or NO_ACTION for each configurable risk group
save_api_requestInput, default truePersists the call as an API-type session you can read in the console and fetch the decision for
statusOutputApproved, Declined, In Review or In Progress for this document
warnings[]OutputEvery risk found, with the code, a short label and a long description
document_type, mrz, barcodesOutputClassification and the machine-readable and barcode payloads
request_idOutputA 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.

Session detail in the Didit Business Console showing the ID document report and its warnings
Step 4 and 5: the same result in the console, where a reviewer sees the document report and the warnings behind a status.

Failure cases and recovery

Documented failures on the ID Verification call and the recovery for each
FailureWhat you seeRecovery
Insufficient balanceHTTP 403, not enough credits, returned before any image processingTop up or upgrade the plan, then retry the same request
Unrecognisable documentHTTP 400 with COULD_NOT_RECOGNIZE_DOCUMENTRecapture with all four corners visible, no crop, no glare, then resend
Malformed uploadHTTP 400 with multipart validation errors: missing back_image on a dual-sided document, file over 5 MB, unsupported extensionAdd the second side or fix the file, then resend
Terminal declineHTTP 200 with status Declined and a terminal risk such as DOCUMENT_EXPIRED or PRINTED_COPY_DETECTEDShow the first warning's long_description to the user and end the flow
Forgery check did not runHTTP 200 with status In Review and DOCUMENT_LIVENESS_NOT_COMPUTEDTreat the document as unchecked, send to manual review, do not approve
Decision call fails404 when the session does not exist or belongs to another application, 403 when the key lacks read:sessions, 401 for an invalid keyCheck the session id and the key privileges before retrying

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

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.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

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.

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.