Anthropic Breaking change major

New tokenizer on Claude Opus 4.7 produces about 30% more tokens

Claude Opus 4.7 introduced a tokenizer that turns the same text into roughly 30% more tokens, raising per-request cost and shrinking how much text fits in a context window or a max_tokens budget.

What does this mean for me?

Action needed
  • Engineering leadership

    Cost, risk, timeline, team impact Action needed

    Your cost per request on Opus 4.7 and later rose roughly 30% even though the $5/$25 per million price did not change — reforecast now. Any capacity or context-window assumption derived from older token counts is wrong and needs re-measuring before the next planning cycle.

  • Engineer

    What to change, what breaks, what to test Action needed

    Nothing errors, but every token number moves: call the token counting API against your target model rather than reusing old counts. Raise `max_tokens` budgets tuned on earlier models or equivalent output will truncate, and re-check that long prompts still fit the context window. The same tokenizer applies to Opus 4.8, Fable 5, Mythos 5, and Sonnet 5 has an equivalent ~30% increase over Sonnet 4.6.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do — this is an internal billing and measurement change for developers and does not affect the Claude apps.

The wire format did not change, so nothing errors — but every number you measure in tokens does change. Usage fields and token-counting results for the same text come out higher, a context window holds less text, and a max_tokens limit tuned on an earlier model can truncate equivalent output.

Anthropic’s guidance is to re-measure rather than reuse counts: call the token counting API with the target model. Per-token prices were unchanged at launch ($5/$25), so the effective cost of an equivalent request rose.

The same tokenizer carried forward to Claude Opus 4.8, Claude Fable 5 and Claude Mythos 5, and Claude Sonnet 5 shipped with an equivalent ~30% increase versus Sonnet 4.6 — which is why Sonnet 5’s lower $2/$10 pricing does not reduce request cost in direct proportion.

Terms on this page: Context window

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person