Analyze Food Image
analyze_food_imageIdentify food in a photograph and return a full nutritional breakdown.
Uses Edamam's AI Vision API (beta) to detect each dish on the plate, estimate its ingredients, and calculate nutrition. Every dish is analyzed independently, so multi-dish plates return one entry per dish. Works best with clear, well-lit photos.
The image is supplied as base64-encoded bytes (the API accepts only a raw image upload, not a URL), most conveniently as a data URI: "data:image/jpeg;base64,...". A caller with a remote URL must download the image itself and base64-encode the bytes.
To look up nutrition from a text description instead, use get_food_nutrition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | A base64 data URI (e.g. "data:image/jpeg;base64,...") — or a bare base64 string — of a food photograph. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dishes | Yes | One nutrition summary per detected dish; a single-dish photo yields a one-element list, a multi-dish plate yields several. |