Skip to main content

Age Estimation API for UK Fintech: Compliance and Innovation

Didit's Age Estimation API returns a predicted age plus a passive liveness score from one selfie for $0.10 per check. Use it as an age gate and fall back to ID verification near the threshold.

Age Estimation API for UK Fintech: Compliance and Innovation

Contents

In this guide

Jump to the part you need.

UK fintech teams use Didit's Age Estimation API to gate age-restricted products from a selfie, without sending every user through a document check. One server-to-server call returns a predicted age and a passive liveness score for $0.10 per check, and borderline users can drop into a full ID check inside the same workflow. The caveat: an estimate is not legal proof of age.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Age Estimation API at a glance, Didit list prices on November 26, 2026
ItemDetail
What it doesPredicts age in years from one face photo and scores passive liveness in the same call
EndpointPOST https://verification.didit.me/v3/age-estimation/, multipart form data, x-api-key header
Price$0.10 per check, $0.096 on Growth, $0.09 on Scale
Accuracy1.1 year mean absolute error at ages 16 to 17, 1.9 years at 18 to 20, 96% correct under-18 versus 18-and-over classification
LatencySub-2-second inference at p99
LivenessPassive liveness included, no user challenge, presentation attack detection
Document fallbackFull ID check $0.33 when a user must prove age or identity
SandboxSandbox testing is free and unlimited, with a static Approved mock and no credits used
Main limitAn estimate, not a document-backed proof of age

Start free in the sandbox at business.didit.me, with no sales call, and connect Didit to an AI assistant through the Didit MCP server if you want an agent to wire the flow for you. Plans and per-check prices sit on the Didit pricing page, and the product documentation starts at the Age Estimation overview.

What an age estimation API does, and where age inference fits

An age estimation API, sometimes searched as an age detection API, age prediction API or age inference service, predicts how old the person in a photo is. Didit takes one selfie and returns two results: an estimated age in years, taken from the largest face in the frame, and a passive liveness score between 0 and 100. No date of birth, no passport, no document upload.

Passive liveness is what makes the estimate usable for money. It looks for replay and print artefacts in the same frame, so a photo of a photo or a screen recording is flagged instead of scored as a young-looking adult.

UK fintech teams put this in four places:

  • Investment and trading sign-up, where some instruments have age limits.
  • Credit pre-qualification, before a full application pulls a credit file.
  • Crypto exchange and wallet onboarding, where age gates sit next to AML.
  • Teen and junior account journeys, where you want a fast gate and a document check only when the result is close to the line.

The model performance matters most where the gate sits. Didit's mean absolute error is 1.1 years for 16 and 17-year-olds and 1.9 years for 18 to 20-year-olds, and the model classifies 96% of selfies correctly as under 18 or 18 and over. Error grows as the face gets closer to your threshold, which is why the fallback rule below is part of the integration, not an afterthought. How wide that borderline band is forms part of your implementation policy, not a Didit default.

Before you start: prerequisites

  1. A Didit organization. Create one at business.didit.me. Workflows, API keys and results live there. The Free plan provides $10 of monthly credit to the first organization created with an eligible work email for a company domain. An organization created through the API starts at $0.
  2. An application API key. Copy the sandbox key first. Sandbox keys skip processing and billing. Sandbox testing is free and unlimited.
  3. A selfie capture step. Use the Didit Web or mobile SDK, a hosted session link, or your own camera step that posts a single front-facing photo.
  4. A written age policy. Decide the decline threshold (default 18), the liveness threshold (default 30) and what happens on a decline: reject, request an ID document, or send to a person.
  5. A webhook destination if you use workflow sessions, so you get the decision without polling. Registration is POST /v3/webhook/destinations/ and the events are documented on the webhooks page.

How to integrate the Age Estimation API: 8 steps

  1. Copy the sandbox key. In the Business Console open your application and copy its API key. Keep the live key for the day you have credit, and build against the sandbox until then.
  2. Set the policy in numbers. Age threshold 18 unless your product needs 16 or 21. Liveness threshold 30 unless your risk team says otherwise. Add a fallback rule for results near the threshold. The width of that borderline band is an implementation policy, not a Didit default: set it from your own validation data and a compliance review.
  3. Capture one good selfie. One face, front-facing, well lit, nothing covering the face. If users may capture sideways, send rotate_image=true so the model finds the face.
  4. Call the endpoint. This is the documented call, with your key and a local 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'
  5. Read the response, do not just read the HTTP code. A 200 can still be a Declined. The status is Approved only when the warnings array is empty.
  6. Map every warning to one action. The table in Failure cases and recovery below is the whole list you need to handle: reject, retake, or route to document verification.
  7. Decide whether to store the call. save_api_request defaults to true. Then the call is saved as an API session, the returned request_id is a real session id you can pass to GET /v3/session/{sessionId}/decision/, the face crop and reference image are stored, the face embedding joins your face index, and a status.updated webhook fires. With false, nothing is stored and request_id is a one-off correlation UUID you cannot look up later.
  8. For a selfie first, ID fallback journey, use a workflow instead. Age estimation is embedded in the Liveness step, so configure the workflow's LIVENESS feature with age estimation enabled and set age_estimation_decline_threshold, then create a session:
    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_ID", "vendor_data": "user-42", "callback": "https://myapp.com/kyc/return"}'
    Open session.url for the user, or mount the SDK, then fetch GET https://verification.didit.me/v3/session/{sessionId}/decision/. The result lives at liveness_checks[].age_estimation on each Liveness entry, not in a top-level array. The console also offers an Adaptive Age Verification template: selfie age check with ID fallback.
The selfie step intro screen in a Didit verification flow, asking the user for one front-facing photo
The selfie step in a Didit flow. One front-facing photo is all the age estimation call needs.
The camera screen capturing the user's face during a Didit liveness step
The capture screen. Passive liveness runs on the same image, so the user is not asked to do anything else.

Expected output

Sandbox keys return a static Approved mock with an estimated age of 30 and no warnings. The shape below is the documented response; on a live key the age is a float in years and the liveness score varies.

{
  "request_id": "<session id when save_api_request is true, otherwise a one-off UUID>",
  "age_estimation": {
    "status": "Approved",
    "method": "PASSIVE",
    "age_estimation": 30,
    "score": <passive liveness score, 0 to 100>,
    "user_image": { "entities": [ ... ] },
    "warnings": []
  }
}

Anything other than an empty warnings array means the call is Declined. Real integrations branch on the warning code, not on the number alone.

A Didit Business Console session detail showing the liveness step result, where the age estimation result is stored
Where a stored result lands: the Liveness entry on a session in the Didit Business Console, with age estimation inside liveness_checks[].

Inputs and outputs

Request fields for POST /v3/age-estimation/
FieldRequiredNotes
user_imageYesjpg, jpeg, png, tiff or webp, maximum 5 MB. PDF is rejected. The largest face in the frame drives the estimate.
age_estimation_decline_thresholdNoDefault 18. Below it the call declines with 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. False stores nothing and returns an unlookupable correlation UUID.
vendor_dataNoYour own user identifier, kept with the record.
x-api-keyYesApplication API key in the header.
Response fields
FieldTypeMeaning
request_idstringSession id when save_api_request is true, otherwise a correlation UUID.
statusstringApproved only when warnings is empty; otherwise Declined.
methodstringPASSIVE, meaning passive liveness.
age_estimationfloat or nullPredicted age in years. Null when age could not be extracted.
scorenumberPassive liveness score from 0 to 100.
user_image.entitiesdocumented face-entity dataFace entities found in the submitted image.
warningsarrayRisk codes. Any entry declines the call.

Failure cases and recovery

What you get back and what to do about it
ResultCauseRecovery
HTTP 400Missing or oversized user_image, or an unsupported extensionValidate size and type in your capture step, then resend
HTTP 403, not enough creditsOrganization balance cannot cover the callTop up or turn on auto top-up. The call stops before any image processing
HTTP 403, permission detailMissing or invalid API key. This API never returns 401Check the x-api-key header and the application the key belongs to
HTTP 429Shared write budget of 300 requests per minute per keyBack off and retry
Declined with AGE_BELOW_MINIMUMPredicted age under your thresholdReject, or route to an ID document check
Declined with AGE_NOT_DETECTEDThe model could not extract an age, usually image qualityAsk for a retake with better light and one uncovered face
Declined with LOW_LIVENESS_SCORE or LIVENESS_FACE_ATTACKLiveness at or below the threshold, or a presentation attack was flaggedReject, or require document verification
Declined with NO_FACE_DETECTEDThe liveness model found no faceRetake
Declined with MULTIPLE_FACES_DETECTEDMore than one face in the frameRetake with a single face in frame

The full code catalogue is on the Age Estimation warnings page.

Age verification API options: standalone call or hosted session

There are two documented ways to run the same check, and the right one depends on what happens when the gate fails.

  • Standalone server-to-server. You already have a selfie and want one answer. POST /v3/age-estimation/ returns age and liveness in one call, $0.10. No user interface from us.
  • Session workflow. The user goes through a hosted link or an SDK, age estimation runs inside the Liveness step, and you can put an ID document check and face match after it. The whole flow is one session, and the decision comes back as arrays on GET /v3/session/{sessionId}/decision/.

Age verification SDK and hosted flow

Didit ships five SDKs and a hosted flow that covers 54 capture and interface languages and 220+ countries and territories. The 14,000+ document types apply to document verification, not to the selfie-only age estimation call. For a pure age gate you can skip the SDK entirely and call the API from your server, which is the shortest path for a mobile app that already owns the camera step. When you need document fallback, the SDK and hosted flow save you building a second capture screen.

UK compliance: what an age estimate proves and what it does not

An age estimate is a control, not a certificate. Didit's own documentation says the age is model-predicted from the face, not verified against a document, and should be used for age gates and quick checks, not as legal proof of age. Three consequences for a UK fintech product:

  • Where you must evidence age, use a document. A full ID check is $0.33 and includes document verification, passive liveness and face match. Digital ID wallets are priced separately, including OneID at a published $2.75 and the GOV.UK Wallet, both listed as coming soon.
  • Handle the data question deliberately. Whether this approach satisfies UK GDPR depends on your lawful basis, purpose, retention and risk assessment. Confirm the design with your compliance team or counsel. Setting save_api_request=false means nothing is stored and you get a one-off correlation UUID, and plan retention is 1 year on Free, 5 years on Growth, up to 10 years on Scale, custom on Enterprise.
  • Check the duty that applies to your product. Financial services eligibility rules, consumer duty expectations, the ICO's children's data guidance and, where your product has user-to-user or search features, the Online Safety Act 2023. Age estimation can support all of them. Which one requires a document is a question for your compliance team and the FCA.

On the vendor side, Didit holds SOC 2 Type 2 and ISO/IEC 27001:2022 (certificate ES144068), plus iBeta Level 1 PAD for presentation attack detection, and runs checks for 4,000+ companies.

How to compare age verification providers and platforms

When a fintech team asks us how to compare age verification services, we give the same checklist we would use ourselves. Score candidates on these, in this order.

  1. Published per-check price. Didit publishes $0.10 per age estimation on the pricing page and in a machine-readable feed at pricing.json. A quote-only vendor cannot be compared on unit economics.
  2. Error at your threshold band. Ask for mean absolute error at the ages where your gate sits. An average across all ages hides the number you need.
  3. Liveness in the same call. A cheap age estimate without presentation attack detection is a free pass for a printed photo.
  4. A document fallback that is already built. Ask what the next step costs and whether it is the same session or a second integration.
  5. A real sandbox. You should be able to call the API today without a contract. Ours returns a documented mock and consumes no credits, and sandbox testing is free and unlimited.
  6. Data controls. A flag that stores nothing, a retention period per plan, and certifications you can read.

What bills: each 200 response consumes one Age Estimation API credit at $0.10, whether or not you keep the record. The pricing documentation states you pay for a check only when it finishes with a result. A 403 for balance returns before any image processing, so nothing is charged.

What does not bill: sandbox calls, workflow configuration, the orchestrator, the MCP server and the SDKs. Sandbox testing is free and unlimited on every plan.

Where a person enters the loop: the standalone API answers Approved or Declined and never calls a reviewer. A workflow session can land in In Review, in which case a reviewer approves, declines or requests a resubmission, as described on the verification statuses page. If you build on the standalone call, you own that boundary: write down who sees a borderline result and what they may do.

Worked cost example: 100,000 UK sign-ups a month

Assume a lender gates a credit pre-check behind an age estimate, with 100,000 new sign-ups a month, and 12% of users fall back to a full ID check.

At list prices:

  • Age estimation on every sign-up: 100,000 x $0.10 = $10,000.00
  • Full ID check on fallbacks: 12,000 x $0.33 = $3,960.00
  • Total: $13,960.00 a month

On Scale, where every Didit price is 10% lower:

  • Age estimation: 100,000 x $0.09 = $9,000.00
  • Full ID check: 12,000 x $0.297 = $3,564.00
  • Total: $12,564.00 a month

For comparison, a full ID check for all 100,000 users costs 100,000 x $0.33 = $33,000.00 at list price, or 100,000 x $0.297 = $29,700.00 on Scale. The Scale plan itself is $299 a month with $350 of monthly credit, and usage beyond credit is paid from top-ups of $50 to $20,000 that last 12 months.

Sources

Next step: create a sandbox application at business.didit.me, post a test selfie to /v3/age-estimation/ with your sandbox key, and read the mock response. No sales call, and nothing is charged until you switch to a 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 predicts a person's age from a photo, usually a selfie, using a trained model rather than a document. Didit's returns an estimated age in years and a passive liveness score in one call at POST https://verification.didit.me/v3/age-estimation/ for $0.10 per check.

How accurate is the estimate for 16 and 17-year-olds?

Didit's model has a mean absolute error of 1.1 years at ages 16 to 17 and 1.9 years at 18 to 20, and classifies 96% of selfies correctly as under 18 or 18 and over. Error grows for faces close to your threshold, so route those results to a document check.

How much does an age estimation API cost?

$0.10 per check at list price, $0.096 on the Growth plan with 4% off every price, and $0.09 on Scale with 10% off. The Free plan provides $10 of monthly credit to the first organization created with an eligible work email for a company domain, and an organization created through the API starts at $0. Sandbox testing is free and unlimited.

Is an age estimate enough to prove age in the UK?

No. Didit's documentation describes the result as model-predicted from the face, intended for age gates and quick checks, not as legal proof of age. When you must evidence age to a regulator or an auditor, use an ID document check, which costs $0.33 as a full KYC check.

What is the difference between age estimation and an age ID check?

An age ID check verifies a government document or digital identity wallet and may provide document-backed date-of-birth data. Confirm its acceptance for your use case with your compliance team or regulator. Age estimation infers age from a face. Didit runs both: $0.10 for estimation, $0.15 for the ID document step inside a $0.33 full check, plus digital ID wallets such as OneID at a published $2.75 and the GOV.UK Wallet, both listed as coming soon.

Which endpoint should I call for an age gate?

Server to server, call POST https://verification.didit.me/v3/age-estimation/ with multipart form data, your x-api-key header and user_image. Inside a hosted workflow, age estimation runs in the Liveness step and the result appears at liveness_checks[].age_estimation in GET /v3/session/{sessionId}/decision/.

Are there free options to test the API?

Yes. Sandbox API keys skip processing and billing and return a static Approved mock with an estimated age of 30 and no warnings, and sandbox testing is free and unlimited. When you move to a live key, the Free plan provides $10 of monthly credit to the first organization created with an eligible work email for a company domain, while an organization created through the API starts at $0.

Can I combine age estimation with identity verification in one flow?

Yes. The console has an Adaptive Age Verification template that runs a selfie age check with an ID fallback, and you can add face match and AML screening at $0.20 per check after it. The user sees one flow and you receive one decision with every check attached.

What happens when the selfie is poor or the person is just under the threshold?

AGE_NOT_DETECTED means the model could not extract an age, so ask for a retake with better light and one uncovered face. AGE_BELOW_MINIMUM means the predicted age is under your threshold: reject, or move the user to a document check. LOW_LIVENESS_SCORE and LIVENESS_FACE_ATTACK signal a suspected presentation attack, not an age result.

Which SDKs are available for an age verification integration?

Didit ships five SDKs plus a hosted flow covering 54 capture and interface languages and 220+ countries and territories. For a pure age gate you can skip the SDK and call the API from your server, which is usually faster to ship inside an existing mobile app.

Is a selfie age check compliant with UK GDPR?

Whether this approach satisfies UK GDPR depends on your lawful basis, purpose, retention and risk assessment, so confirm the design with your compliance team or counsel. Setting save_api_request=false stores nothing and returns a one-off correlation UUID, and plan retention is 1 year on Free, 5 years on Growth, up to 10 years on Scale, custom on Enterprise. Didit holds SOC 2 Type 2 and ISO/IEC 27001:2022.

Can one API cover other fintech checks beyond age?

Yes. One API and one credit balance cover the rest of the onboarding: full KYC at $0.33, business verification from $2.00 per company, AML screening at $0.20, wallet screening at $0.15 per screening and transaction monitoring at $0.001 per transaction beyond the plan allowance. Age estimation is one line on the same price list.

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.