Endpoints
Describe Meal
Analyzes a text description of a meal and returns nutritional information
POST
/
describeMeal
Copy
curl --request POST \
--url http://api.calai.app/v2/describeMeal \
--header 'Content-Type: application/json' \
--data '{
"data": {
"text": "<string>"
}
}'
Copy
{
"success": true,
"data": {
"carbs": 123,
"fats": 123,
"protein": 123,
"ethanolCarbRatio": 123,
"calories": 123,
"name": "<string>",
"servings": 123,
"ingredients": [
{
"name": "<string>",
"protein": 123,
"carbs": 123,
"fats": 123,
"calories": 123,
"isAdded": true
}
],
"healthRating": {
"rating": 123,
"tip1": "<string>",
"tip2": "<string>",
"tip3": "<string>"
},
"shouldUseLabelScanner": true
},
"error": "noFoodDetectedText"
}
Body
application/json
Response
200 - application/json
Successful response
The response is of type object
.
The response is of type object
.
The response is of type object
.
Copy
curl --request POST \
--url http://api.calai.app/v2/describeMeal \
--header 'Content-Type: application/json' \
--data '{
"data": {
"text": "<string>"
}
}'
Copy
{
"success": true,
"data": {
"carbs": 123,
"fats": 123,
"protein": 123,
"ethanolCarbRatio": 123,
"calories": 123,
"name": "<string>",
"servings": 123,
"ingredients": [
{
"name": "<string>",
"protein": 123,
"carbs": 123,
"fats": 123,
"calories": 123,
"isAdded": true
}
],
"healthRating": {
"rating": 123,
"tip1": "<string>",
"tip2": "<string>",
"tip3": "<string>"
},
"shouldUseLabelScanner": true
},
"error": "noFoodDetectedText"
}
Assistant
Responses are generated using AI and may contain mistakes.