What's new in Claude Sonnet 5

ankitg121 pts0 comments

What's new in Claude Sonnet 5

Simon Willison’s Weblog

Subscribe

Sponsored by: Depot — AI agents write code in seconds. CI shouldn't make them wait minutes. Try Depot CI

30th June 2026 - Link Blog

What's new in Claude Sonnet 5 (via) Claude Sonnet 5 came out this morning. I always head straight for the "what's new" developer docs because they tend to have more actionable information than the official announcement post.

Anthropic say of Sonnet 5 that "its performance is close to that of Opus 4.8, but at lower prices". The system card helps explain how they were able to release the model without being blocked by the US government:

Sonnet 5 is significantly less capable at cyber tasks than Mythos 5: its safeguards are thus similar to those we apply to Opus 4.7 and Opus 4.8 (models that are more capable than Sonnet 5 but much less capable than Mythos 5).

Of note from the "what's new" API changes:

Sampling parameters temperature, top_p, top_k are no longer supported.

It has a 1 million token context window and 128,000 maximum output tokens.

It features "the same set of tools and platform features as Claude Sonnet 4.6"

Adaptive thinking is on by default, unless you specify "thinking": {type: "disabled"}.

The pricing is the same as Sonnet 4.6: $3/million input, $15/million input, with an introductory discount to $2/$10 until 31st August. But...

The model has a new tokenizer, where "The same input text produces approximately 30% more tokens than on Claude Sonnet 4.6." - effectively a 30% price increase.

I used my Claude Token Counter tool to try out the new tokenizer. Here are my results for several larger documents:

Document<br>Sonnet 4.6<br>Opus 4.7<br>Sonnet 5

Universal Declaration of Human Rights (English)<br>2,356<br>3,347<br>1.42x<br>3,341<br>1.42x

Universal Declaration of Human Rights (Spanish)<br>3,572<br>4,753<br>1.33x<br>4,747<br>1.33x

Universal Declaration of Human Rights (Chinese, Mandarin Simplified)<br>3,334<br>3,366<br>1.01x<br>3,360<br>1.01x

sqlite_utils/db.py (4,279 lines of Python)<br>44,014<br>56,118<br>1.28x<br>56,113<br>1.27x

So the new token is roughly 1.4x times more expensive for English, 1.33x for Spanish, 1.28x for Python code and effectively the same cost for Simplified Mandarin.

Here's the pelican. It's nothing to write home about. Sonnet 5 thinks it looks like a goose.

Posted 30th June 2026 at 9:23 pm

Recent articles

Have your agent record video demos of its work with shot-scraper video - 30th June 2026

Porting the Moebius 0.2B image inpainting model to run in the browser with Claude Code - 22nd June 2026

sqlite-utils 4.0rc1 adds migrations and nested transactions - 21st June 2026

This is a link post by Simon Willison, posted on 30th June 2026.

ai<br>2,095

generative-ai<br>1,852

llms<br>1,820

anthropic<br>302

claude<br>286

llm-pricing<br>79

pelican-riding-a-bicycle<br>121

llm-release<br>210

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe

Disclosures

Colophon

&copy;

2002

2003

2004

2005

2006

2007

2008

2009

2010

2011

2012

2013

2014

2015

2016

2017

2018

2019

2020

2021

2022

2023

2024

2025

2026

sonnet claude june 30th opus code

Related Articles