Business
Social media age verification (2026): methods and implementation
Verify age with a selfie: Didit Age Estimation is $0.10 per check with passive liveness included, and a borderline result falls back to an ID check at $0.15. A selfie estimate gates access; it is not legal proof of age.

Contents
In this guide
Jump to the part you need.
Age verification for social media fits any platform that must keep minors out of some or all features, from an 18+ area to a full under-16 restriction. Our route is a selfie age check at $0.10 per check with passive liveness included, plus an ID document fallback at $0.15 when the estimate lands near your threshold. A selfie estimate is a probability, not legal proof of age, so keep a document path for borderline and appealed cases.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
At a glance
| What you need | Didit module | List price | Notes |
|---|---|---|---|
| Selfie age check with liveness in one call | Age Estimation | $0.10 per check | Passive liveness is included in that price, not billed as a second line. Returns predicted age, liveness score and warnings |
| Age check inside a hosted workflow | Age Estimation enabled on the Liveness node | $0.10 per check | There is no separate age estimation workflow feature; the result lands on the Liveness entry |
| Document fallback | ID Verification | $0.15 per check | 14,000+ document types, 220+ countries, 54 capture languages |
| Selfie to document match in the fallback | Face Match 1:1 | $0.05 per check | Compares the live selfie with the document portrait |
| Full ID check bundle | KYC | $0.33 per check | ID $0.15 + passive liveness $0.10 + face match $0.05 + device and IP analysis $0.03 |
| Your brand on the flow | White Label flow | $0.10 per check | Your logo and your domain instead of Didit |
| Testing | Sandbox | Free | Sandbox testing is free and unlimited on every plan, with mock results and no credits consumed |
Start free in the sandbox at business.didit.me without a sales call. The age estimation docs are at docs.didit.me, every unit price is on didit.me/pricing, and a developer who wants an AI assistant to wire the flow can connect Didit over MCP.
The outcome you are building
The finished flow asks most new users for one selfie and nothing else. The selfie returns a predicted age and a passive liveness score, which catches photos of photos, screens and masks without asking the user to turn their head or blink. Only when the estimate sits near your threshold, or the image fails, does the user get asked for a government ID. Users who clear the threshold can continue without submitting a document.
Keep two words apart. Assurance means a high probability that someone is over the threshold. Verification means a document proves it. Selfie age estimation is assurance. An ID document with a face match is verification. Our guidance is to use assurance for lower-risk access and verification for higher-risk paths, and to run both in one workflow with a rule between them. That is our recommendation, not a summary of any single statute.

Prerequisites
- A Didit account. Eligible organizations that sign up with a work email for a company domain get $10 of monthly credit on the Free plan, and sandbox testing is free and unlimited on every plan.
- A workflow containing a Liveness feature, with age estimation enabled on that node and
age_estimation_decline_thresholdset to your market threshold. - An API key from the console, and a place to capture the selfie: the hosted session URL, the Web or Mobile SDK, or your own capture screen calling the standalone API.
- A webhook destination, or a decision fetch after the user returns, so the result reaches your database. Webhooks carry
status.updated, and the same result is available from the decision endpoint. - A written policy: thresholds per market (13+, 16+ or 18+), the borderline band where you switch to documents, the minimum liveness score you accept, and what the user sees on decline.
How to add age verification to a social app in 7 steps
Step 1. Set the threshold and the fallback rule before you write code
Decide three numbers. The threshold per market, which becomes age_estimation_decline_threshold, default 18. The borderline band around it where you ask for a document, which is your policy, not a platform setting. And the liveness score below which you reject outright, controlled by face_liveness_score_decline_threshold, default 30. The age model's error grows for faces close to the limit, so the band is where accuracy is bought back with a document rather than with a guess.
Step 2. Build the workflow
In the console, open Workflows, click New workflow, and start from the Adaptive Age Verification template, which is a selfie age check with an ID fallback. Or start empty and add a Liveness node with age estimation enabled. In hosted flows age estimation is embedded inside the Liveness step, so that node is where you configure it, the threshold included.
Step 3. Create a session and send the user to it
curl -X POST https://verification.didit.me/v3/session/ \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"workflow_id": "WORKFLOW_UUID", "vendor_data": "user-42", "callback": "https://myapp.com/age/return"}'
The response carries session_id, url and session_token. Redirect the browser to url, or mount it in the SDK. Send vendor_data as your own stable user id so the session binds to the account and duplicate detection works across sessions.
Step 4. Capture one clear selfie
Ask for a single, front-facing, well-lit face. The age model works on the largest face in the frame, so a group photo returns the wrong person's age. If captures may arrive sideways or upside down, the standalone API accepts rotate_image=true.

Step 5. Read the decision
curl https://verification.didit.me/v3/session/SESSION_ID/decision/ \
-H "x-api-key: $DIDIT_API_KEY"
The age result sits at liveness_checks[].age_estimation on each Liveness entry, not in a top-level age array. Read the session status, the estimated age and the warnings list before you approve access.

Step 6. Use the standalone API when you already hold the selfie
If your own capture screen takes the photo, one call returns the age estimate and the passive liveness score together.
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'
user_image is required: jpg, jpeg, png, tiff or webp, maximum 5 MB, and PDFs are not accepted. save_api_request defaults to true, and that setting is the privacy switch. With true, the call is persisted as an API session, the face crop and reference image are stored, the face embedding joins your application's face index for face search and duplicate detection, and a status.updated webhook fires. With false, nothing is stored and the returned request_id is a one-off id you cannot look up later, which also means no face search and no webhook. Choose false when your privacy policy does not cover stored biometrics, and true when you need the console record.
Step 7. Route the three outcomes
Approve, fall back, reject. Approved means the estimate clears the threshold with a liveness score above the floor and an empty warnings array: let the user in, no document. Borderline means your configured fallback runs, and the Adaptive Age Verification template ships exactly that, an ID step in the same session. That adds ID Verification $0.15 and Face Match $0.05, or $0.33 for the full ID check bundle. Declined with AGE_BELOW_MINIMUM means the person is under your threshold: reject the sign-up quietly, without telling them how to beat the check.
Decision matrix: approve, retake, route to ID, or reject
| Result | Signal to read | Action |
|---|---|---|
| Approve | warnings empty, predicted age above the threshold, liveness score above the floor | Grant access. No document, no retake |
| Route to ID | Predicted age inside the borderline band you set around the threshold | Run the configured document step in the same workflow, with a face match against the document portrait |
| Retake once | Declined with AGE_NOT_DETECTED, NO_FACE_DETECTED or MULTIPLE_FACES_DETECTED | Ask for one new selfie in better light, one face, no sunglasses. A second failure goes to the document step |
| Reject | Declined with AGE_BELOW_MINIMUM | Apply the under-age path for that market, and do not hint at the threshold |
| Reject and log | Declined with LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE | Reject, keep the session record, cap the retries |
Inputs and outputs
| Field | Type | Rule |
|---|---|---|
user_image | file | Required. jpg, jpeg, png, tiff or webp, maximum 5 MB, no PDF |
age_estimation_decline_threshold | integer | Default 18. Below it, the status is Declined |
face_liveness_score_decline_threshold | integer | Default 30. Score at or below it adds a low-liveness warning |
save_api_request | boolean | Default true. False stores nothing and returns a one-off id |
vendor_data | string | Your stable user id |
rotate_image | boolean | For sideways or upside-down captures |
| Field | Type | Meaning |
|---|---|---|
request_id | string | A session id when save_api_request is true, a one-off correlation id when false |
age_estimation.status | enum | Approved or Declined |
age_estimation.method | string | PASSIVE |
age_estimation.age_estimation | float | Predicted age in years, null when no age could be read |
age_estimation.score | integer | Passive liveness score, 0 to 100 |
age_estimation.warnings | array | Risk codes such as AGE_BELOW_MINIMUM or LOW_LIVENESS_SCORE |
Expected result
{
"request_id": "0f6a1c2e-session-or-correlation-id",
"age_estimation": {
"status": "Approved",
"method": "PASSIVE",
"age_estimation": 24.6,
"score": 92,
"warnings": []
}
}
The numbers above show the documented field shape, not a real response. status is Approved only when warnings is empty, so treat any warning as a signal even when the predicted age looks comfortable. The model'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 it classifies 96% of selfies correctly as under 18 or 18 and over.
Failure cases and recovery
| Failure | What you see | Recovery |
|---|---|---|
| Missing, oversized or PDF image, or an unsupported extension | HTTP 400 | Re-request the photo and enforce the format and 5 MB limit in the capture screen |
| Organization out of credit | HTTP 403 before any image processing | Top up, or keep testing in the sandbox, where testing is free and unlimited |
| Missing or invalid API key | HTTP 403 with a permission detail | Check the x-api-key header. This endpoint does not return 401 for bad credentials |
| Too many calls | HTTP 429 | The shared write budget is 300 requests per minute per API key; spread retries instead of looping |
| User is under the threshold | Declined with AGE_BELOW_MINIMUM | Reject, and route to the under-age path your market requires |
| Age could not be read from the image | Declined with AGE_NOT_DETECTED, age is null | Ask for a retake in better light, one face, no sunglasses |
| Presentation attack suspected | LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE | Reject and log the session; do not offer an unlimited retry loop |
| No face, or several faces | NO_FACE_DETECTED or MULTIPLE_FACES_DETECTED | Prompt for a single front-facing face and retry once |
What you pay for, and where a human decides
You pay per completed check from prepaid credit. Sandbox runs cost nothing and return a static Approved mock with an age of 30 and no warnings. Age Estimation is $0.10 per check, in a hosted workflow and through the standalone API alike, and passive liveness is included in that price rather than billed as a second line. The fallback document step adds ID Verification at $0.15 and Face Match at $0.05, or $0.33 for the full ID check, which carries its own passive liveness plus device and IP analysis. Device and IP analysis alone is $0.03, and White Label is $0.10. Growth takes 4% off every Didit price and Scale takes 10%. Free plan credit does not cover phone codes, and this flow does not need them.
The two routes bill the same $0.10 and differ in where the record lives. A hosted workflow session appears in the console with its steps and its decision trace. The standalone POST /v3/age-estimation/ call is a single request that becomes a session only when save_api_request is true, and the price book lists it as the Age estimation API line at $0.10 per check.
Four boundaries belong to you, not to the model. The threshold per market. The width of the borderline band. The decision to reject rather than offer another attempt. And the appeal path: an adult who fails a selfie check needs a documented route back in, which is the ID fallback. Disputed cases can be routed for manual review in the console, where the decision trace records who decided and when; this article does not quote a review price.
Worked cost example
Assume 100,000 new sign-ups a month and a borderline rate of 12%, so 88,000 users clear the selfie check and 12,000 need a document.
- Selfie age checks, liveness included: 100,000 x $0.10 = $10,000.00
- Document fallbacks at the full ID check price: 12,000 x $0.33 = $3,960.00
- Monthly total at list price: $10,000.00 + $3,960.00 = $13,960.00, which is $0.1396 per sign-up
The same volume on Growth, at 4% off: 100,000 x $0.096 = $9,600.00, plus 12,000 x $0.3168 = $3,801.60, which is $13,401.60. The $115 of monthly Growth credit covers the first $115 and the rest comes from top-ups. If you brand the flow with White Label, add 100,000 x $0.10 = $10,000.00 at list price. Narrow the borderline band and the fallback line falls with it, which makes the band a budget decision as much as a compliance one.
Age verification methods compared
| Method | What it proves | User cost in effort | Didit price |
|---|---|---|---|
| Self declaration | A claim, not an independent age signal | One tap | Not a Didit product |
| Selfie age estimation with passive liveness | A probability that the person is over the threshold, and that a live person was present | One photo | $0.10 per check, liveness included |
| ID document plus selfie face match | That the person holds a document stating their date of birth | Photo of a document, plus the selfie | $0.15 + $0.05, or $0.33 as the full ID check |
| Digital ID wallet | A government or bank-backed credential, often an age-over claim without a birth date | Sign-in to the wallet | BankID Sweden $0.20, MitID $0.25, Smart-ID $0.21, iDIN $0.95, EUDI Wallet $0.15 listed as coming soon |
| Credit card | That someone owns a card, not that the user is an adult | A card entry | Not offered by Didit as an age proof |
| Device and IP signals | Context: a reused device, a risky network, a mismatched country | None | $0.03 per check, as a supporting layer |
Obligations by region, and what we recommend
We are not your lawyer. Below are only the instruments we can point to directly, followed by the implementation pattern we use, clearly labelled as our own guidance.
| Region | Instrument | What the text does |
|---|---|---|
| United Kingdom | Online Safety Act 2023, with Ofcom as the regulator | Places duties on user-to-user services to protect children, and gives the regulator enforcement powers and penalties set by the Act |
| European Union | Digital Services Act, Regulation (EU) 2022/2065 | Article 28 requires providers of online platforms accessible to minors to put in place measures to ensure a high level of privacy, safety and security of minors |
Our implementation guidance, not a statement of what every regulator requires. Thresholds must be configuration, not code, because the number changes by country and by product surface. And the decision has to be auditable, because a supervisor will ask which method you used, what it returned and who reviewed the exception. Build both before you launch, and let your counsel map the specific duty that applies to your service.
Privacy, accuracy and exclusion
The three objections to age checks on social platforms are real and each has an engineering answer.
- Privacy. Ask only what the threshold needs. Passive liveness shows the user's face blurred on screen so it reads as an age check, not an identification, and
save_api_request=falseexists for flows where you do not want the image stored at all. - Accuracy and bias. Do not run one threshold worldwide with one band. Measure your own approve and decline rates by market and age band, and widen the fallback band where the model is least certain, which is right around the threshold.
- Exclusion. Users without documents, with poor cameras or with accessibility needs must have a second route. Keep the document fallback, allow a controlled retake, and keep a human review path for appeals.
- Transparency. Tell the user why the check runs, which method is used and what happens to the image. Retention is a plan setting, from one year on Free to up to ten years on Scale, and custom on Enterprise.
Sources
- Didit docs: Age Estimation API overview
- Didit docs: standalone age estimation endpoint
- Didit docs: Create Session
- Didit docs: Retrieve Session decision
- Didit docs: ID Verification overview
- Didit docs: pricing and billing rules
- Didit docs: quick start
- Didit pricing page and cost estimator
- Didit MCP server
- Didit console (sandbox sign-up)
- Online Safety Act 2023 (legislation.gov.uk)
- Digital Services Act, Regulation (EU) 2022/2065 (EUR-Lex)
Next step: create a free sandbox application at business.didit.me, build the Adaptive Age Verification workflow, and run the selfie check against the sandbox mock before you spend a dollar on live traffic. You can start the sandbox without a sales call.
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
How does age verification work on social media?
It works in two layers. A selfie age estimation check returns a predicted age plus a passive liveness score, and only borderline results move to a government ID check. On Didit the selfie layer costs $0.10 per check with passive liveness included, and the ID document layer $0.15, or $0.33 as a full ID check bundle.
What is the best age verification method for social media?
Selfie age estimation with liveness as the first line, with an ID document fallback for borderline cases. Users who pass the selfie check can continue after one photo. The liveness model is designed to detect presentation attacks, and a document is asked for only where the estimate is uncertain. Self-declaration records a claim but does not provide an independent age signal.
What is the age verification process from the user's side?
The user taps sign-up, is asked for one front-facing selfie, and the model returns an inference in under two seconds at p99. If the estimate clears the threshold they continue without ever showing a document. If the estimate sits inside the borderline band, the Adaptive Age Verification workflow runs its configured document step in the same session and asks for a passport, ID card or driving licence, then matches the face to it.
How much does age verification cost per user?
On Didit, an age estimation check is $0.10 including passive liveness, an ID document check is $0.15, and a full ID check bundle is $0.33. Growth takes 4% off every price and Scale takes 10%. Billing is per completed check from prepaid credit, and sandbox testing is free and unlimited on every plan.
Is a selfie age estimate legal proof of age?
No. The age is model-predicted from the face, not verified against a document, so it belongs in age gates and light checks. Where a dispute or a statutory duty needs proof, route to the ID document step, which reads 14,000+ document types across 220+ countries.
Should I use the hosted workflow or the standalone Age Estimation API?
Both charge $0.10 per check with passive liveness included. Use the hosted workflow when you want the steps, the console record and the configured ID fallback in one session, and use POST /v3/age-estimation/ when your own screen already holds the selfie and you need a one-shot answer. The standalone call keeps a record only when save_api_request is true.
What happens if the model cannot estimate the user's age?
The call comes back Declined with the warning AGE_NOT_DETECTED and the predicted age is null, usually because of poor light or a partial face. Ask for a retake rather than rejecting the person outright. If the retake fails too, send them to the document fallback.
Which error codes must an integration handle?
Handle HTTP 400 for a missing, oversized or unsupported image, 403 when the account is out of credit, and 429 above 300 write requests per minute per API key. A Declined status carries warnings such as AGE_BELOW_MINIMUM, LOW_LIVENESS_SCORE, LIVENESS_FACE_ATTACK, NO_FACE_DETECTED, MULTIPLE_FACES_DETECTED or AGE_NOT_DETECTED.
Do credit cards prove age?
No. A card proves that someone owns a payment instrument, which is a weak signal rather than proof of the user's age. Use card data, if at all, as one signal among several, and never as the only check where effective age assurance is expected.
Which countries does Didit cover for age verification?
Didit supports document verification in 220+ countries and territories, reads 14,000+ document types, and the verification flow runs in 54 capture languages. Age Estimation itself is a selfie model, so we do not publish a separate country coverage number for it. Thresholds and fallback bands are configuration you set per market.
Why do some people oppose age verification on social media?
Three reasons: fear of mass identity collection, uneven accuracy across demographics, and exclusion of people without documents. Each has a design answer, namely data minimisation, thresholds measured per market, and a document fallback plus a human appeal path. Platforms that ship all three can defend the flow to users and to regulators.
Can I test social media age verification for free?
Yes. Sandbox testing is free and unlimited on every plan. Sandbox API keys skip processing and billing and return a static Approved mock with an age of 30 and no warnings, so you can build the whole flow before spending anything.
How do I handle an adult who fails the selfie check?
Send them to the ID document fallback, allow one controlled retake, and route disputes to manual review in the console. The decision trace records whether the outcome came from the model or from a person. Keep the appeal route documented, because an adult locked out of an account is the case that reaches a regulator.
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


