LLM Math Pro · Bedrocka Tools
AI cost math without the vendor pitch.
Most AI pricing calculators are embedded in vendor dashboards with an incentive to maximize your spend. This site is the opposite: every formula is open-source, every token price cites the provider's published API pricing page, and every tool is reviewed by a named operator. Built for developers and teams calculating LLM cost, token usage, prompt caching savings, and multi-provider cost comparison.
Calculators
Pick the AI cost math you actually need.
Learn
Concepts behind the AI cost math.
Token Cost
LLM cost per million tokens explained: input, output, and caching
Input tokens, output tokens, and cached tokens price at different rates — and output tokens are typically 3-5× more expensive. Here's the model-agnostic framework for understanding LLM cost at scale.
Prompt Caching
Prompt caching ROI by use case: when it pays and when it doesn't
Prompt caching breaks even at ~60% cache hit rate for most workloads. Customer support and RAG retrieval are natural fits; one-off generation rarely justifies the write cost. Here's the use-case breakdown.
What makes this different
Three things every Bedrocka Tools site does that the vendor dashboard mills don't.
Open-source math
Every calculator's formula is published as TypeScript with Vitest tests in a public repo. Click "View source" in any math accordion to see the actual implementation. Vendor dashboards hide their math behind pricing tiers; we publish ours.
Browse the math →Primary-source citations only
Every token price, caching rate, and context window limit links to the provider's official API pricing page — Anthropic, OpenAI, Google, and Mistral pricing pages with last-verified date. No "approximately" hedging. The citation is the proof.
Read the methodology →Named operator, no affiliate deal
Reviewed and signed by Byron Malone— operator-author who runs LLM workloads on his own ventures and has modeled these exact cost tradeoffs at production scale. Not a vendor. Not an affiliate with a referral fee. Nothing here earns a commission tied to which provider you choose.
Read Byron's bio →Bedrocka Tools family
LLM Math Pro is part of the Bedrocka Tools portfolio of source-cited calculator sites. For business finance — SBA loans, cash runway, DSCR, break-even — visit bizmathpro.com (Business Finance Hub). Same doctrine, different depth. Each site is individually source-cited and quarterly reviewed.
More Bedrocka Tools calculators
- Business Finance HubBusiness loans, SBA, banking & payroll calculators
- Roth Conversion Math ProIRA & Roth conversion calculators with tax math shown
- Insurance Math ProLife, auto, home & health insurance cost calculators
- Solar Math ProSolar savings & payback calculators without the installer pitch
- College Math ProStudent loan, college cost & scholarship calculators
- Renovation Math ProHome renovation cost & ROI calculators
- Pet Math ProPet insurance, lifetime cost & vet bill calculators
- Grants Math ProSBIR, federal grant & state incentive estimators
- Auto Math ProCar depreciation, loan, lease & insurance calculators