Global Guide to Age Estimation Laws and Compliance
Age laws set a duty, not a technology. Use a selfie age estimate with liveness at $0.10 per check as the first gate, then escalate borderline faces to ID verification at $0.33.

Contents
In this guide
Jump to the part you need.
Age estimation fits products that must keep minors out of a feature without demanding a passport from every adult: social apps, gaming, alcohol and vape commerce, dating, adult content. A Didit selfie check costs $0.10 and includes passive liveness. The caveat is the one that matters: a predicted age is not a document-checked age, so faces close to your threshold still need an ID fallback.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Question | Short answer |
|---|---|
| What the law asks for | A check that a user meets the age your service sets, a lawful basis for any face data, and evidence that the method was proportionate. The duty and the evidence standard vary by market. |
| Recommended first gate | Didit Age Estimation from a selfie, with passive liveness in the same call, at $0.10 per completed check |
| Hosted session vs standalone API | Hosted: age estimation sits inside the Liveness step of a workflow, and the result is at liveness_checks[].age_estimation. Standalone: POST /v3/age-estimation/ sends one selfie and returns the age and liveness score in the same call. |
| When the gate is not enough | Escalate to a full ID check at $0.33 when the estimate sits near your threshold, a warning fires, or the market expects document proof |
| Who sets the threshold | You do, per market and per regulated use. Set the threshold for each jurisdiction and use case. Do not assume one global age. |
| Evidence to keep | Session id, status, predicted age, warnings, the threshold you used, and any biometric consent record |
Start in the sandbox at business.didit.me with no sales call: the sandbox is free and unlimited on every plan, and sandbox keys skip processing and billing. For developers, connect Didit to an AI assistant via the Didit MCP server. Prices and the cost estimator are on didit.me/pricing.
What age compliance has to prove
Most regulators do not name a technology. They set a duty and leave the method to you: do not give children a service they are not allowed to have, do not process their data without a lawful basis, and do not collect face geometry without the notice your state requires. The three levels below are an implementation pattern we use; the assurance level you actually need depends on the applicable law, your licence and your risk assessment, and the legal duty itself is set by each market.
- Self-declaration plus an estimate. Lowest friction and weakest evidence. Fits content rating prompts and low-risk features.
- Estimate with liveness in the same call. The liveness model checks for presentation attacks such as photos, screens and masks, and the call declines when the relevant warning is raised. This is the level most social, gaming and e-commerce age gates need.
- Document verification. The ID document is read and matched to a selfie. This gives the strongest evidence, it is the right fallback for anyone inside your margin, and it is the check your licence or regulator guidance may require.
The regulations that come up most often
This section describes legal duties, not product features. The duties and the evidence standard vary by jurisdiction and by the type of service.
GDPR Article 8 in the EU
Information society services offered directly to a child need consent from the holder of parental responsibility when the child is below the age the member state sets, between 13 and 16. The article also asks for reasonable efforts to verify that consent, which is where an age gate earns its place. The text is Regulation (EU) 2016/679. The practical point for age compliance is that the digital age of consent is not one number across Europe.
COPPA in the United States
The Children's Online Privacy Protection Act covers personal information collected online from children under 13 and requires verifiable parental consent before collection. The rule is published by the US Federal Trade Commission. It does not prescribe a specific technology. A neutral age gate that does not nudge a child toward a false birth year is the usual first step, and services aimed at children go further.
UK Children's Code and the Online Safety Act
The Age Appropriate Design Code sets standards for services likely to be accessed by children, and the Online Safety Act 2023 puts age assurance duties on services that host or publish content restricted to adults. Both reward decisions you can document: what threshold you chose, why, and what happens when someone fails.
US state biometric laws: BIPA, CUBI and Colorado
Illinois (BIPA), Texas (CUBI) and Colorado require a notice and an explicit release before a business collects face geometry, whether from a selfie or from the photo on an ID. Didit can show a consent step before the first face capture and keep the answer on the session as evidence. The triggers and the decision fields are in the biometric consent docs.
EU AI Act and German youth protection
Didit's systems are designed in alignment with the EU AI Act requirements for high-risk AI systems, covering transparency, human oversight, data governance and bias monitoring. Separately, Germany's FSM certified Didit's Age Verification System as establishing a closed user group under Section 4(2) JMStV. Both are recorded in security and compliance.
Other markets
Other markets set their own age-assurance duties. Check the regulator for each market you serve before you launch, and record the guidance you relied on.
The method we recommend, and what you end up with
By the end of this guide you have four things: a written threshold policy, a working selfie age gate with liveness, an escalation path to a document check, and the evidence to explain the choice. Run the estimate first and the document check second. That order keeps most adults out of a passport upload and saves the stronger check for the people who need it.
The numbers support that split. Didit's model has a mean absolute error of 1.1 years at 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, as published in the age estimation overview. Those reported figures describe how the model performs; they do not establish legal or licensing sufficiency for any given use. Choose a margin and validate it against your legal and risk requirements with counsel; route anything inside it to ID verification.

Prerequisites
- A Didit organization and an application. Sandbox testing is free and unlimited on every plan.
- An API key for that application, sent in the
x-api-keyheader. This API never returns 401; a bad key returns 403. - Your threshold in writing, set per market and per regulated use. Do not assume one global age.
- A fallback rule: which warnings and which age band send a user to a full ID check at $0.33, set per jurisdiction and use case.
- Consent text if you capture faces in Illinois, Texas or Colorado, and native SDK 4.10.0 or later if those users verify inside a native app.
- A store for the evidence: session id, status, predicted age, warnings, threshold used, consent record, and a retention period set per jurisdiction and use case.
Step by step
- Write the policy before you code. Threshold, margin, fallback, retention period, consent text, and who reviews a contested decline. Set each of these per jurisdiction and use case, because every later decision follows from that page and it is the first thing an auditor asks for.
- Create the application and copy its API key. Start in the sandbox. Sandbox keys skip all processing and billing: after request validation they return a static Approved mock with
age_estimation: 30and no warnings, no session is persisted, and no credits are consumed. - Choose the mode. Inside a hosted flow or an SDK, age estimation is embedded in the Liveness step: enable it on the Liveness node in the console and set
age_estimation_decline_threshold. For server-to-server gating on a selfie you already hold, use the standalone endpoint. There is no separateage_estimationworkflow feature. - Call the standalone endpoint with a real selfie. The key goes in the
x-api-keyheader and the file goes inuser_image.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 file must be jpg, jpeg, png, tiff or webp and no larger than 5 MB. PDFs are rejected. When several faces are present, the largest face drives the estimate. If captures may be sideways, send
rotate_image=true.
The selfie is scored for liveness and estimated for age in the same call, so one capture answers both questions. - Read the status before you read the age.
statusis Approved only when thewarningsarray is empty. Any warning means the call is not a pass, even when the predicted age looks fine. - Route on the warning, not on the number alone.
AGE_BELOW_MINIMUMrejects.AGE_NOT_DETECTEDasks for a retake.LOW_LIVENESS_SCOREorLIVENESS_FACE_ATTACKrejects and logs a suspected presentation attack.MULTIPLE_FACES_DETECTEDasks for a single-person selfie. The full catalogue is in the age estimation warnings reference. - Escalate the borderline band to a full KYC session. Create the session with your workflow id, your user id, and, for US users, the state, so the consent step can fire before any face geometry is computed.
{ "workflow_id": "YOUR_WORKFLOW_ID", "vendor_data": "user-42", "user_state": "US-IL", "biometric_consent": { "given_at": "2026-10-13T09:12:00Z", "text_version": "consent-v3" } }Those fields are documented in Create Session. Send
biometric_consentonly when you already collected it; otherwise leave it out and Didit asks during the flow. In Auto mode the step appears for a declared covered state, an IP in Illinois, Texas or Colorado, a document issued by one of those states, or a US location with no resolvable state. - Read the decision in one place. For a session, call
GET /v3/session/{sessionId}/decision/. The age result sits atliveness_checks[].age_estimationon each Liveness entry, not in a top-level array. Handle the status enum: Not Started, In Progress, Approved, In Review, Declined, Abandoned, Kyc Expired. The canonical schema is in the data models reference. - Go live and keep the evidence. Swap the sandbox key for the live key, leave
save_api_requestat its default of true so every call becomes a session you can look up later, and store the decision fields against the user. A stored session also emits a status webhook you can use to close the loop.
What the response looks like
{
"request_id": "REQUEST_ID",
"age_estimation": {
"status": "Approved",
"method": "PASSIVE",
"age_estimation": "AGE_IN_YEARS",
"score": "LIVENESS_SCORE_0_TO_100",
"user_image": { "entities": ["ENTITY"] },
"warnings": []
}
}
That is the documented envelope: status, method, predicted age in years, passive liveness score from 0 to 100, the entities found in the image, and the warnings array. In the sandbox the same call returns a static Approved mock with age_estimation: 30 and an empty warnings array, so you can test your routing before a real face arrives. On a live key each 200 response consumes one Age Estimation credit at $0.10.

Failure cases and recovery
| What you see | What it means | Recovery |
|---|---|---|
| HTTP 400 | Missing or oversized user_image, or an unsupported extension | Check type and the 5 MB limit, then retry. A PDF is never accepted. |
| HTTP 403 with a credits error | The organization balance cannot cover the call | Top up or change plan. The endpoint refuses before any image processing. |
| HTTP 403 permission error | Missing or invalid API key | Send a valid x-api-key. This API never returns 401. |
| HTTP 429 | Over the shared 300 requests per minute write budget for the key | Slow the caller down and retry with backoff. |
Declined with AGE_BELOW_MINIMUM | Predicted age is below your decline threshold | Reject, or offer the document path if your policy allows an appeal. |
Declined with AGE_NOT_DETECTED | No age could be extracted from the image | Ask for a retake with better light, one face, and no sunglasses. |
Declined with NO_FACE_DETECTED | The liveness model found no face in the frame | Ask for a retake: fill the frame with one face, use good light, and remove any mask or sunglasses. |
Declined with LOW_LIVENESS_SCORE or LIVENESS_FACE_ATTACK | A presentation attack is suspected | Reject and log it. Do not loop the user through silent retries. |
Declined with MULTIPLE_FACES_DETECTED | More than one face in the frame | Ask for a single-person selfie. |
Inputs and outputs
| Field | Direction | Notes |
|---|---|---|
user_image | Input, required | jpg, jpeg, png, tiff or webp, max 5 MB. No PDF. |
age_estimation_decline_threshold | Input | Default 18. A predicted age below it declines the call. |
face_liveness_score_decline_threshold | Input | Default 30. A liveness score at or below it adds LOW_LIVENESS_SCORE. |
save_api_request | Input | Default true. Persists the call as a session you can look up, and emits a status webhook. |
vendor_data | Input | Your stable identifier for the user. |
request_id | Output | A real session id when save_api_request is true, a one-off correlation id when false. |
status | Output | Approved only when the warnings array is empty. |
age_estimation | Output | Predicted age in years, null when no age could be estimated. |
score | Output | Passive liveness score from 0 to 100. |
warnings | Output | Risk codes including AGE_BELOW_MINIMUM, AGE_NOT_DETECTED, LOW_LIVENESS_SCORE, NO_FACE_DETECTED, LIVENESS_FACE_ATTACK and MULTIPLE_FACES_DETECTED. |
Paid steps and review boundaries
Every completed age estimation is $0.10, and each 200 response consumes one credit. The escalation is a full ID check at $0.33. If your policy includes human review, define that process separately. Sandbox calls are free and never billed, and a 403 for credits is refused before any image processing, so a retry cannot quietly drain a balance. Prices and plan discounts are on didit.me/pricing.
Two boundaries matter. First, Didit shows the biometric consent step and records the answer, but whether your user journey meets BIPA, CUBI or Colorado is your decision and your counsel's. Second, an age estimate is a prediction, not legal proof of age. For regulated sales and gambling licences, check the applicable licence and regulator guidance to determine whether document verification is required, and route contested declines to a human rather than to another automated attempt.
Worked cost example
Take 100,000 age gates a month, with 6% of them escalating to a full ID check.
- Age estimation: 100,000 × $0.10 = $10,000.00
- Escalations: 6% of 100,000 = 6,000 checks. 6,000 × $0.33 = $1,980.00
- Total at list price: $10,000.00 + $1,980.00 = $11,980.00
On Scale, where every Didit price is 10% lower:
- Age estimation: 100,000 × $0.09 = $9,000.00
- Escalations: 6,000 × $0.297 = $1,782.00
- Total: $9,000.00 + $1,782.00 = $10,782.00, with the plan's $350 of monthly credit applied against it
If the same user also needs AML screening, the iGaming bundle prices the stack as one line: $0.33 full KYC + $0.20 AML screening + $0.10 age estimation = $0.63 per user. On the Free plan, $10 of monthly credit covers 100 age estimations at $0.10 before a top-up is touched.
Where this fits by industry
- Alcohol, tobacco and vape e-commerce. Estimate at checkout, send anything inside the margin to an ID check, and keep the decision with the order.
- Social and dating apps. Estimate at signup to set age-appropriate defaults, and re-run when a user changes a stated birth date.
- Gaming. Use the estimate to decide who gets restricted lobbies, moderated chat and spending limits.
- Gambling and adult content. Treat the estimate as a first gate only. Check the applicable licence and regulator guidance to determine whether document verification is required.
Sources
- Didit docs: Age Estimation API overview
- Didit docs: standalone age estimation endpoint
- Didit docs: age estimation warnings
- Didit docs: age estimation report
- Didit docs: biometric consent for BIPA, CUBI and Colorado
- Didit docs: Create Session API
- Didit docs: data models
- Didit docs: security and compliance
- Didit docs: pricing and billing
- Didit pricing page
- Regulation (EU) 2016/679 (GDPR), Article 8
- Regulation (EU) 2024/1689 (EU AI Act)
- Online Safety Act 2023 (UK)
- Age Appropriate Design Code (UK, gov.uk)
- US Federal Trade Commission: COPPA rule
The next step is a sandbox application: create one at business.didit.me, run the curl call with your sandbox key, and check your warning routing against the mock response before a live key reaches real users. No sales call is needed to start, and switching an existing flow over is described at didit.me/switch.
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 are the main age verification laws a company has to follow?
The list depends on the markets you serve. The core set is GDPR Article 8 in the EU, which sets a digital age of consent between 13 and 16 by member state, COPPA in the US for children under 13, the UK Age Appropriate Design Code and the Online Safety Act 2023, and US state biometric laws in Illinois, Texas and Colorado. Other markets set their own duties, so check the regulator for each market you serve. Most of them set a duty rather than a named technology, so you document the method you chose.
Is selfie age estimation allowed under GDPR?
It can be allowed, but you need an Article 6 lawful basis and, where the processing is biometric data under GDPR, an applicable Article 9 condition. Confirm the classification, safeguards, retention and transparency with counsel before launch. Didit acts as the data processor and you remain the controller, EU infrastructure is the default, and retention is configurable from one month to ten years, and you can request the DPA and TOMs from privacy@didit.me.
What age counts as a child under GDPR?
Under Article 8, information society services offered directly to a child need parental consent below the age the member state sets, which falls between 13 and 16. So a single 13-plus gate is not enough across the EU: read the member states you sell into and set the threshold per market.
Does COPPA require age verification?
COPPA requires verifiable parental consent before collecting personal information from children under 13, and it does not prescribe a specific technology. A neutral age gate that does not steer a child toward a false birth year, followed by a consent mechanism, is the usual pattern for services not directed at children. The rule is published by the US Federal Trade Commission.
Do I need consent before a selfie age check in Illinois or Texas?
Yes. Illinois BIPA, Texas CUBI and Colorado require a notice and an explicit release before face geometry is collected. Didit can show that step before the first face capture and record the answer on the session, and you can also send consent you already collected with the biometric_consent field when you create the session.
How accurate is Didit age estimation around the age of 18?
The 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. That supports a fast age gate, and it is why Didit's own documentation recommends a document-based fallback for borderline ages.
What happens if the estimate comes back below 18?
The status is Declined and the warnings array carries AGE_BELOW_MINIMUM, because the predicted age fell below age_estimation_decline_threshold. Your application decides what the user sees next; a document check is the usual appeal path, and a human review process, if your policy has one, is the usual route when a user contests the result.
Can age estimation replace ID verification?
It depends on the market and the licence. Age estimation is a first gate that keeps most adults out of a document upload; document verification stays as the fallback for the borderline band and wherever the applicable licence or regulator guidance requires document-grade proof. Check that guidance for each market before you rely on a selfie estimate alone.
How much does age estimation cost?
Age estimation is $0.10 per completed check at list price, $0.096 on Growth and $0.09 on Scale. Escalating a user to a full ID check costs $0.33 at list price, and sandbox calls are free on every plan. If your policy includes human review, that process is defined separately.
How do I add age estimation to an existing Didit workflow?
Enable it on the Liveness node in the console and set the decline threshold. There is no separate age estimation workflow feature, and the result appears at liveness_checks[].age_estimation in the session decision rather than in a top-level array.
Does Didit cover age checks outside the EU and the US?
Checks run in 220+ countries and territories, with 54 languages in the verification flow, and Didit counts 4,000+ companies as customers. Germany's FSM has certified the Age Verification System under Section 4(2) JMStV, and the platform holds SOC 2 Type 2, ISO/IEC 27001 and iBeta Level 1 and Level 2 certification.
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


