# Replate Intelligence Meal Photo Analyzer

> Replate Intelligence Meal Photo Analyzer is a paid API for AI agents from replate-backend61.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).

Analyzes a meal photo to identify visible foods, estimate food-group shares, assess plant diversity, flag missing food groups, and return a balance score with one practical dietary suggestion.

## Facts

- Endpoint: POST https://replate-backend61.vercel.app/api/analyze-meal?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/replate-intelligence-meal-photo-analyzer-64449d3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sj9L6CEU-BeXNHVIvVT9n

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability replate-intelligence-meal-photo-analyzer-64449d3e -d '<json body>'
```

Example prompt: Can you analyze this photo of my dinner plate and tell me what food groups are visible, which ones I'm missing, how diverse the plants are, and give me a balance score along with one suggestion to improve the meal?

## When to prefer this

Choose this endpoint when you need quick, visual-only dietary feedback on a meal photo without requiring any account, receipt, or nutritional database integration. It is ideal for lightweight nutrition awareness features, meal logging apps, or dietary coaching agents that want a fast balance score and a single actionable tip from an image. Prefer alternatives if you need exact calorie counts, medical-grade nutritional data, or barcode/receipt-based food tracking.

## Known failure modes

- Image too large (base64 payload exceeds 700,000 characters) — request rejected
- Non-food image submitted — model may return empty or low-confidence food list
- Blurry or low-quality photo — inaccurate food identification and group estimates
- Unsupported image format — only JPEG, PNG, WebP accepted
- Missing or malformed imageBase64 field — API returns validation error
- Network or cold-start latency on Vercel serverless — occasional slow responses

## How this service works

Analyze a meal photo for visible foods, estimated food-group shares, missing groups, plant diversity and a balance score. Returns JSON with one practical suggestion. No receipt, Replate account or receipt verification is required. Visual estimates only; no exact calories or medical assessment. (0.01 USDC)

## Output

A JSON object containing: a list of identified visible foods, estimated percentage shares per food group, missing food groups not present on the plate, a plant diversity count or score, an overall nutritional balance score, and one practical suggestion to improve the meal's nutritional profile. No calorie counts or medical assessments are included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "imageBase64": {
   "type": "string",
   "minLength": 1,
   "description": "JPEG, PNG or WebP meal photo as base64, optionally with a data URL prefix. The base64 image payload is limited to 700000 characters."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "items": [
    {
     "name": "broccoli",
     "group": "vegetables"
    },
    {
     "name": "salmon",
     "group": "protein"
    },
    {
     "name": "brown rice",
     "group": "grains"
    }
   ],
   "plate": [
    {
     "group": "vegetables",
     "share": 50
    },
    {
     "group": "protein",
     "share": 25
    },
    {
     "group": "grains",
     "share": 25
    }
   ],
   "insight": "This meal covers the main food groups.",
   "diversity": {
    "colors": [
     "green",
     "brown"
    ],
    "plants": [
     "broccoli",
     "brown rice"
    ],
    "plantCount": 2
   },
   "components": [
    "vegetables",
    "protein",
    "grains"
   ],
   "confidence": 0.92,
   "balanceScore": 89,
   "missingGroups": [],
   "detectedLabels": [
    {
     "label": "broccoli",
     "confidence": 0.92
    },
    {
     "label": "salmon",
     "confidence": 0.92
    },
    {
     "label": "brown rice",
     "confidence": 0.92
    }
   ],
   "recommendation": "Keep rotating colors, textures and whole-food ingredients.",
   "informationalOnly": true
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/replate-intelligence-meal-photo-analyzer-64449d3e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from replate-backend61.vercel.app](https://www.zero.xyz/host/replate-backend61.vercel.app/llms.txt)
