Logs & Sharing
API Cost Reconstructor
Estimate token costs with your own decimal rate card and auditable component arithmetic.
Your input stays in this browser.No input upload. No local history saved.
256 KiB limitInput
Result
A useful result starts here.
Paste your input or load an example,
then run the tool.
Supported formats & limitations
- Processed entirely in a browser worker; no input upload or local history.
- Rules snapshot: 2026-10-06. Inputs are bounded to 256 KiB and structural/record limits apply.
- Rates are user-supplied nonnegative decimal strings with up to six decimal places. No live price lookup. At most 2,000 unique usage identities.
- inputMode exclusive means input excludes cached tokens (Claude analyzer exports); inclusive subtracts cache reads/writes before charging ordinary input.
- Missing nonzero-component rates or counts yield unknown totals and a separate known subtotal. Zero tokens cost zero. BigInt arithmetic avoids floating point drift.
- Token-only estimate: excludes fees, tax, pricing tiers and residency. Cache write rate must account for your chosen TTL mix.
Execution budget: 5s; output limit: 2048 KiB. Browser worker startup has a separate 3s allowance.