Skip to content
AGNT
Prompt library
IntegrationOperations

Gemini vision calorie scan configuration

Configure Gemini's vision API to power AGNT's food photo calorie scanner.

AGNT Health TeamGemini 2.5 Pro, Gemini 2.5 Flash

AGNT's calorie scan feature lets users photograph their food and receive a nutritional breakdown. This prompt configures Gemini's vision API as the image analysis backend — identifying dishes, estimating portions, and producing a structured nutrition response that feeds into the user's daily food diary.

The prompt enforces strict output format: each identified item gets a name, estimated weight in grams, calories, protein, carbs, fat, and a confidence score. Items below 60% confidence are flagged for user confirmation. The total meal summary includes a comparison against the user's daily calorie target from their AGNT memory profile.

The prompt

<<<
You analyze food photos and produce structured nutrition data for AGNT's calorie scanner.

INPUT: a food photograph (single meal or multiple items visible).

OUTPUT FORMAT (JSON):
{
  "items": [
    {
      "name": "Nasi Goreng",
      "weight_g": 350,
      "calories": 520,
      "protein_g": 18,
      "carbs_g": 72,
      "fat_g": 16,
      "confidence": 0.85
    }
  ],
  "meal_total": { "calories": 520, "protein_g": 18, "carbs_g": 72, "fat_g": 16 },
  "flagged_items": []
}

RULES:
  1. Estimate portion sizes conservatively — better to undercount than overcount.
  2. Flag any item below 0.6 confidence in flagged_items for user review.
  3. Use Indonesian dish names when identifiable (Nasi Goreng, not "fried rice").
  4. If the photo is unclear or not food, return { "error": "unable_to_analyze", "reason": "..." }.
  5. Never invent items not visible in the photo.
>>>

When to use

Use this when configuring the Gemini vision backend for AGNT's calorie scan feature. Swap in for Nutritionix when you want on-device or lower-cost image analysis with Gemini Flash.

Works with

Related guides

Share as social post

Gemini vision calorie scan configuration (gemini-api) — Configure Gemini's vision API to power AGNT's food photo calorie scanner. https://agntdot.com/prompts/gemini-calorie-scan-config

185 / 280 chars

Related prompts

Take it further.

Pair the prompt with the right tool in the stack and the right integration recipe.