Meal Vision
meal_visionAnalyze a meal photo to itemized nutrition JSON: dishes, portions, kcal, macros with per-item confidence, reference-object scale calibration, scene-complexity detection, a disclosed calibrated kcal range, PFC balance ratios and alcohol-aware 4/4/9 cross-checks. Calibrated on 30 weighed meals (range contained truth in 26/30). Every call is a 3-run consensus with disclosed spread + item agreement. $0.05/image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hints | No | cuisine/context hint, e.g. 'Japanese teishoku, small diet portions' - measurably improves accuracy on regional home-style meals | |
| image_url | No | Absolute http(s) URL of the image (JPEG/PNG/WebP) | |
| pack_code | No | retry credit issued after an unbilled failed call (replaces payment) | |
| x_payment | No | Optional: base64 X-PAYMENT header value (x402 exact scheme, USDC on Base mainnet). Omit it to receive the payment requirements (accepts[] + docs) for this call without being charged. | |
| image_base64 | No | Base64-encoded image bytes (alternative to image_url) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | JSON body of the underlying call (see /samples/{product} for each product's shape) | |
| status | Yes | HTTP status of the underlying call (200 result, 402 payment terms, 4xx input error) | |
| how_to_pay | No | ||
| receipt_id | No | set on paid results; free re-fetch via get_receipt | |
| payment_required | No | true when status is 402: body holds x402 payment terms, not a result. Pay and call again with x_payment |