Loreto

Free tool · Claude API

Claude token & cost calculator

The Claude cost calculator estimates the token count and USD cost of a Claude API call — and a full monthly workload — across current models like Opus 4.8, Sonnet 5, and Haiku 4.5, by multiplying your input and output tokens against each model's per-million-token price.

Your workload


Estimate only — approximates ~1 token per 4 characters. For exact counts use Anthropic's count_tokens endpoint.

Estimated cost

$0.00 / month
Per callTokensCost
Input0$0.00
Output0$0.00
Cost per call$0.00
Per monthTokensCost
Input0$0.00
Output0$0.00
Monthly total$0.00
Prompt caching can cut input cost sharply: cached input tokens are read at roughly 0.1× the base input price. If a large stable prefix (system prompt, tools, retrieved docs) repeats across requests, real input cost can be far below this estimate, which assumes fully uncached pricing.

Current Claude model pricing

Per million tokens, USD. Prices are a dated snapshot — verify before billing.

ModelModel IDContextInput / 1MOutput / 1M