Claude Token Counter, now with model comparisons

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Claude Opus 4.7's new tokenizer means identical prompts cost roughly 40% more than Opus 4.6 at the same per-token price, and a free tool now verifies the difference before you commit.

Read this as

Simon Willison built a free website that counts how many tokens, the small chunks of text AI models read, a prompt uses. He upgraded it to compare counts across different Claude models at once. The newest model, Claude Opus 4.7, reads the same text as 1.46 times more tokens than its predecessor, Opus 4.6. Because AI companies charge per token, that means Opus 4.7 effectively costs about 40% more to run.

Anthropic charges the same per-token price for Claude Opus 4.7 as for Opus 4.6, $5 per million input tokens and $25 per million output, but the new model's tokenizer produces 1.46x the tokens for the same text, so real-world spend rises about 40%. Willison's free token counter lets teams measure this across models before committing budget. Low-resolution images cost the same as before, and text-heavy PDFs rose only 1.08x, so the impact depends on workload type.

Willison upgraded his Claude Token Counter to query Anthropic's token counting API with multiple model IDs in parallel. Opus 4.7 is the first Claude model with a changed tokenizer: its own system prompt counted 7,335 tokens on 4.7 versus 5,039 on 4.6 (1.46x). A 3456x2234 PNG showed 3.01x inflation, but a follow-up test with a 682x318 image (314 vs 310 tokens) showed this is entirely due to Opus 4.7's expanded image support, 2,576 pixels on the long edge (~3.75MP), over three times prior models. A 30-page PDF measured 1.08x, and cross-model comparison is only meaningful between 4.7 and 4.6.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Simon Willison Claude Token Counter Claude Opus 4.7 Anthropic token counting API

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading