Food Image Recognition
Turn a photo into food data. Four vision endpoints cover the whole camera flow: decode a barcode, identify a product from its front, read the nutrition label and ingredients, or analyze a plate of food with portion estimates — matched against 6.1M products, in six languages including Cyrillic.
curl -X POST -H "X-API-Key: food_•••" \
-F "[email protected]" \
"https://foodbase.dev/v1/vision/product"
{
"extracted": {
"name": "Масло краве",
"brand": "Bulgaricum",
"quantity": "250g",
"lang": "bg",
"confidence": 0.95
},
"matches": [
{
"score": 0.95,
"product": {
"id": "c5b352b5-...",
"name_default": "Краве масло 82%"
}
}
],
"cached": false
} Prefer to click around? Try the product explorer or the photo playground.
What you get back
POST /vision/barcode
Decode EAN-13/UPC from a photo and look the product up. Free — 0 credits.
POST /vision/product
Identify a product from its front + match it to the catalog. 3 credits.
POST /vision/label
OCR the nutrition-facts panel and ingredients list. 4 credits.
POST /vision/meal
Identify dishes on a plate with portion and kcal estimates. 5 credits.
confidence
Calibrated 0–1 score on every extraction — decide when to ask the user.
cached
Identical images are served from cache — same answer, instant.
Available on every plan through monthly AI credits — each call has a fixed credit price, and every plan (including Free) comes with a credit allowance. See plans →
Build with it
Photo food logging
Snap a product or a meal and log it — no typing, no barcode hunting.
Label capture
Digitize nutrition facts and ingredients from any package, even products not yet in a database.
Smart scanner fallback
Barcode unreadable? Fall back to front-of-pack recognition in the same flow.
Explore more endpoints
AI Food Analysis
One call turns a product's raw data into something you can show a user: a plain-language summary, factual health highlights and warnings, diet compatibility (vegan, vegetarian, gluten-free, lactose-free), and a NOVA-style processing level — in six languages, grounded strictly in the product's label data.
Learn more →Barcode Lookup
Scan or type a barcode, get the product. Resolve any EAN-13 or UPC code to a food record — brand, category, Nutri-Score, and a nutrition summary — in a single request. Built for scanner-based apps.
Learn more →Nutrition data
Go beyond the headline macros. Pull a detailed breakdown of 40+ nutrients per product — energy, protein, carbs, fats, sugars, fiber, sodium, vitamins, and minerals — all per 100g, for any food by ID.
Learn more →Start building with the Food Image Recognition API
Free to start. No credit card required.
Get API key Go to Dashboard