Skip to main content

AI-Driven Age Estimation with the Didit Android SDK

How Didit's AI-driven Age Estimation works through its Android SDK: a selfie estimate with liveness, thresholds you set and a document fallback.

AI-Driven Age Estimation with the Didit Android SDK

Contents

In this guide

Jump to the part you need.

Seamless Mobile IntegrationDidit's Android SDK enables developers to effortlessly integrate AI-driven age estimation and liveness detection directly into native Android applications, ensuring a smooth user experience.

Privacy-Preserving VerificationUtilizing advanced biometric analysis, Didit's Age Estimation estimates age from a selfie without asking every user for a document, which reduces friction.

Configurable Risk ManagementApplications can set custom age thresholds, manage low liveness scores, and detect potential duplicate faces, offering granular control over verification workflows.

AI-Native and Modular SolutionDidit has an AI-native architecture and a modular design, allowing businesses to compose comprehensive identity verification solutions tailored to their specific needs.

In today's digital landscape, ensuring age compliance is more critical than ever. From online gaming and social media platforms to e-commerce and regulated industries, businesses face increasing pressure to verify the age of their users. Traditional methods often involve manual document checks, which are slow, prone to error, and create a poor user experience. The advent of AI-driven solutions is transforming this challenge, offering efficient, accurate, and privacy-preserving alternatives. Didit, a leader in identity verification, brings this power directly to Android developers through its robust Android SDK.

The Growing Need for Accurate Age Verification

The imperative for age verification stems from various factors. Regulatory bodies worldwide are enacting stricter laws to protect minors online, such as COPPA in the US and GDPR's age-related provisions in Europe. Beyond legal compliance, businesses have a moral obligation to prevent underage access to age-restricted content or services. However, achieving this balance between compliance, user experience, and privacy has historically been difficult. Many solutions are cumbersome, requiring users to upload sensitive documents, leading to high abandonment rates and potential data security risks.

AI-driven Age Estimation offers a sophisticated alternative. By analyzing facial biometrics, these systems can estimate a user's age, often without requiring any identity document. This approach significantly enhances user experience, reduces friction, and maintains privacy, making it an ideal solution for modern digital platforms. Didit's Age Estimation technology is at the forefront of this innovation, and it does not identify the person. Estimates near your threshold can fall on either side of it, so send that band to a document check.

Leveraging Didit's Android SDK for Seamless Integration

Integrating advanced identity verification into a mobile application can be complex, but Didit's Android SDK simplifies the process dramatically. Designed for developers, the SDK provides a straightforward way to embed Didit's powerful Age Estimation capabilities directly into native Android apps built with Kotlin and Jetpack Compose. This means businesses can offer a seamless, in-app age verification experience, eliminating the need for users to navigate to external websites or upload documents manually.

The SDK handles critical components such as camera interaction, liveness detection, and secure data transmission, allowing developers to focus on their core application logic. For instance, the SDK supports various liveness methods, including active 3D and passive liveness, to counter spoofing attempts effectively. They help tell a live person from a deepfake or a static image. The integration process is streamlined, with clear documentation and support for modern Android development practices, making it accessible even for teams new to biometric verification.

Understanding the Age Estimation Process and Report

Didit's Age Estimation process is designed for both accuracy and transparency. When a user undergoes age verification, the system captures images or video, analyzes facial features using machine learning algorithms, and then provides an estimated age. This process is coupled with a comprehensive liveness check to ensure the authenticity of the user. The output is a detailed report, delivered as a JSON object, providing crucial insights into the verification attempt.

The core of the report includes the estimated age (age_estimation), a liveness score (score), and a verification status (status) which can be 'Approved', 'Declined', 'In Review', or 'Not Finished'. Crucially, the report also includes an array of warnings, such as AGE_BELOW_MINIMUM, LOW_LIVENESS_SCORE, NO_FACE_DETECTED, and LIVENESS_FACE_ATTACK. These warnings provide granular detail, allowing applications to configure specific actions based on the detected risks. For example, a low liveness score might automatically trigger a review or decline, while an estimated age inside the borderline band you set can initiate an ID verification fallback.

Didit's API also provides temporary URLs for reference images and videos, which expire after 60 minutes for enhanced security. This best practice encourages applications to store only the verification status and confidence scores, minimizing biometric data retention and bolstering user privacy.

Configurable Settings for Robust Risk Management

One of the key advantages of Didit's Age Estimation is its configurability. Businesses can tailor the verification process to their specific risk appetite and compliance requirements. For instance, you can set a precise minimum age requirement (e.g., 18 or 21) and configure the system to automatically initiate ID Verification for borderline cases. This provides a flexible and robust framework for age gating.

Furthermore, Didit allows for fine-tuning of liveness detection thresholds. You can define a 'Review threshold' for sessions with scores indicating potential risk, sending them for manual review, and a 'Decline threshold' for scores that warrant immediate rejection. This proactive approach to fraud prevention is essential in combating sophisticated spoofing attacks. The system also includes features to detect and manage potential duplicated faces (POSSIBLE_DUPLICATED_FACE), allowing businesses to set similarity thresholds and choose whether to reject, review, or flag such instances, preventing fraudulent multi-accounting.

Store signal first, your own check second

Android apps can ask Google Play for an age range before they run any check of their own; the Play Age Signals API guide explains the answers and the dates. Where that range is enough for the feature and for the law that applies, stop there. When it is missing or only declared and your risk or your law asks for more, see what to do when there is no age signal, and start your own check without passing the store's signal to any vendor.

How Didit Helps

Didit is revolutionizing identity verification with its AI-native, developer-first platform. For businesses needing reliable age verification, Didit's Age Estimation product, integrated seamlessly via the Android SDK, offers an unparalleled solution. Our modular architecture allows you to compose the exact identity checks you need, whether it's just age estimation with liveness or a more comprehensive workflow involving ID Verification, 1:1 Face Match, or AML Screening. Age Estimation costs $0.10 per check, as listed on the pricing page. Our commitment to a developer-first experience means clean APIs, instant sandboxes, and comprehensive documentation for rapid integration. There are no setup fees.

Ready to Get Started?

Want to see age estimation in your app? Get a demo.

Prefer to try it yourself? Start free in the Business Console.

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

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

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.