Natural Language Command, Intent & Agent Router API
Parse natural-language user commands into 46 structured intents, grounded entity spans, and sub-0.2 ms autocomplete in <1 ms offline.
Extract 11 USDA nutrients, caffeine, glycemic load, satiety, allergens, TDEE/macro targets, and MET calories burned in <1 ms offline. Sub-millisecond offline 294-food USDA v2 meal nutrition estimator returning 11 nutrients plus caffeine, alcohol, glycemic load, satiety score, allergens, dietary tags, cooking-state scaling, and recipe servings — plus Mifflin-St Jeor BMR/TDEE macro targets and Compendium MET calories-burned calculation.
Additional endpoints in this module: POST /v1/nutrition/calories-burned, POST /v1/nutrition/targets
{
"ok": true,
"data": {
"estimated": true,
"serving_size_g": 500,
"calories": 765,
"protein_g": 69,
"carbohydrates_total_g": 55,
"fat_total_g": 30,
"fat_saturated_g": 5.4,
"fiber_g": 10.6,
"sugar_g": 1.2,
"sodium_mg": 161,
"potassium_mg": 1293,
"cholesterol_mg": 170,
"caffeine_mg": 0,
"alcohol_g": 0,
"glycemic_load": "high",
"satiety_score": 79,
"allergens": [],
"dietary_tags": [
"gluten_free",
"dairy_free",
"high_protein",
"high_fiber"
],
"items": [
{
"label": "200g Chicken breast",
"name": "Chicken breast",
"serving_size_g": 200,
"calories": 330,
"protein_g": 62,
"carbohydrates_total_g": 0,
"fat_total_g": 7,
"fat_saturated_g": 2,
"fiber_g": 0,
"sugar_g": 0,
"sodium_mg": 148,
"potassium_mg": 512,
"cholesterol_mg": 170,
"allergens": []
},
{
"label": "150g White rice",
"name": "White rice",
"serving_size_g": 150,
"calories": 195,
"protein_g": 4,
"carbohydrates_total_g": 42,
"fat_total_g": 0,
"fat_saturated_g": 0.2,
"fiber_g": 0.6,
"sugar_g": 0.2,
"sodium_mg": 2,
"potassium_mg": 53,
"cholesterol_mg": 0,
"allergens": []
},
{
"label": "Avocado",
"name": "Avocado",
"serving_size_g": 150,
"calories": 240,
"protein_g": 3,
"carbohydrates_total_g": 13,
"fat_total_g": 22,
"fat_saturated_g": 3.2,
"fiber_g": 10,
"sugar_g": 1,
"sodium_mg": 11,
"potassium_mg": 728,
"cholesterol_mg": 0,
"allergens": []
}
],
"unmatched_segments": []
},
"meta": {
"request_id": "req_nutr_01",
"ms": 1
}
}
curl -X POST "https://api.tinplate.dev/v1/nutrition/estimate" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TINPLATE_KEY" \
-d '{"text":"200g chicken breast with 150g white rice and 1 avocado"}'import { TinplateClient } from "@tinplate/sdk";
const tinplate = new TinplateClient({
apiKey: process.env.TINPLATE_API_KEY!,
});
const { data, meta } = await tinplate.call("/v1/nutrition/estimate", {
"text": "200g chicken breast with 150g white rice and 1 avocado"
});
console.log(`[${meta.ms} ms]`, data);import requests
response = requests.post(
"https://api.tinplate.dev/v1/nutrition/estimate",
headers={
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_TINPLATE_KEY",
},
json={
"text": "200g chicken breast with 150g white rice and 1 avocado"
}
)
print(response.json())const response = await fetch("https://api.tinplate.dev/v1/nutrition/estimate", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_TINPLATE_KEY",
},
body: JSON.stringify({
"text": "200g chicken breast with 150g white rice and 1 avocado"
}),
});
const result = await response.json();
console.log(result);{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tinplate_nutrition_macros",
"arguments": {
"text": "200g chicken breast with 150g white rice and 1 avocado"
}
}
}POST /v1/nutrition/estimate)| Parameter | Type & Constraints | Description |
|---|---|---|
text required |
stringminLen: 1, maxLen: 2048 |
Natural-language food or multi-item meal description with optional weights (g, kg, oz, lb, ml), cooking states (raw, cooked, grilled, fried, breaded, boiled, baked, steamed), recipe serving splits, or quantities (cups, slices, scoops, eggs). |
servings optional |
integermin: 1, max: 100 |
Optional explicit recipe serving count for computing per_serving macro splits alongside total meal values. |
custom_foods optional |
object[] |
Optional per-request custom or branded foods merged ahead of the built-in 294-food USDA v2 database. |
data Object Fields (200 OK)| Field | Type | Description |
|---|---|---|
estimated |
boolean |
Field 'estimated' |
serving_size_g |
number |
Field 'serving_size_g' |
calories |
number |
Field 'calories' |
protein_g |
number |
Field 'protein_g' |
carbohydrates_total_g |
number |
Field 'carbohydrates_total_g' |
fat_total_g |
number |
Field 'fat_total_g' |
fat_saturated_g |
number |
Field 'fat_saturated_g' |
fiber_g |
number |
Field 'fiber_g' |
sugar_g |
number |
Field 'sugar_g' |
sodium_mg |
number |
Field 'sodium_mg' |
potassium_mg |
number |
Field 'potassium_mg' |
cholesterol_mg |
number |
Field 'cholesterol_mg' |
caffeine_mg |
number |
Field 'caffeine_mg' |
alcohol_g |
number |
Field 'alcohol_g' |
glycemic_load |
"low" | "medium" | "high" |
Field 'glycemic_load' |
satiety_score |
integer |
Field 'satiety_score' |
allergens |
string[] |
Field 'allergens' |
dietary_tags |
string[] |
Field 'dietary_tags' |
servings |
integer |
Field 'servings' |
per_serving |
object |
Field 'per_serving' |
items |
object[] |
Field 'items' |
unmatched_segments |
string[] |
Field 'unmatched_segments' |
Release: v1.0.57 ·
Verified: 18 November 2026 ·
Portfolio Median: 0.397 ms in-Worker V8 compute (add 15–65 ms HTTPS RTT) ·
See Full Portfolio Benchmarks →
Direct Polar All-Access Keys unlock all 34 APIs (45 endpoints), /v1/pipeline, and /mcp on api.tinplate.dev:
All-Access Pro ($29/mo · 120 req/min · 100k/mo · 128 KB) or All-Access Team ($79/mo · 300 req/min · 500k/mo · 256 KB). RapidAPI per-API tiers below ($0–$79.99/mo) apply to individual standalone listings (plus the RapidAPI All-in-One Collection, $0–$199.99/mo). On Zyla API Hub, standalone APIs range $0 / $24.99–$999.99/mo and the Zyla All-in-One Suite ranges $0 / $49.99–$999.99/mo (Basic 64 KB, Pro 128 KB, ProPlus–Ultimate 256 KB):
| Marketplace Tier (Per API) | Monthly Price | Included Requests | Rate Limit | Max Payload | Best For |
|---|---|---|---|---|---|
| Marketplace BASIC | $0.00 / mo | 500 / month | 10 req / min | 64 KB | Evaluation & CI smoke tests |
| Marketplace PRO | $9.99 / mo | 15,000 / month | 60 req / min | 128 KB | Solo devs & single-API apps |
| Marketplace ULTRA | $29.99 / mo | 100,000 / month | 300 req / min | 256 KB | Production single-API SaaS |
| Marketplace MEGA | $79.99 / mo | 500,000 / month | 1,000 req / min | 256 KB | High-volume single-API workloads |
Yes—all 11 USDA nutrients plus caffeine_mg, alcohol_g, glycemic_load, satiety_score, allergens, and dietary_tags are returned in full on every call with zero paywalled fields.
POST /v1/nutrition/targets uses the Mifflin-St Jeor BMR/TDEE equation with goal presets (cut, maintain, bulk, keto, high_protein) and bodyweight hydration scaling; POST /v1/nutrition/calories-burned applies the Compendium MET formula (MET × weight_kg × duration_minutes / 60) offline in <1 ms.
Submitted meal descriptions, custom foods, body metrics, and activity inputs are evaluated in memory and discarded immediately.
Infrastructure & Proxy Notice: Tinplate does not store request payloads; Cloudflare Workers observability and invocation logging are disabled by configuration. Cloudflare and marketplace intermediaries (RapidAPI / Zyla) process traffic under their own terms; use a Direct Bearer Key to avoid marketplace proxies.
Parse natural-language user commands into 46 structured intents, grounded entity spans, and sub-0.2 ms autocomplete in <1 ms offline.
Normalize messy EU/US prices, dates, numbers, and measurements into structured JSON.