What’s in this picture?
Analyse a photo on your device with open-source models — objects, labels, text, colours. Nothing is uploaded. This is not Google Cloud Vision; it’s a free alternative, and the setup guide for the real API is below.
Detect
AI write-up
Turns the detections above into alt text, a caption and a brand/content-safety check. The AI does not see the image — only the detected data.
Google Cloud Vision API — cost calculator
Each feature applied to an image is one billable unit; the first 1,000 units of each feature per month are free; the last 1,000-unit block is prorated. Prices (USD per 1,000 units, units 1,001–5,000,000): label, text, document text, face, landmark, logo, image properties $1.50; object localization $2.25; web detection $3.50. Above 5M units: $1.00 (labels), $0.60 (most others), $1.50 (objects). SafeSearch is free with label detection; crop hints free with image properties. Source: cloud.google.com/vision/pricing, checked 2026-11-26.
Set up the real API
- Google Cloud Console → create/select a project → enable Cloud Vision API → attach a billing account.
- Create a service account (server) or an API key restricted to the Vision API. Keep keys on your server, never in a public page.
- Send base64 images (or
gs:/// https URLs) toimages:annotate:
curl -X POST "https://vision.googleapis.com/v1/images:annotate?key=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"requests":[{"image":{"source":{"imageUri":"https://example.com/photo.jpg"}},
"features":[{"type":"LABEL_DETECTION","maxResults":10},{"type":"TEXT_DETECTION"},{"type":"OBJECT_LOCALIZATION"}]}]}'
When to pay for Google: logos, landmarks, web entities, celebrity recognition, SafeSearch and handwriting are much stronger in Cloud Vision than in the small on-device models used here.
How this works & sources
- Objects: COCO-SSD (TensorFlow.js) — 80 everyday object classes with boxes and confidence.
- Labels: MobileNet v2 — top ImageNet classes for the whole image.
- Text: Tesseract.js 5 (English) with confidence per word.
- Colours: the image is downscaled to 64 px and pixels are grouped into a 4-bit-per-channel histogram; the six most common groups are shown with their share. Brightness is mean luma (Rec. 709).
- Faces: the browser’s experimental
FaceDetector(Shape Detection API) where available; otherwise the count of COCO-SSD “person” boxes is shown instead. No face recognition / identity. - All libraries load from jsDelivr / Google’s tfjs model storage; images stay on your device. The AI write-up uses
POST site-api /ai/chat.