Previous Sonnet generation still useful for stable production prompts. Compare against Sonnet 5 on your real traffic mix before migrating.
Privacy first counting
TokenCALC counts tokens in your browser when an Exact encoding is available. Prompt text does not need to leave your device for local counting.
Pricing snapshot
USD per 1 million tokens. Verify against the provider source before you lock budget.
| Rate | USD |
|---|---|
| Input / 1M | $3.00 |
| Output / 1M | $15.00 |
| Cached input / 1M | $0.300 |
| Cache write / 1M | $3.75 |
| Batch input / 1M | $1.50 |
| Batch output / 1M | $7.50 |
Model details
| Detail | Value |
|---|---|
| Provider | Anthropic |
| Context window | 1M |
| Tokenizer | Approx (Anthropic family) |
| Last verified | 2026-08-02 |
| API model id | claude-sonnet-4-6 |