Meal Vision
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.
https://mart402.com/v1/meal-vision- Price
- $0.05
- per call in USDC
- Uptime
- 97.1%
- last 30 days
- Response time
- 439 ms
- 840 ms slowest 5%
- Last check
- Passed
- 5 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://mart402.com/v1/meal-vision
Each call costs $0.05 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://mart402.com/v1/meal-vision
content-type: application/json
{
"image_url": "https://mart402.com/samples/assets/meal.jpg"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
image_url | string | No |
Example response
The provider's example. We can't check it without paying.
Example response, 101 lines
{
"_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..."
}
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.05.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://mart402.com/v1/meal-vision' \
-H 'content-type: application/json' \
--data-raw '{"image_url":"https://mart402.com/samples/assets/meal.jpg"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://mart402.com/v1/meal-vision' \
-H 'content-type: application/json' \
--data-raw '{"image_url":"https://mart402.com/samples/assets/meal.jpg"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.05 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.05" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.05 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmart402.com%2Fv1%2Fmeal-vision&method=POST
const res = await pay("https://mart402.com/v1/meal-vision", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"image_url": "https://mart402.com/samples/assets/meal.jpg"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.05 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.05"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://mart402.com/v1/meal-vision",
json={
"image_url": "https://mart402.com/samples/assets/meal.jpg",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 h ago | Passed | 402 | 165 ms | $0.05 |
| 40 h ago | Timed out | - | - | - |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 419 ms | $0.05 |
| 4 days ago | Passed | 402 | 448 ms | $0.05 |
Show 10 older checks
| 5 days ago | Passed | 402 | 443 ms | $0.05 |
| 5 days ago | Passed | 402 | 487 ms | $0.05 |
| 6 days ago | Passed | 402 | 226 ms | $0.05 |
| 6 days ago | Passed | 402 | 447 ms | $0.05 |
| 6 days ago | Passed | 402 | 484 ms | $0.05 |
| 6 days ago | Passed | 402 | 240 ms | $0.05 |
| 7 days ago | Passed | 402 | 186 ms | $0.05 |
| 7 days ago | Passed | 402 | 428 ms | $0.05 |
| 7 days ago | Passed | 402 | 494 ms | $0.05 |
| 8 days ago | Passed | 402 | 209 ms | $0.05 |