Clear assumptions. No hidden math.
How the calculators work, where the data comes from, and what is not included.
The calculation
Cost = requests × [(uncached input × input rate) + (cached input × cache-read rate) + (billed output × output rate)] ÷ 1,000,000
Cached input = input tokens × cached share. The monthly estimator multiplies requests per day by days in the billing period. All calculations use unrounded values; display rounding does not affect totals. Requests must be nonnegative whole numbers. A zero workload costs zero in this model.
What this does not include
Tool calls, search, media tokens, image generation, audio, fine-tuning, priority or batch pricing, cache writes, cache storage, regional premiums, minimum charges, free credits, taxes, or negotiated enterprise rates. Output should include all billable thinking and reasoning tokens. Results are estimates, not invoices, performance rankings, or recommendations about model quality.
Data & freshness
Provider pages checked November 23, 2026. The site ships a versioned local pricing snapshot. It does not fetch live prices or silently refresh them. Confirm the linked provider rates before committing a production budget. Future updates should be reviewed and redeployed; each model has its own source link in the catalog.
Token-count accuracy
The counter uses js-tiktoken 1.0.21 with o200k_base or cl100k_base. Its result is exact for plain text under the selected encoding only. It does not reproduce an entire chat API request or claim exactness for Claude, Gemini, or newer encodings.
Privacy & independence
No account is required. Text and calculator inputs stay in your browser. This v1 has no analytics, ads, tracking cookies, or affiliate links. It is not affiliated with any model provider. Provider links open external sites with their own policies.
About this public test
TokenLedger is a working-name prototype for independent AI cost tools. Brand and domain availability have not been checked. The site is an early public test, not an ad-approved service.