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.
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
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.