← Back to directory

Meal photo to nutrition JSON for AI agents: itemized dishes with portions/kcal/m...

https://mart402.com/v1/meal-vision

Overview

Meal photo to nutrition JSON for AI agents: itemized dishes with portions/kcal/macros, reference-object scale calibration (chopsticks/cutlery/phone, with strength grading), scene-complexity detection, a disclosed calibrated kcal range, PFC energy-balance ratios, and deterministic 4/4/9 cross-checks (alcohol-aware). All estimates carry honest confidence + rules_version. Every call is a 3-run consensus: median run reported with per-call spread and item agreement disclosed. $0.05/image.

Protocol x402 (POST)
Price $0.05
Payment Asset USD Coin
Payment Network eip155:8453
Category media/images
Provider Mart402
Source bazaar
Indexed 2026-09-28 01:20:17

Health

Status healthy
Latency (p50) 659ms
Uptime (30d) 98.5%
Reliability Score 89.2/100
Last Checked 2026-10-31 07:12:03
Last Healthy 2026-10-31 07:12:03
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "image_url": "https://mart402.com/samples/assets/meal.jpg" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "description": "JSON: items[{name, portion_g, kcal, protein_g, fat_g, carb_g, confidence}], totals, verification (deterministic kcal-macro cross-checks with flags)", "example": { "_example_note": "shape only: long arrays show their first item, long strings end with '...'; full response at /samples/{product}", "_example_trimmed": true, "assumptions": [ "assumed ground pork in stir-fry; if soy meat, total kcal ~100-150 lower", "oil/roux in stir-fry estimated at 15g fat per serving", "rice bowl assumed 11-12cm rim (small teishoku bowl)" ], "calibration": { "basis": "labeled + weighed-meal calibration (2026-08-10, 17 meals): complex scenes ran 10...", "kcal_range": [ 469, 1005 ] }, "confidence": { "adjustment_rule": "x0.7 when multi_dish or >=6 items (published; measured undercount on complex sce...", "per_item_mean": 0.825, "per_item_min": 0.75, "scene_adjusted_mean": 0.577 }, "consensus": { "item_agreement": 1, "kcal_per_run": [ 720, 640, 670 ], "kcal_spread_pct": 0.119, "method": "independent VLM runs; the median-kcal run is reported and per-photo spread + ite...", "runs_completed": 3, "runs_requested": 3, "selection": "median-total-kcal run" }, "cuisine_guess": "Japanese", "food_detected": true, "image_quality": { "food_visible": true, "issues": [ "portion depth in stir-fry dishes estimated from surface area" ] }, "items": [ { "carb_g": 53, "confidence": 0.9, "fat_g": 0.4, "kcal": 240, "name": "white rice", "notes": "small rice bowl, typical teishoku portion", "portion_g": 180, "protein_g": 4 } ], "meal_type_guess": "lunch", "model": "mistral-medium-latest", "note": "ILLUSTRATIVE SAMPLE showing the exact response shape (generated by the productio...", "ok": true, "pfc_balance": { "carb_pct": 49.7, "fat_pct": 33.5, "note": "share of macro-derived energy (4/4/9); reference = dietary guideline targets for...", "protein_pct": 16.8, "reference_range": { "carb": "50-65%", "fat": "20-30%", "protein": "13-20%" } }, "rules_version": "mv-rules-1.6.0", "sample": true, "scale_reference": { "assumed_size_cm": 23, "note": "used to estimate bowl sizes and portion volumes", "object": "chopsticks", "strength": "strong", "used": true }, "scene": { "complex": true, "confidence_factor": 0.7, "note": "multi-dish scenes historically undercount totals; per-dish close-up photos give ...", "scene_type": "multi_dish" }, "seconds": 12.4, "totals": { "carb_g": 82, "fat_g": 24.6, "kcal": 670, "protein_g": 27.8 }, "verification": { "checks": [ { "...": "omitted" } ], "flags": [], "method": "deterministic cross-checks on the model estimate: kcal recomputed from macros (4..." } }, "type": "json" }