AI credits

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.

200 OK
POST /v1/vision/product
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.

Start building with the Food Image Recognition API

Free to start. No credit card required.

Get API key Go to Dashboard