Gemini vision calorie scan configuration
Configure Gemini's vision API to power AGNT's food photo calorie scanner.
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
Codex fleet-swap operator prompt
Walk an operator through swapping an AGNT agent from claude_local to codex_local.
Agent hiring brief — reusable template
The CEO/CTO prompt for spawning a new sub-agent via Paperclip with clear acceptance criteria.
Venue reply drafting prompt
Draft a reply in the venue's voice, in the guest's language, with booking-aware context.