Offline Natural-Language Nutrition, Macros & Calories Burned API
Extract 11 USDA nutrients, caffeine, glycemic load, satiety, allergens, TDEE/macro targets, and MET calories burned in <1 ms offline.
Parse natural-language user commands into 46 structured intents, grounded entity spans, and sub-0.2 ms autocomplete in <1 ms offline. Deterministic sub-millisecond natural-language parser covering 46 intents (tasks with RRULE/.ics/date ranges/business days, split-bill multi-currency expenses across 39 currencies, workouts, steps, biomarkers, meals, 120+ city DST timezones, finance & TDEE calculators, 13-locale diacritic-insensitive polyglot, grounded entity spans, ghost-text autocomplete, and stateless patch_last batch chaining) with confidence and needs_llm routing signals.
Additional endpoints in this module: POST /v1/omnibar/suggest, POST /v1/omnibar/batch
{
"ok": true,
"data": {
"kind": "expense",
"confidence": 0.96,
"matched_by": "money:spent",
"needs_llm": false,
"summary": "Expense: €14.50 (Lunch)",
"normalized_input": "spent €14.50 on lunch yesterday",
"intent": {
"kind": "expense",
"title": "Lunch",
"amountCents": 1450,
"currency": "EUR",
"category": "Food & Dining",
"date": "2026-11-21"
},
"tokens": [
{
"text": "spent",
"kind": "command"
},
{
"text": " ",
"kind": "plain"
},
{
"text": "€14.50",
"kind": "amount"
},
{
"text": " ",
"kind": "plain"
},
{
"text": "on",
"kind": "plain"
},
{
"text": " ",
"kind": "plain"
},
{
"text": "lunch",
"kind": "plain"
},
{
"text": " ",
"kind": "plain"
},
{
"text": "yesterday",
"kind": "date"
}
],
"spans": [
{
"field": "command",
"start": 0,
"end": 5,
"text": "spent",
"value": "expense"
},
{
"field": "amount",
"start": 6,
"end": 12,
"text": "€14.50",
"value": 1450
},
{
"field": "date",
"start": 22,
"end": 31,
"text": "yesterday",
"value": "2026-11-21"
}
],
"sentiment": {
"polarity": "neutral",
"score": 0,
"mood": "calm",
"urgency": "normal",
"signals": []
}
},
"meta": {
"request_id": "req_omni_01",
"ms": 1
}
}
curl -X POST "https://api.tinplate.dev/v1/omnibar/parse" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TINPLATE_KEY" \
-d '{"text":"spent €14.50 on lunch yesterday","now":"2026-11-22T12:00:00Z","timezone":"Europe/Berlin","include_tokens":true,"include_spans":true,"include_sentiment":true}'import { TinplateClient } from "@tinplate/sdk";
const tinplate = new TinplateClient({
apiKey: process.env.TINPLATE_API_KEY!,
});
const { data, meta } = await tinplate.call("/v1/omnibar/parse", {
"text": "spent €14.50 on lunch yesterday",
"now": "2026-11-22T12:00:00Z",
"timezone": "Europe/Berlin",
"include_tokens": true,
"include_spans": true,
"include_sentiment": true
});
console.log(`[${meta.ms} ms]`, data);import requests
response = requests.post(
"https://api.tinplate.dev/v1/omnibar/parse",
headers={
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_TINPLATE_KEY",
},
json={
"text": "spent €14.50 on lunch yesterday",
"now": "2026-11-22T12:00:00Z",
"timezone": "Europe/Berlin",
"include_tokens": true,
"include_spans": true,
"include_sentiment": true
}
)
print(response.json())const response = await fetch("https://api.tinplate.dev/v1/omnibar/parse", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_TINPLATE_KEY",
},
body: JSON.stringify({
"text": "spent €14.50 on lunch yesterday",
"now": "2026-11-22T12:00:00Z",
"timezone": "Europe/Berlin",
"include_tokens": true,
"include_spans": true,
"include_sentiment": true
}),
});
const result = await response.json();
console.log(result);{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tinplate_omnibar_nlp",
"arguments": {
"text": "spent €14.50 on lunch yesterday",
"now": "2026-11-22T12:00:00Z",
"timezone": "Europe/Berlin",
"include_tokens": true,
"include_spans": true,
"include_sentiment": true
}
}
}POST /v1/omnibar/parse)| Parameter | Type & Constraints | Description |
|---|---|---|
text required |
stringminLen: 1, maxLen: 8192 |
Natural-language command, voice dictation, multi-action chain, or multi-line checklist to parse deterministically (max 8 KB). |
now optional |
stringmaxLen: 64 |
Optional ISO-8601 reference timestamp for deterministic date/time calculations (defaults to current UTC time). |
timezone optional |
stringmaxLen: 64 |
Optional IANA timezone for resolving relative dates such as 'today', 'tomorrow', or 'yesterday' (default 'UTC'). |
default_currency optional |
string |
Optional 3-letter ISO-4217 fallback currency code (39 global currencies supported) when input omits a currency symbol. |
locale optional |
"en" | "hu" | "de" | "es" | "fr" | "it" | "pt" | "pl" | "nl" | "sv" | "tr" | "ja" | "zh" |
Optional language hint across 13 supported locales (en, hu, de, es, fr, it, pt, pl, nl, sv, tr, ja, zh) for diacritic-insensitive polyglot parsing. |
last_answer optional |
number |
Optional previous numeric calculator answer for stateless 'ans' chaining (e.g. 'ans * 2'). |
user_weight_kg optional |
numbermin: 30, max: 250 |
Optional user bodyweight in kilograms for MET calories-burned estimates on workout & step logs (default 70). |
fx_rates optional |
object |
Optional custom FX rates (value of 1 currency unit in USD) merged over the built-in 39-currency reference table. |
domains optional |
string[] |
Optional allowlist of enabled intent domains. Intents outside this list gracefully fall back to 'task' or 'ai_ask'. |
projects optional |
object[] |
Optional list of project references for '#project' resolution in tasks and expenses. |
custom_routes optional |
object[] |
Optional caller-defined navigation routes matched by the 'navigate' intent. |
macros optional |
object |
Optional user-defined alias map (trigger -> expansion) applied before parsing. |
wake_words optional |
string[] |
Optional assistant wake words stripped from conversational prefixes. |
snapshot optional |
object |
Optional workspace metrics & entity names (contacts, open tasks, books, habits, goals, jobs) for offline Q&A and attendee matching. |
previous_intent optional |
object |
Optional stateless previous intent object returned from an earlier /v1/omnibar/parse call, enabling 'patch_last' follow-up corrections (e.g. 'actually make it 3pm'). |
custom_foods optional |
object[] |
Optional per-request custom or branded foods merged ahead of the built-in 294-food USDA v2 database. |
custom_slash_commands optional |
object[] |
Optional per-request custom slash commands normalized before parsing (e.g. '/jira' -> 'task: [JIRA] '). |
allow_compound optional |
booleandefault: true |
When true (default), splits chained multi-action statements and multi-line pasted checklists. |
include_tokens optional |
booleandefault: false |
Include semantic syntax-highlighting token spans in the response. |
include_spans optional |
booleandefault: false |
Include exact UTF-16 character-offset entity spans guaranteed to match text.slice(start, end) === span.text. |
include_alternatives optional |
booleandefault: false |
Include secondary disambiguation intents when input phrasing is ambiguous. |
include_sentiment optional |
booleandefault: false |
Include offline polarity, mood, and urgency analysis. |
include_ics optional |
booleandefault: false |
When true and the parsed intent is a 'task', emits an RFC 5545 VCALENDAR/VEVENT/VALARM .ics string. |
data Object Fields (200 OK)| Field | Type | Description |
|---|---|---|
kind |
string |
Field 'kind' |
confidence |
number |
Field 'confidence' |
matched_by |
string |
Field 'matched_by' |
needs_llm |
boolean |
Field 'needs_llm' |
summary |
string |
Field 'summary' |
normalized_input |
string |
Field 'normalized_input' |
detected_locale |
"en" | "hu" | "de" | "es" | "fr" | "it" | "pt" | "pl" | "nl" | "sv" | "tr" | "ja" | "zh" |
Field 'detected_locale' |
intent |
object |
Field 'intent' |
macro_trigger |
string |
Field 'macro_trigger' |
near_miss_hint |
object |
Field 'near_miss_hint' |
tokens |
object[] |
Field 'tokens' |
spans |
object[] |
Field 'spans' |
alternatives |
object[] |
Field 'alternatives' |
sentiment |
object |
Field 'sentiment' |
ics |
string |
Field 'ics' |
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 |
Deterministic commands (dates, expenses, math, conversions, timezones, timers, steps, biomarkers, structured logs) execute in <1 ms with needs_llm=false. Only open-ended questions or low-confidence fallbacks return needs_llm=true so your agent escalates selectively.
Yes—call POST /v1/omnibar/suggest for sub-0.2 ms ghost-text completions, pass previous_intent to POST /v1/omnibar/parse for 'patch_last' corrections ('actually make it 3pm'), or send multi-turn sequences to POST /v1/omnibar/batch.
Submitted command text, custom routes, custom foods, snapshots, and macros are parsed 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.
Extract 11 USDA nutrients, caffeine, glycemic load, satiety, allergens, TDEE/macro targets, and MET calories burned in <1 ms offline.
Normalize messy EU/US prices, dates, numbers, and measurements into structured JSON.
Validate cron expressions, translate to plain English, and compute next N runs with DST.