Age Estimation API: Fintech Compliance in the US, 2026 How-To
Didit's Age Estimation API predicts age from one selfie with passive liveness for $0.10 per check. Use it as an age gate, not legal proof of age, and escalate borderline users to ID verification.

Contents
In this guide
Jump to the part you need.
This guide is for US fintech teams that need an age gate without collecting an ID from every user. Didit's Age Estimation API returns a predicted age and a passive liveness score from one selfie, at $0.10 per check. The caveat matters: the age is model-predicted, not verified against a document, so use it as a gate and send borderline users to ID verification.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Item | Detail |
|---|---|
| Endpoint | POST https://verification.didit.me/v3/age-estimation/, multipart form data, x-api-key header |
| Price | $0.10 per check at list price. Growth $0.096, Scale $0.09. Sandbox testing is free and unlimited. |
| Returns | Predicted age in years, a passive liveness score from 0 to 100, Approved or Declined, and a warnings array |
| Does not do | Prove age against a government document. The age is a model prediction. |
| Required input | One face photo, user_image, in tiff, jpg, jpeg, png or webp, maximum 5 MB, no PDF |
| Default thresholds | age_estimation_decline_threshold 18, face_liveness_score_decline_threshold 30 |
| Escalation path | ID Verification at $0.15, or a full ID check at $0.33 |
| Rate limit | 300 requests per minute per API key across POST, PATCH and DELETE |
Start free in the sandbox at business.didit.me, with no sales call. Developers who work with an AI assistant can connect Didit through the MCP server. The reference for this call is the Age Estimation API page, the overview is at Age Estimation, and every list price sits on didit.me/pricing.
The outcome, and the method we recommend
The outcome is one call inside your onboarding that returns a decision you can enforce: Approved or Declined, a predicted age in years, a passive liveness score, and a warnings array that tells you why. You get it without asking for a document. When save_api_request is enabled, which is the default, the call is stored as a session record; that record is evidence of the check, not by itself a statement that your audit or compliance obligations are met.
Use the standalone API when your server already holds a selfie, for example from your own camera screen or a partner app. Use session mode when you want Didit to handle the capture: age estimation runs inside the Liveness step of a workflow, and the result appears at liveness_checks[].age_estimation in the session decision. There is no separate age_estimation workflow feature, and that is the detail most integration write-ups get wrong.
Age estimation vs document-based age verification, which should I use?
Use age estimation as the default gate and document verification as the escalation. Age estimation costs $0.10 and asks for one photo. ID Verification alone costs $0.15, and a full ID check with liveness, face match and device and IP analysis costs $0.33. The table below is the decision rule we give fintech teams.
| Age Estimation API | Document-based age verification | |
|---|---|---|
| What it reads | One selfie, face analysis plus passive liveness | A government ID document, with optional face match |
| Price per check | $0.10 | $0.15 for ID Verification, $0.33 for a full ID check |
| Evidence produced | A model-predicted age, with error that grows near the threshold | A date of birth printed on a document |
| Best for | Age gates, low-effort steps, wide top of funnel | Legal proof of age, regulated access, high-value accounts |
| Weak point | Not legal proof, so borderline ages need a fallback | More user effort and more data collected |
The model's error grows for faces close to the limit, so the honest answer is both: estimate first, then verify the people who land near your threshold. That is the pattern the docs recommend when they say borderline ages deserve a fallback to document-based verification.
Prerequisites
- A Didit organization. Sign up at business.didit.me; an organization created with a work email gets $10 of credit a month on the Free plan.
- An application in the Business Console and an API key from Developers, then API keys. Sandbox keys start with
sk_test_, live keys withsk_live_, followed by 43 URL-safe characters. - A face capture path: your own camera screen, the hosted flow, the Web SDK or a native SDK. Accepted formats are tiff, jpg, jpeg, png and webp, up to 5 MB. PDFs are refused.
- A threshold decision from risk and legal: the defaults are 18 for
age_estimation_decline_thresholdand 30 forface_liveness_score_decline_threshold. - If you capture faces of people in Illinois, Texas or Colorado inside a native app, a native SDK at 4.10.0 or later, so the biometric consent step can be shown.

How to add the Age Estimation API: 8 steps
- Create the organization and the application. Sign up at business.didit.me with a work email, then create the application you will run age checks against. Our recommendation is to keep production and testing in separate applications, so a test key is never mistaken for a live one.
- Create and store the API key. In the console open Developers, then API keys. The Primary key is the application's own secret; create another key when a service or a partner needs its own. Treat the key as a server-side secret and never ship it in a browser or mobile bundle.
- Choose the mode. Standalone API: your server posts a selfie and reads the age from the same response. Session mode: enable age estimation on the Liveness node in the Business Console, create a session with
POST /v3/session/, send the user tosession.url, then readGET /v3/session/{sessionId}/decision/. - Set the thresholds. Documented behavior:
age_estimation_decline_thresholddefaults to 18 andface_liveness_score_decline_thresholddefaults to 30. Any warning declines the check: the status isApprovedonly when the warnings array is empty. Our recommendation is to set both with risk and legal, and record changes. - Send the selfie. This is the documented call from the Didit docs, with your key and your file. Add
rotate_image=trueif captures may arrive sideways or upside down.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' - Read the decision. Documented behavior: the largest face in the frame drives the estimate. The response shape is below in Expected output.
- Keep the record and subscribe to the event.
save_api_requestdefaults to true, so the call is stored as an API-type session,request_idis a real session id you can pass toGET /v3/session/{sessionId}/decision/, and astatus.updatedwebhook is emitted. Set it to false when you only need the number: nothing is stored, andrequest_idbecomes a one-off correlation id you cannot look up later. Our recommendation is to decide retention before you turn it on. - Go live. Switch to the live key once the organization has credit. Documented behavior: when the balance cannot cover a call, the endpoint returns 403 before any image processing, so nothing is charged for a refused call. Our recommendation is to test both modes in the sandbox first.
Expected output
A live 200 response follows the documented shape below. A sandbox key returns the static Approved mock with age_estimation 30 and no warnings; the other values are placeholders.
{
"request_id": "<session id when save_api_request is true>",
"age_estimation": {
"status": "Approved",
"method": "PASSIVE",
"age_estimation": 30,
"score": "<passive liveness score, 0 to 100>",
"user_image": { "entities": "<detected faces>" },
"warnings": []
}
}

NO_FACE_DETECTED, AGE_NOT_DETECTED or MULTIPLE_FACES_DETECTED decline the check and call for a retake.Inputs and outputs
| Field | Required | Notes |
|---|---|---|
user_image | Yes | Face photo. tiff, jpg, jpeg, png or webp, maximum 5 MB. No PDF. |
age_estimation_decline_threshold | No | Default 18. An estimate below it adds AGE_BELOW_MINIMUM. |
face_liveness_score_decline_threshold | No | Default 30. A score at or below it adds LOW_LIVENESS_SCORE. |
rotate_image | No | Set true when captures may be sideways or upside down. |
save_api_request | No | Default true. Controls session persistence and the webhook. |
vendor_data | No | An identifier for your own user, sent with the request so you can match the call to your records. |
| Field | What it holds |
|---|---|
request_id | A session id when the call is persisted, a one-off correlation id when it is not |
age_estimation.status | Approved, or Declined when any warning is present |
age_estimation.method | PASSIVE |
age_estimation.age_estimation | Predicted age in years as a float, null when the age cannot be estimated |
age_estimation.score | Passive liveness score, 0 to 100 |
age_estimation.user_image.entities | Faces detected in the image |
age_estimation.warnings | Risk codes such as AGE_BELOW_MINIMUM, AGE_NOT_DETECTED, LOW_LIVENESS_SCORE, NO_FACE_DETECTED, LIVENESS_FACE_ATTACK, MULTIPLE_FACES_DETECTED |
Failure cases and how to recover
| Result | Meaning | Recovery |
|---|---|---|
| 400 | Missing or oversized user_image, or an unsupported extension such as PDF | Validate the file before the call. Accept tiff, jpg, jpeg, png and webp up to 5 MB. |
| 403, permissions message | Missing, wrong or revoked x-api-key. This API never returns 401. | Re-read the key in Developers, then API keys, and confirm you are using the key of the right application. |
| 403, not enough credits | The organization balance cannot cover the call. It is refused before any image processing. | Top up or move to a plan with credit. Nothing was charged for the refused call. |
| 429 | Over the shared write budget of 300 requests per minute per API key | Back off and retry. The response carries a wait field in seconds. |
Declined, AGE_BELOW_MINIMUM | The predicted age is below your threshold | Reject, or escalate to ID Verification at $0.15 rather than rejecting a borderline user outright. |
Declined, LOW_LIVENESS_SCORE | Liveness score at or below the decline threshold, default 30 | Ask for a retake in better light. Treat repeated failures as a spoof signal. |
Declined, LIVENESS_FACE_ATTACK | The liveness model flagged a presentation attack, such as a photo of a photo, a screen or a mask | Reject and log the session id. |
Declined, NO_FACE_DETECTED or AGE_NOT_DETECTED | No face found, or no estimable face age, with age_estimation null | Request a retake with one face in frame, then fall back to a document check if it repeats. |
Declined, MULTIPLE_FACES_DETECTED | More than one face in the frame | Ask for a solo selfie. The largest face still drives the estimate, but the warning declines the check. |
Paid steps and where a human must review
Each 200 response consumes one Age Estimation credit, so budget for declines as well as approvals. A 403 for credit happens before processing. Sandbox testing is free and unlimited: a sandbox key skips processing and billing entirely. The orchestrator, SDKs and MCP server carry no separate fee.
- Threshold changes are a policy decision, so keep them in change control and record who changed them.
- Any decline with a liveness warning deserves a human look at the session rather than an automatic fraud label.
- Borderline ages near the threshold belong in a document fallback path, not in a manual queue that grows without limit.
- Biometric consent is evidence a person agreed, not a verdict about them. If you persist the call, the face crop and embedding enter your application's face index for face search and duplicate detection, so your retention policy applies to them.

Worked cost example
Take a US fintech running 40,000 age gates a month, with 8% of those users escalated to a full ID check. The arithmetic uses published unit prices.
- Age estimation at list price: 40,000 multiplied by $0.10 = $4,000.00
- Age estimation on Growth: $0.10 multiplied by 0.96 = $0.096, so 40,000 multiplied by $0.096 = $3,840.00
- Age estimation on Scale: $0.10 multiplied by 0.90 = $0.09, so 40,000 multiplied by $0.09 = $3,600.00
- Escalations: 40,000 multiplied by 0.08 = 3,200 full ID checks
- Escalations at list price: 3,200 multiplied by $0.33 = $1,056.00
- Escalations on Growth: 3,200 multiplied by $0.3168 = $1,013.76
- Escalations on Scale: 3,200 multiplied by $0.297 = $950.40
- Monthly total at list price: $4,000.00 + $1,056.00 = $5,056.00
- Monthly total on Growth: $3,840.00 + $1,013.76 = $4,853.76
- Monthly total on Scale: $3,600.00 + $950.40 = $4,550.40
Plan credit comes off that total: $10 a month on Free, $115 on Growth, $350 on Scale, and unused monthly credit does not roll over. Anything above the credit is paid from top-ups, which last 12 months. You pay for a check only when it finishes with a result.

US compliance notes that change how you wire this
COPPA and users under 13
COPPA is the federal rule on collecting personal information online from children under 13. An age gate can help identify age before account creation, but it does not by itself determine COPPA compliance. Review the product with counsel.
Biometric consent in Illinois, Texas and Colorado
Illinois (BIPA), Texas (CUBI) and Colorado require a notice and an explicit release before a business collects face geometry, from a selfie or from the photo on an ID. Didit can show a consent step before the first face capture and keeps the answer on the session as evidence. In Auto mode the step appears when you declare a covered state with user_state, when the person's IP is in one of the three states, when the person looks to be in the US but the state cannot be told, or when the document was issued by a covered state. Always mode shows it to everyone whose face is captured. Native SDKs below 4.10.0 cannot show it, and the decision records BIOMETRIC_CONSENT_UNSUPPORTED_SDK when consent was required but could not be asked.
Didit shows the step and records the answer. Your counsel decides whether your user journey meets the biometric laws that apply to you.
Records, retention and certifications
Sessions land in the Business Console with their warnings attached. Audit log retention is 30 days on Free, 1 year on Growth, 3 years on Scale and what the contract sets on Enterprise. Data retention is configurable from 1 month to 10 years, and sessions can be deleted on demand through the API. Didit holds SOC 2 Type 2 and ISO/IEC 27001, iBeta Level 1 and Level 2 under ISO 30107-3, and GDPR compliance, with an EU AI Act ready posture. The SOC 2 report is available to enterprise customers under NDA; ISO certificate excerpts are available on request.
Where this fits in a US fintech onboarding
For a US fintech, the documented behavior is simple: standalone age estimation returns a predicted age and liveness in one call, and session mode puts age estimation inside the Liveness step. Our implementation recommendation is narrower: gate at signup with age estimation, escalate to a document check when the user asks for a regulated product or when money moves, and retain the relevant session records according to your workflow. Do not treat the estimate as a document substitute.
If you already run a full ID check, age estimation can run inside the same Liveness step in session mode. The price line stays separate at $0.10, and the result appears at liveness_checks[].age_estimation in the session decision.
Questions to ask before you choose an age estimation API
- Does the API return a number you can threshold, not just a yes or no to an age question?
- Is passive liveness included in the same call and the same price, or billed as a second step?
- Is the per-check price published, or is it quote required?
- Does the flow show a biometric consent step for Illinois, Texas and Colorado, and is the answer recorded on the session?
- Can you escalate from estimation to document verification without adding a second vendor and a second record?
Our answers, so you can hold us to them: 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. Passive liveness runs in the same call for the same $0.10. Every price is public on didit.me/pricing. Didit reports 4,000+ companies as its active-company count, across 220+ countries.
Age verification SDKs, integrations and APIs
Didit documents a hosted flow you can open at session.url, Web SDKs, and native SDKs for iOS, Android, React Native and Flutter. There is an MCP server for AI assistants and a single integration prompt you can hand to a coding agent. Where a platform has no documented connector, the REST endpoint and the status.updated webhook are the route. The code in this guide shows the REST endpoint. Do not build the capture into a client bundle that also holds the API key.
Sources
- Didit docs: Age Estimation API reference
- Didit docs: Age Estimation overview and model performance
- Didit docs: age estimation warnings catalogue
- Didit docs: data models
- Didit docs: API authentication
- Didit docs: biometric consent for BIPA, CUBI and Colorado
- Didit docs: pricing and billing and Didit pricing page, read November 26, 2026
- Didit docs: security and compliance
- Didit docs: webhooks
- Didit docs: create session
- Didit docs: native SDKs and Web SDKs
- Didit docs: integration prompt
- Didit MCP server
- Didit Business Console
- Children's Online Privacy Protection Act (COPPA), Federal Trade Commission, ftc.gov
The next step is a sandbox call, not a sales call: create an application at business.didit.me, copy the sk_test_ key, post one selfie to /v3/age-estimation/, and read the mock come back. Sandbox testing is free and unlimited. When you are ready to bill real checks, top up the balance and swap to the live key.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
What is an age estimation API?
An age estimation API takes a face photo and returns a predicted age in years, so an app can gate age-restricted content or products without asking for an ID document. Didit's endpoint at POST /v3/age-estimation/ also runs passive liveness in the same call and returns an Approved or Declined status with warnings. It costs $0.10 per check at list price.
How accurate is Didit's age estimation?
Didit's published model performance is a mean absolute error of 1.1 years for 16 and 17 year olds and 1.9 years for 18 to 20 year olds, with 96% of selfies classified correctly as under 18 or 18 and over. Error grows for faces close to your threshold. That is why the docs recommend a document fallback near the limit rather than a hard rejection.
Is an age estimation result legal proof of age?
No. Didit's docs state that the age is model-predicted from the face, not verified against a document, and that the endpoint is built for age gates and low-effort checks. Access that needs legal proof of age should escalate to ID Verification at $0.15 or a full ID check at $0.33.
How much does the Age Estimation API cost?
$0.10 per completed check at list price, $0.096 on Growth and $0.09 on Scale. Each 200 response consumes one Age Estimation credit, so budget for declines as well as approvals. A 403 for insufficient credit arrives before any image is processed, so a refused call costs nothing.
Does the API store the selfie or a biometric template?
By default yes. save_api_request defaults to true, which persists the call as an API-type session with the face crop, the reference image, and a face embedding added to your application's face index. Set it to false and nothing is stored, but request_id becomes a one-off correlation id you cannot look up later.
What should I do when a user is declined?
Route on the warning. AGE_BELOW_MINIMUM means the predicted age is under your threshold, so reject or escalate to a document check. LOW_LIVENESS_SCORE, LIVENESS_FACE_ATTACK, NO_FACE_DETECTED, AGE_NOT_DETECTED and MULTIPLE_FACES_DETECTED are capture problems or spoof signals, so ask for a retake in better light with one face in frame, and reject outright when the attack signal is present.
Do I need biometric consent for Illinois, Texas or Colorado users?
Those three states require a notice and an explicit release before face geometry is collected. Didit can show the step before the first face capture and record the answer on the session, in Auto mode by declared state or IP, or in Always mode for everyone. Native SDKs at 4.10.0 or later can display it, and the decision records a reason code when an older SDK could not.
Can I test the Age Estimation API for free?
Sandbox testing is free and unlimited. A sandbox key skips processing and billing and returns a static Approved mock with age_estimation at 30 and no warnings. Nothing is charged in sandbox on any plan.
Is an age detection API or age prediction API the same thing?
They are different names for the same call: a face photo in, a predicted age in years out. Didit names the field age_estimation and returns it as a float next to the liveness score and the status. If a vendor's detection product only returns a yes or no to an age question, you lose the number you need to tune a threshold.
Can age estimation run inside a full KYC flow?
Yes. In session mode it runs inside the Liveness step and the result appears in the session decision at liveness_checks[].age_estimation. If you need document proof, ID Verification costs $0.15 and a full ID check costs $0.33.
Which US federal law matters most for underage fintech users?
COPPA governs collecting personal information online from children under 13. An age gate can help identify age before account creation, but it does not by itself determine COPPA compliance. Review the product with counsel.
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


