Skip to main content

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.

Age Estimation API: Fintech Compliance in the US, 2026 How-To

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.

Didit Age Estimation API at a glance
ItemDetail
EndpointPOST 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.
ReturnsPredicted age in years, a passive liveness score from 0 to 100, Approved or Declined, and a warnings array
Does not doProve age against a government document. The age is a model prediction.
Required inputOne face photo, user_image, in tiff, jpg, jpeg, png or webp, maximum 5 MB, no PDF
Default thresholdsage_estimation_decline_threshold 18, face_liveness_score_decline_threshold 30
Escalation pathID Verification at $0.15, or a full ID check at $0.33
Rate limit300 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 compared with document-based age verification
Age Estimation APIDocument-based age verification
What it readsOne selfie, face analysis plus passive livenessA 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 producedA model-predicted age, with error that grows near the thresholdA date of birth printed on a document
Best forAge gates, low-effort steps, wide top of funnelLegal proof of age, regulated access, high-value accounts
Weak pointNot legal proof, so borderline ages need a fallbackMore 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 with sk_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_threshold and 30 for face_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.
The Didit flow introducing the face capture step before the selfie is taken
The face step comes before any image is captured. Didit shows the biometric consent step before the first face capture for people in Illinois, Texas and Colorado.

How to add the Age Estimation API: 8 steps

  1. 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.
  2. 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.
  3. 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 to session.url, then read GET /v3/session/{sessionId}/decision/.
  4. Set the thresholds. Documented behavior: age_estimation_decline_threshold defaults to 18 and face_liveness_score_decline_threshold defaults to 30. Any warning declines the check: the status is Approved only when the warnings array is empty. Our recommendation is to set both with risk and legal, and record changes.
  5. Send the selfie. This is the documented call from the Didit docs, with your key and your file. Add rotate_image=true if 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'
  6. Read the decision. Documented behavior: the largest face in the frame drives the estimate. The response shape is below in Expected output.
  7. Keep the record and subscribe to the event. save_api_request defaults to true, so the call is stored as an API-type session, request_id is a real session id you can pass to GET /v3/session/{sessionId}/decision/, and a status.updated webhook is emitted. Set it to false when you only need the number: nothing is stored, and request_id becomes a one-off correlation id you cannot look up later. Our recommendation is to decide retention before you turn it on.
  8. 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": []
  }
}
The end user selfie being captured inside the Didit verification flow
One clear, front-facing, well-lit face per image gives the model its best input. Documented warnings such as NO_FACE_DETECTED, AGE_NOT_DETECTED or MULTIPLE_FACES_DETECTED decline the check and call for a retake.

Inputs and outputs

Age Estimation API inputs
FieldRequiredNotes
user_imageYesFace photo. tiff, jpg, jpeg, png or webp, maximum 5 MB. No PDF.
age_estimation_decline_thresholdNoDefault 18. An estimate below it adds AGE_BELOW_MINIMUM.
face_liveness_score_decline_thresholdNoDefault 30. A score at or below it adds LOW_LIVENESS_SCORE.
rotate_imageNoSet true when captures may be sideways or upside down.
save_api_requestNoDefault true. Controls session persistence and the webhook.
vendor_dataNoAn identifier for your own user, sent with the request so you can match the call to your records.
Age Estimation API outputs
FieldWhat it holds
request_idA session id when the call is persisted, a one-off correlation id when it is not
age_estimation.statusApproved, or Declined when any warning is present
age_estimation.methodPASSIVE
age_estimation.age_estimationPredicted age in years as a float, null when the age cannot be estimated
age_estimation.scorePassive liveness score, 0 to 100
age_estimation.user_image.entitiesFaces detected in the image
age_estimation.warningsRisk 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

What goes wrong, and what to do
ResultMeaningRecovery
400Missing or oversized user_image, or an unsupported extension such as PDFValidate the file before the call. Accept tiff, jpg, jpeg, png and webp up to 5 MB.
403, permissions messageMissing, 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 creditsThe 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.
429Over the shared write budget of 300 requests per minute per API keyBack off and retry. The response carries a wait field in seconds.
Declined, AGE_BELOW_MINIMUMThe predicted age is below your thresholdReject, or escalate to ID Verification at $0.15 rather than rejecting a borderline user outright.
Declined, LOW_LIVENESS_SCORELiveness score at or below the decline threshold, default 30Ask for a retake in better light. Treat repeated failures as a spoof signal.
Declined, LIVENESS_FACE_ATTACKThe liveness model flagged a presentation attack, such as a photo of a photo, a screen or a maskReject and log the session id.
Declined, NO_FACE_DETECTED or AGE_NOT_DETECTEDNo face found, or no estimable face age, with age_estimation nullRequest a retake with one face in frame, then fall back to a document check if it repeats.
Declined, MULTIPLE_FACES_DETECTEDMore than one face in the frameAsk for a solo selfie. The largest face still drives the estimate, but the warning declines the check.

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.
A Didit Business Console session detail showing the liveness result stored with the session
Every persisted call lands in the Business Console with its liveness result and warnings, which is the record your reviewer opens.

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.

A video card explaining Didit credits, auto-recharge and volume discounts
Billing runs on prepaid credit: monthly credit first, then the oldest top-up.

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

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.

ID Verification

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

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

What is 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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.