Claude Sonnet 4.5 (latest) Token Counter & Cost Calculator
Count tokens for Claude Sonnet 4.5 (latest) and estimate the exact API cost — $3.00
per 1M input tokens, $15.00 per 1M output tokens — using a real
o200k_base BPE tokenizer. Everything runs in your browser; nothing is uploaded.
Claude Sonnet 4.5 (latest)
Counts are exact for OpenAI models (o200k_base is GPT-4o/4.1/5's tokenizer). For Claude, Gemini and other vendors — whose tokenizers are not public — treat the count as a close estimate (typically within ±15%).
Cost of this text across popular models
| Model | Input $/1M | Output $/1M | This text (input) | +500 output tokens |
|---|---|---|---|---|
| GPT-6.1 Terra | 1.00 | 5.00 | $0 | $0 |
| Kimi K3.1 Pro | 2.00 | 10.00 | $0 | $0 |
| MiniMax-M3.1-Flash | 0.15 | 0.60 | $0 | $0 |
| DeepSeek V4.1 Flash 1017 | 0.15 | 0.60 | $0 | $0 |
| Mercury 3 | 0.10 | 0.35 | $0 | $0 |
| Gemini 4 Argon | 2.00 | 10.00 | $0 | $0 |
| Muse Wonder | 4.00 | 20.00 | $0 | $0 |
| Claude Haiku 5.5 | 0.10 | 0.50 | $0 | $0 |
Close estimate (±15%): Anthropic does not publish its tokenizer, so this count uses OpenAI's o200k_base as an approximation.
Cost lookup — Claude Sonnet 4.5 (latest)
| Tokens | Cost on Claude Sonnet 4.5 (latest) |
|---|---|
| 1K input tokens | 0.3¢ |
| 10K input tokens | $0.0300 |
| 100K input tokens | $0.3000 |
| 1M input tokens | $3.00 |
| 1K output tokens | $0.0150 |
| 10K output tokens | $0.1500 |
FAQ
How accurate is the Claude Sonnet 4.5 (latest) token count?
Close estimate (±15%): Anthropic does not publish its tokenizer, so this count uses OpenAI's o200k_base as an approximation. Paste your own text above to see the exact number for your prompt.
How is Claude Sonnet 4.5 (latest) API cost calculated?
Cost = (input tokens ÷ 1,000,000) × $3.00 + (output tokens ÷ 1,000,000) × $15.00 — Claude Sonnet 4.5 (latest)'s per-1M-token prices (Anthropic's official list price as recorded by models.dev).
See full Claude Sonnet 4.5 (latest) pricing & benchmarks, or the main token counter for every model.