
<part>
AgeLens AI is a plug-and-play HTML5 + PHP template that estimates an individual’s age from a photograph or reside digital camera seize utilizing Google’s Gemini AI, together with your API key stored safely server-side.
</part>
<part>
AgeLens AI turns any photograph into an on the spot, AI-powered age studying. Guests add an image or snap one reside with their digital camera, and Google’s Gemini AI analyzes the face to return an estimated age, a probable age vary, a confidence rating, and some pleasant observations — all in a fantastically animated “viewfinder” interface with a lightweight and darkish mode.
Constructed as an HTML5 + light-weight PHP template — no framework, no database, no construct step — AgeLens AI drops straight onto any customary PHP-enabled host and is able to monetize with advert slots and affiliate hyperlinks out of the field. Your Gemini API key lives in a .env file and is used solely by a small server-side handler, so it’s by no means uncovered in your web page supply. Each non-sensitive setting — branding, theme, advert codes, copy tone — lives in a single clear config file, so you possibly can relaunch it beneath a brand new model in minutes.
Good for:
- Viral “guess my age” social / leisure websites
- Area of interest utility instruments and lead-gen touchdown pages
- Flippable micro-SaaS / AI software portfolios
- Businesses constructing fast AI-demo merchandise for shoppers
Key Options
- Reside AI evaluation powered by Google’s Gemini Flash multimodal mannequin
- API key stored server-side by way of a
.envfile + included PHP handler — by no means uncovered in web page supply - Add or reside digital camera seize, with drag-and-drop help
- Gentle & darkish mode with a system-preference auto-detect and guide toggle
- ️ Clear break up configuration — secrets and techniques in
.env, every little thing else (branding, copy tone, monetization) in a singleconfig.js - Monetization-ready — 3 configurable advert slots (AdSense/any community) + a generic-placeholder affiliate hyperlink strip, prepared in your personal gives
- Two copy tones in-built — flip between “playful/viral” and “skilled/utility” wording immediately
- ⚡ Consumer-side picture resizing to maintain API calls quick and low cost
- Privateness-conscious UX — clear on-page discover that images aren’t saved server-side
- Absolutely responsive, keyboard-accessible, reduced-motion conscious
- No framework, no database, no construct step — HTML/CSS/vanilla JS + a number of strains of PHP
- Full documentation included (
documentation.html)
The way it works
- Customer uploads a photograph or captures one with their digital camera
- The picture is resized client-side and despatched to the Gemini API
- Gemini analyzes the face and returns a structured age estimate
- The outcome renders in an animated instrument-style readout card
Necessities: A free or paid Google Gemini API key (aistudio.google.com), and customary PHP 7.4+ internet hosting with cURL enabled (nearly all shared internet hosting qualifies). No database or any charges past your individual API utilization (Gemini has a free tier).
</part>
Source

