Food Calorie Analyzer avatar
Food Calorie Analyzer

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Food Calorie Analyzer

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

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

Aadhithya

Aadhithya

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Share

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

  1. Provide Image: Supply a meal image URL or an image already stored in Apify's Key-Value Store
  2. Select AI Provider: Select OpenAI vision models
  3. Configure Model: Optionally specify the vision model to use
  4. Analyze Meal: The AI examines the image to identify food items and estimate portions
  5. 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 nutrition
  • totalCalories: Total estimated calories for the meal
  • totalProtein_g: Total protein content in grams
  • totalCarbs_g: Total carbohydrate content in grams
  • totalFat_g: Total fat content in grams
  • disclaimer: 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:

  1. Obtain an API key from your chosen provider
  2. Pass the aiProvider and apiKey in your input (or configure as platform secrets)
  3. Optionally specify the model to use
  4. Set testMode to true for testing without API keys
  5. 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

  1. Prepare your meal image (public URL)
  2. Configure your AI provider with API key (as input or platform secret)
  3. Run the actor with your image URL and provider settings
  4. 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.