Age Gating for Regulated Industries: A Practical How-To
Age gating blocks users below a legal age from restricted products. Start with a selfie age check at $0.10, then send borderline users to ID Verification at $0.15 inside a workflow or $0.20 through the standalone API.

Contents
In this guide
Jump to the part you need.
Age gating is the control that keeps someone below a legal age away from a restricted product, page or checkout. This guide is for teams running online gambling, alcohol and tobacco sales, cannabis, adult content or regulated financial products. Didit charges $0.10 for a selfie age check, $0.15 for ID Verification inside a workflow ($0.20 through the standalone API) and $0.33 for the full ID-check bundle. The caveat: a selfie estimate is a gate, not legal proof of age.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Job | What runs | List price |
|---|---|---|
| First gate, no document | Age Estimation from a selfie, passive liveness included | $0.10 per check |
| Document-based age proof | ID Verification inside a workflow | $0.15 per check |
| Document-based age proof, direct call | ID Verification through the standalone server-to-server API | $0.20 per check |
| Full ID check | ID Verification + Passive Liveness + Face Match 1:1 + Device and IP | $0.33 per check |
| Gambling sign-up with AML | Full ID check + AML Screening + Age Estimation | $0.63 per check |
| Sanctions and PEP check | AML Screening, 1,300+ lists | $0.20 per check |
Run the whole flow in the free sandbox at business.didit.me, no sales call and no card. Developers who want a coding assistant to wire it up can connect Didit over MCP at didit.me/developers/mcp. Every number on this page is on the Didit pricing page.
What age gating means
An age gate is the point in a flow where access depends on the user's age. Age-gated content is the material behind it: a betting slip, a bottle of spirits, a cannabis menu, an adult stream, a credit product. The gate is the check, the gating is the access rule.
Three different things get called age gating, and regulators treat them differently:
- Self-declaration. A checkbox or a date of birth field. Cheap, and unverifiable. Self-declaration may be insufficient where applicable law or licensing rules require stronger age assurance. Check the rules for each market.
- Age estimation. A model estimates age from a selfie and returns a number plus a liveness score. It answers "is this person probably over the line" without collecting an identity. Didit Age Estimation works this way.
- Age verification. A government document, a database or a digital ID wallet confirms a date of birth. Whether it satisfies legal proof requirements depends on the market and applicable rules.
The method we recommend is layered: estimation as the first gate for everyone, verification as the fallback for anyone the model places near the threshold. It costs a fraction of checking every user's document, and it keeps the document check where it matters.

Which regulated industries age gate online
- Gambling and betting. Age-verification duties come from the licence and the market. In the UK, operators must follow the age-verification requirements that apply to their licence and product, and should check the current Gambling Commission guidance and applicable law: Gambling Act 2005, legislation.gov.uk.
- Alcohol and tobacco. Online sellers typically verify at the point of sale and often again at delivery, because the courier is the last person who can refuse the handover. What counts as acceptable proof is set by local licensing rules, so check the market before you copy a flow.
- Cannabis. Where retail is legal, the age rule written into the licence usually mirrors alcohol, and the audit trail is checked at renewal. The rule is set market by market.
- Adult content. In the UK, the Online Safety Act 2023 places duties on services likely to be accessed by children, and age assurance is part of that: Online Safety Act 2023, legislation.gov.uk. Several US states have their own verification statutes. Check what applies where you operate.
- Financial services. Under-18 account rules and customer due diligence expectations sit alongside age limits. FATF's recommendations on customer due diligence describe the record-keeping expectations many supervisors apply: fatf-gafi.org.
- Social, messaging and marketplaces. Where minors can reach adult material or age-restricted commerce, the platform is usually the gatekeeper rather than the seller.
Rules differ by country and by state, and they change. The common thread is the record: you have to show which check ran, on which session, when, and what it returned. That record is what a regulator or an auditor asks for first.
Age gating for adult content
Adult content sites usually get two requirements at once: stop minors, and do not build a face database of adults who only wanted to watch. That is exactly the case for a selfie estimate as the first gate. The Didit model's mean absolute error is 1.1 years at ages 16 and 17 and 1.9 years at 18 to 20, and it classifies 96% of selfies correctly as under 18 or 18 and over. Users who land near the threshold go on to a document check.
Two settings matter more than the model. First, age_estimation_decline_threshold: if your market gates at 18, leaving it at the default 18 is right; if you want a buffer, set it higher and let the document check decide the edge cases. Second, save_api_request: set it to false and nothing is stored, no face crop, no embedding, and the request_id becomes a one-off correlation value you cannot look up later. You lose the console record and the face-duplicate signal, and you keep the minimum data. Pick deliberately, and write the choice down.
Age and identity verification for online gaming
Gaming sign-up needs age, identity and often a sanctions check before the first deposit. The Didit iGaming bundle runs all three for $0.63: full ID check $0.33, AML Screening $0.20, Age Estimation $0.10. Run age estimation first to drop obvious minors before you spend on a document check, then verify identity and screen AML on the players who clear the gate. On a marketplace or social product, running age estimation with a lower threshold and no AML step is one option; the right shape depends on the product's own requirements.
Prerequisites before you start
- A Didit account. Sandbox testing is free and unlimited.
- An API key. The decision endpoint needs a key holding the
read:sessionsprivilege. - A workflow. Age estimation is not a separate workflow feature: you enable it on the Liveness node inside a workflow, in the Business Console or through the workflows API.
- A written rule for three outcomes: pass, fail, and near the threshold. The threshold is a business decision tied to your regulator's wording, not a default to accept unread.
- Someone who owns manual review. Anything that lands
In Reviewneeds a named person and a deadline. - A privacy position. Decide retention and consent before launch. In Auto consent mode, a session created with
user_stateset to Illinois, Texas or Colorado asks for explicit biometric consent before the first face capture.
How to add age gating, step by step
Step 1: Choose the assurance level
Estimation for low-risk gates and for the first filter on every user. Document verification where the law says proof, or where the value at risk per user is high. Gambling and adult content usually need both, in that order.
Step 2: Turn age estimation on at the Liveness node
In the Business Console, add a Liveness step to the workflow and enable age estimation on it. Set age_estimation_decline_threshold (default 18). Add an ID Verification step after Liveness for the users you will escalate. Keep the two steps separate so the decision tells you which one produced the result.
Step 3: Create a session
One call starts the flow. vendor_data is your stable identifier for the person and is what binds sessions together for duplicate detection.
curl -X POST 'https://verification.didit.me/v3/session/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"workflow_id":"WORKFLOW_UUID","vendor_data":"user-1234","callback":"https://app.example.com/verified"}'
The response carries session_id and session_url. Full field list: Create Session API.
Step 4: Send the user into the flow
Open the returned session URL in the browser, or mount the Web or Mobile SDK. When the flow finishes, Didit appends ?verificationSessionId={session_id}&status={status} to your callback URL. Do not trust that query string as the verdict; use it to find the session and then read the decision.
Step 5: Read the decision
The age result is not a top-level array. It lives inside the Liveness entry: liveness_checks[].age_estimation.
curl https://verification.didit.me/v3/session/SESSION_ID/decision/ \
-H "x-api-key: YOUR_API_KEY"

Step 6: Or run a one-shot gate with the standalone API
When your app already holds a selfie and you just need the age answer, skip the session and call the standalone endpoint. It returns age and passive liveness in a single request, at $0.10 per check.
curl -X POST 'https://verification.didit.me/v3/age-estimation/' \
-H 'x-api-key: YOUR_API_KEY' \
-F 'user_image=@./selfie.jpg' \
-F 'age_estimation_decline_threshold=18' \
-F 'save_api_request=true' \
-F 'vendor_data=user-1234'
The image must be jpg, jpeg, png, tiff or webp, up to 5 MB. PDFs are not accepted. When several faces are present, the largest one drives the estimate. Full reference: Age Estimation API.
Step 7: Route the three outcomes
Approved grants access. Declined with AGE_BELOW_MINIMUM blocks the user and is not retried with the same image. A result near your threshold escalates to Step 8 instead of being granted on the estimate alone, because the model's error grows close to the limit.
Step 8: Add the document fallback
The same call that checks authenticity can enforce the age floor with minimum_age. A document below it returns the MIN_AGE_NOT_REACHED warning.
curl -X POST 'https://verification.didit.me/v3/id-verification/' \
-H 'x-api-key: YOUR_API_KEY' \
-F 'front_image=@./id_front.jpg' \
-F 'minimum_age=18' \
-F 'save_api_request=true' \
-F 'vendor_data=user-1234'
ID Verification reads 14,000+ document types across 220+ countries. Inside a workflow the step is $0.15; on this direct call it is $0.20; inside the full ID-check bundle it counts at $0.15 of the $0.33. See ID Verification.

Step 9: Record the decision and handle the webhook
With save_api_request at its default true, every call becomes an API-type session you can look up later, the face crop and reference image are stored, and a status.updated webhook fires. As an audit convenience, you can keep the session id, the status, the warnings and the timestamp next to your own user record, so you can answer an audit request months later; the console keeps the session itself. Webhook signing and retry behaviour are documented in Webhooks.
Expected output
A completed age estimation call returns the request id and an age block with a status, the predicted age in years, the passive liveness score and the warnings array. The status is Approved only when the warnings array is empty. This is the documented shape, with illustrative values: sandbox keys skip processing and billing and return a static Approved payload with age 30, and the score below is an illustrative liveness value on the documented 0 to 100 scale.
{
"request_id": "returned by the sandbox",
"age_estimation": {
"status": "Approved",
"method": "PASSIVE",
"age_estimation": 30,
"score": 87,
"warnings": []
}
}
On the session route the same values appear under liveness_checks[].age_estimation, and the session's own status sits at the top level of the decision alongside decision_trace, which records whether a person or the rules produced the final status.
Failure cases and recovery
| Signal | What it means | Recovery |
|---|---|---|
| HTTP 400 | Missing or oversized image, or an unsupported extension | Reject the upload, keep the user in the flow, ask for a new photo |
| HTTP 403, not enough credits | The organization balance cannot cover the call, returned before any processing | Top up or turn on auto top-up so live checks do not stop |
| HTTP 403, permission denied | Missing or wrong API key, or a key without the scope | Check the key and its scopes |
| HTTP 429 | Shared write budget of 300 requests a minute per API key | Back off and retry; batch your test runs |
AGE_BELOW_MINIMUM | Estimated age is under age_estimation_decline_threshold | Block access, log the session, do not retry the same image |
LOW_LIVENESS_SCORE or LIVENESS_FACE_ATTACK | Passive liveness at or below face_liveness_score_decline_threshold (default 30), or a presentation attack | Block, treat as suspected spoof, allow one clean retake if your policy allows it |
NO_FACE_DETECTED | No face found by the liveness model | Retake with a front-facing, well-lit photo |
AGE_NOT_DETECTED | Poor image quality, age could not be extracted, the value is null | Ask for a retake, or fall back to the document check |
MULTIPLE_FACES_DETECTED | More than one face in the frame | Retake with one person |
In Review | The rules could not finish the decision | Send to manual review; do not approve on the way in |
The full risk catalogue, with a long description per code, is at Age Estimation warnings.
Inputs and outputs
| Field | Required | What it does |
|---|---|---|
user_image | Yes | The selfie. jpg, jpeg, png, tiff or webp, up to 5 MB, no PDF. One clear, front-facing, well-lit face |
age_estimation_decline_threshold | No | Default 18. An estimate below it raises AGE_BELOW_MINIMUM |
face_liveness_score_decline_threshold | No | Default 30. A score at or below it raises LOW_LIVENESS_SCORE |
save_api_request | No | Default true. Persists an API-type session, stores the face crop and embedding, emits status.updated. False stores nothing |
vendor_data | No | Your stable identifier for the person |
rotate_image | No | Set true when captures may be sideways or upside down |
| Field | What it tells you |
|---|---|
status | One of Not Started, In Progress, Approved, In Review, Declined, Abandoned, Kyc Expired |
age_estimation.age_estimation | Model-predicted age in years, a float, null when age could not be estimated |
age_estimation.score | Passive liveness score from 0 to 100 |
age_estimation.warnings[] | Risk codes such as AGE_BELOW_MINIMUM, LOW_LIVENESS_SCORE, AGE_NOT_DETECTED |
request_id | A real session id when save_api_request is true, usable on the decision endpoint |
Worked cost example
An online gaming operator gates 50,000 new sign-ups a month. Every user goes through age estimation, identity and AML, so the iGaming bundle applies: full ID check $0.33 + AML Screening $0.20 + Age Estimation $0.10 = $0.63 per user.
50,000 x $0.63 = $31,500 a month at list price.
On the Scale plan every Didit price carries a 10% discount, so the same bundle is $0.63 x 0.90 = $0.567 per user, and 50,000 x $0.567 = $28,350 a month.
Now the cheaper shape, for a site that does not need a document from everyone. Gate all 50,000 with age estimation first: 50,000 x $0.10 = $5,000. Suppose 12% of users, 6,000 people, land near or below the threshold and continue to a full ID check: 6,000 x $0.33 = $1,980. AML screening on the 44,000 who clear the gate: 44,000 x $0.20 = $8,800. Total $5,000 + $1,980 + $8,800 = $15,780 a month.
If those escalated users only need the document step inside the same workflow, the escalation is the ID Verification line at $0.15 rather than the $0.33 bundle: 6,000 x $0.15 = $900, and the total becomes $5,000 + $900 + $8,800 = $14,700 a month. The saving comes from not buying a document check for users the selfie already clears, and it is only legitimate if your regulator accepts estimation as a first filter, which is the question to settle before you build.
Paid steps and where a human decides
Every 200 response on the Age Estimation endpoint consumes one check at $0.10, paid from your plan credit first and then from top-ups. You are billed when a check finishes with a result, not when it is queued. A 403 for insufficient balance happens before any image processing, so a failed call costs nothing and returns nothing.
The document fallback is $0.15 inside a workflow or $0.20 on the direct API call, and the full ID-check bundle is $0.33. AML Screening is $0.20 per check. Plan credit does not roll over, and top-ups last 12 months; the rules are on pricing in the docs and the pricing page.
The review boundary is explicit in the response. Approved and Declined are machine decisions. In Review means a person must look, and you should never convert it to access automatically. When a reviewer changes a status by hand, the decision records it in status_override with the automatic status alongside, so the audit trail keeps both readings.
Sources
- Didit docs: Age Estimation overview
- Didit docs: Age Estimation standalone API
- Didit docs: Age Estimation warnings
- Didit docs: ID Verification overview
- Didit docs: Create Session API
- Didit docs: Retrieve Session API
- Didit docs: Webhooks
- Didit docs: pricing and billing
- Didit pricing page and live price feed, read November 26, 2026
- Didit MCP server setup
- Gambling Act 2005, legislation.gov.uk
- Online Safety Act 2023, legislation.gov.uk
- FATF, customer due diligence recommendations
- GDPR, EUR-Lex
Next step: open the sandbox at https://business.didit.me/, create an application, run one age estimation call with a test key, and check the warnings array before you touch production. No sales call is needed to start.
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 does age gating mean?
Age gating is a check that decides whether a user is old enough to reach a product, page or purchase, and blocks the ones who are not. It can be a self-declaration, an estimate from a selfie, or a full document verification. Regulated industries are moving to the last two because a self-declaration cannot be verified.
What is the difference between age estimation and age verification?
Age estimation predicts an age from a face and returns a number with a confidence signal; it does not confirm identity. Age verification confirms a date of birth against a document, a database or a digital ID wallet. Estimation is the cheaper first gate. Verification can support an age decision using a document, database, or digital ID wallet. Whether it satisfies legal proof requirements depends on the market and applicable rules.
How accurate is selfie age estimation on Didit?
Didit's mean absolute error is 1.1 years for 16 and 17-year-olds and 1.9 years for 18 to 20-year-olds, and the model classifies 96% of selfies correctly as under 18 or 18 and over. Error grows near the threshold, which is why borderline users go to a document check rather than be decided on the estimate.
How much does age gating cost?
Didit charges $0.10 per Age Estimation check, $0.15 per ID Verification inside a workflow, $0.20 per ID Verification through the standalone API, $0.33 for a full ID check and $0.20 per AML Screening. The iGaming bundle of full ID check, AML and age estimation is $0.63. Plans are Free with $10 of monthly credit, Growth at $99 a month with 4% off prices, Scale at $299 a month with 10% off, and Enterprise from $15,000 a year.
Do I need an ID document to gate for age?
No, not for every user. The selfie check gates with no document and no identity record, at $0.10 per check. You need a document check wherever the law requires verified age, or for users the estimate places near your threshold, and that is the flow this guide recommends.
Which industries must age gate online?
Rules differ by market, but the groups that usually face age-gating duties are gambling and betting, alcohol and tobacco sales, cannabis where legal, adult content, and financial products with age limits. Social platforms and marketplaces also gate where minors can reach restricted material. The shared obligation is keeping a record of which check ran and what it returned.
How do I handle a user who is just over or just under the age limit?
Treat the band around the threshold as an escalation zone, not a decision zone. Send those users to ID Verification with minimum_age set to your gate, which returns MIN_AGE_NOT_REACHED when the document fails the floor. Everyone else is decided by the estimate.
Can I run an age gate without storing biometric data?
Yes. Set save_api_request to false and nothing is stored: no face crop, no face embedding, and the returned request_id cannot be looked up later. You lose the console record and the duplicate-face signal. If you keep the default true, the session's decision includes biometric_retention with the deletion date for the live biometric data.
How do I test an age gate without spending credits?
Use a sandbox key. Sandbox keys skip processing and billing, no session is persisted, and the endpoint returns a static Approved mock payload with an estimated age of 30 and no warnings. Malformed input still returns a 400, so you can test validation too. Sandbox testing is free and unlimited.
Can an AI assistant set up age gating for me?
Yes. Didit provides a hosted MCP server at https://mcp.didit.me/mcp with OAuth sign-in, for connecting an AI assistant. See the MCP setup documentation for supported operations, and the single integration prompt for the build itself.
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


