Faster nutrition lookups, volume packs, and meal context notes.
We moved USDA FoodData Central lookups in-memory on the Agent API, raised shared daily throughput to 5,000 scans/day, added prepaid volume packs up to 38% off, and shipped optional meal context notes across REST and MCP.
In-memory USDA matching with zero external hops
Previously, each detected food item on the public API checked our cache and then fanned out over HTTP to USDA FoodData Central. On multi-item plates, those network round-trips added tail latency and exposed scans to upstream rate limits.
The Agent API now resolves nutrition directly against our bundled local USDA FoodData Central table using matcher v8 – zero external FDC HTTP calls during analysis. Unmatched foods still fall back to structured AI macro estimation, and every item still reports its exact nutrition_source, fdc_id, and matched_name. We also added a single automatic server-side retry on transient upstream 429/502/503/504 responses so brief provider blips recover transparently at no extra credit charge (and failed scans still return their reserved credit).
With external lookup fan-out gone, we raised shared API admission limits to 5,000 new scans per rolling 24 hours, 600 per hour, 2,000 per key or wallet per day, and 20 concurrent jobs globally (10 per key).
Prepaid volume credit packs
Card-funded scan credits still start at $5 for 500 scans with no subscription and no expiration. For teams and active agents, Stripe Checkout now offers four packs (tax included):
| Pack ID | Price (USD) | Scans | Per scan | Savings |
|---|---|---|---|---|
pack_500 | $5 | 500 | $0.0100 | Base rate |
pack_3000 | $25 | 3,000 | $0.0083 | 17% off |
pack_7000 | $50 | 7,000 | $0.0071 | 29% off |
pack_16000 | $100 | 16,000 | $0.0063 | 38% off |
Select a tier on the credit checkout page, pass pack_id to POST /api/v1/credits/checkout, or run node quickstart.mjs checkout --pack=pack_3000. Autonomous Base USDC payments over x402 stay live at 0.01 USDC per successful scan.
Optional meal context note, static WebP, and data URLs
A single photo cannot reliably show cooking oil, oat versus whole milk, or hidden sauces. Both REST (POST /api/v1/analyze) and MCP (analyze_food) now accept an optional note field of 1 to 280 Unicode characters:
{
"image_base64": "...",
"mime_type": "image/webp",
"note": "fried in 1 tbsp olive oil, oat milk",
"known_total_grams": 340
}
- Composes with measured weight: pass
notealone or together withknown_total_grams. Both fields are bound to the request's idempotency fingerprint so retries stay deterministic. - Static WebP and data URLs:
image/webpis now accepted alongside JPEG and PNG (animated WebP is rejected), and matchingdata:image/...;base64,prefixes are stripped automatically. - Live balance visibility: credit-funded REST scans now return an
X-Credits-Remainingheader, and our MCP server adds a freecheck_balancetool plus_meta["kcalsnap/credits_remaining"]on everyanalyze_foodcall. - Stable pipeline versioning: responses now return a stable KcalSnap pipeline identifier (
kcalsnap-vision-1) in themodelfield.
Why our vision pipeline stayed on kcalsnap-vision-1
Alongside these updates, we screened newer vision models across 109 weighed meals from Nutrition5k and DFood-TJ. Several newer models improved scale-weight estimates on DFood, but none delivered a statistically clear calorie gain across both datasets without trading away speed or unit economics. Keeping kcalsnap-vision-1 preserves fast responses and strong margins while letting callers pass real meal context through note and known_total_grams.
Full request and response schemas are in openapi.json and llms.txt. Earlier benchmark reports: DFood weighed-photo study and Nutrition5k comparison.