AI Dish Analysis

Describe any meal in natural language and get a full macro breakdown. Available on Starter plan and above.

POST /v1/analyze

Request

curl -X POST "https://api.c0r.ai/v1/analyze" \
  -H "X-API-Key: fdb_your_key" \
  -H "Content-Type: application/json" \
  -d '{"text": "200g salmon with 150g brown rice", "lang": "en"}'

Request Body

FieldTypeRequiredDescription
textstringyesDish description (any language)
langstringnoResponse language: en (default), ru, ar

Response

{
  "dish": "Salmon with brown rice",
  "nutrition": {
    "calories": 490,
    "proteins": 44.0,
    "fats": 13.0,
    "carbs": 42.0
  },
  "components": [
    { "name": "Salmon, baked", "weight_g": 200, "calories": 290 },
    { "name": "Brown rice, cooked", "weight_g": 150, "calories": 200 }
  ],
  "confidence": "high",
  "lang": "en"
}