Food Calorie Analyzer
Pricing
from $0.01 / 1,000 results
Food Calorie Analyzer
AI-powered food calorie analyzer that uses computer vision to estimate calories and nutrition from meal images. It identifies foods and provides detailed calorie, protein, carbohydrate, and fat estimates using OpenAI vision models
An AI-powered food calorie analyzer that uses computer vision to estimate calories and nutrition information from meal images. The actor analyzes food photos using OpenAI vision models and provides detailed nutritional breakdowns including calories, protein, carbohydrates, and fat content.
Overview
The Food Calorie Analyzer leverages advanced AI vision models to examine meal images and provide detailed nutritional assessments. It identifies food items present in the image, estimates portion sizes visually, and calculates comprehensive nutritional information including calories, protein, carbohydrates, and fat content. The actor provides confidence scores for food identification and aggregates nutritional values for complete meal analysis.
How It Works
- Provide Image: Supply a meal image URL or an image already stored in Apify's Key-Value Store
- Select AI Provider: Select OpenAI vision models
- Configure Model: Optionally specify the vision model to use
- Analyze Meal: The AI examines the image to identify food items and estimate portions
- Receive Nutrition Data: Get a comprehensive nutritional breakdown with calorie and macro estimates
Input Parameters
The actor accepts the following input:
imageUrl: Public URL of the meal/food image (required)aiProvider: AI provider to use ('openai')model: Vision-capable model (e.g. 'gpt-4o-mini', 'gpt-4o')testMode: Enable test mode for auto-testing (defaults to false)apiKey: API key for the selected AI provider (optional, will use platform secrets if not provided)
Note: imageUrl is required
Output
The actor returns a comprehensive nutrition analysis including:
identifiedFoods: Array of identified food items with estimated nutritiontotalCalories: Total estimated calories for the mealtotalProtein_g: Total protein content in gramstotalCarbs_g: Total carbohydrate content in gramstotalFat_g: Total fat content in gramsdisclaimer: Mandatory nutrition disclaimer
AI Provider Integration
The Food Calorie Analyzer supports OpenAI with vision capabilities:
OpenAI Integration
- Supports vision models like GPT-4o, GPT-4o Mini
- Requires an OpenAI API key
- Provides detailed analysis of food items and nutritional estimates
Using AI Provider
To use AI providers:
- Obtain an API key from your chosen provider
- Pass the
aiProviderandapiKeyin your input (or configure as platform secrets) - Optionally specify the
modelto use - Set
testModeto true for testing without API keys - The actor will use AI vision models to analyze the meal image
Example Use Cases
- Estimating calories in restaurant meals
- Tracking nutritional intake from food photos
- Planning balanced meals based on visual analysis
- Understanding macro nutrient distribution in meals
- Monitoring portion sizes through image analysis
- Creating nutrition logs from meal pictures
Quick Start
- Prepare your meal image (public URL)
- Configure your AI provider with API key (as input or platform secret)
- Run the actor with your image URL and provider settings
- Review the nutritional breakdown and calorie estimates
Sample Input
{"imageUrl": "https://example.com/my-meal.jpg","aiProvider": "openai","apiKey": "your-openai-api-key-here","model": "gpt-4o-mini"}
Benefits
- Visual Analysis: Uses AI vision models to identify food items from meal images
- Nutrition Estimation: Provides calorie and macro nutrient estimates
- Portion Recognition: Estimates portion sizes based on visual cues
- Confidence Scoring: Shows confidence levels for food identifications
- AI-Powered: Leverages cutting-edge AI models for accurate analysis
- Simple Input: Requires only a public image URL
- Secure API Keys: Supports encrypted API keys as input or platform secrets
- Comprehensive Breakdown: Detailed nutritional information for complete meals
Important Disclaimer
This is an AI estimate, not medical advice. Nutritional values may vary based on preparation methods and actual portion sizes. Please consult a qualified nutritionist or use verified nutritional databases for precise dietary planning.
