Models / Claude / Claude Sonnet 5
Claude

Claude Sonnet 5

BYOKClosedReleased 29 Jun 2026

Closed-weight model from Anthropic, released June 2026, with a 1M-token context window. Its benchmark results sit close to the registry median, and its price is well above it.

Read the full description ↓

Spec sheet

Family
Claude
Released
29 Jun 20265 months ago
Weights
Closed
Context window
1M tokens
Largest response
128k tokens
Accepts
text, image, file
Supports
tools, reasoning, structured output
Knowledge cutoff
January 2026
Intelligence index
63.4#41
Input price
$2 / 1M
Output price
$10 / 1M
Blended price (3:1)
$4 / 1M
Index points per $
15.8#85
Speed
76 tokens/sec#76
Popularity
#39 of 194by usage
Providers
3

Benchmarks

Score · rank among models tested

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
Anthropicgateway/anthropic:claude-sonnet-5 $2$0.2$10$4
AWS Bedrockgateway/bedrock:global.anthropic.claude-sonnet-5-v1:0 $2$0.2$10$4
OpenRouterBYOKopenrouter:anthropic/claude-sonnet-5 $2$0.2$10$4

Every provider charges the same. Blended price assumes three input tokens for each output token.

Example code

# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/anthropic:claude-sonnet-5', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)

Ask Claude Sonnet 5 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

Claude Sonnet 5vsGPT-5.3-Codex
Intelligence index
205590$0.1$1$10GPT-5.3-Codex: 63 at $4.81 blendedClaude Sonnet 5: 63.4 at $4 blended
GPQA Diamond
5075100$0.1$1$10Claude Sonnet 5: 90.5% at $4 blended
OTIS Mock AIME
4070100$0.1$1$10Claude Sonnet 5: 94.7% at $4 blended
FrontierMath
1055100$0.1$1$10Claude Sonnet 5: 65.6% at $4 blended
SimpleQA Verified
1055100$0.1$1$10Claude Sonnet 5: 33.7% at $4 blended
SWE-bench Verified
507090$0.1$1$10GPT-5.3-Codex: 74.8% at $4.81 blended
Terminal-Bench
04590$0.1$1$10GPT-5.3-Codex: 78.4% at $4.81 blended
SciCode
204570$0.1$1$10Claude Sonnet 5: 54.3% at $4 blended
WebDev Arena
122015251830$0.1$1$10GPT-5.3-Codex: 1369.9 at $4.81 blendedClaude Sonnet 5: 1536.7 at $4 blended
APEX-Agents
04590$0.1$1$10Claude Sonnet 5: 54.5% at $4 blended
LMArena text
128014101540$0.1$1$10Claude Sonnet 5: 1441.7 at $4 blended
Epoch Capabilities Index
120150180$0.1$1$10Claude Sonnet 5: 156.9 at $4 blended

Score against blended price per 1M tokens (log scale). Claude Sonnet 5   GPT-5.3-Codex   other models

Intelligence indexOur composite of the benchmarks below, 0-100
Claude Sonnet 563.4
GPT-5.3-Codex63
GPQA DiamondGraduate-level science questions, multiple choice
Claude Sonnet 590.5%
GPT-5.3-Codex–
OTIS Mock AIMECompetition mathematics problems with exact answers
Claude Sonnet 594.7%
GPT-5.3-Codex–
FrontierMathOriginal research-level mathematics problems, tiers 1 to 3
Claude Sonnet 565.6%
GPT-5.3-Codex–
SimpleQA VerifiedShort factual questions answered from memory, without search
Claude Sonnet 533.7%
GPT-5.3-Codex–
SWE-bench VerifiedReal GitHub issues resolved, run by Epoch with one fixed scaffold
Claude Sonnet 5–
GPT-5.3-Codex74.8%
Terminal-BenchTasks completed in a terminal; the best result of any agent using the model
Claude Sonnet 5–
GPT-5.3-Codex78.4%
SciCodeScientific programming problems written by researchers
Claude Sonnet 554.3%
GPT-5.3-Codex–
WebDev ArenaRating from human votes on web apps the models built
Claude Sonnet 51536.7
GPT-5.3-Codex1369.9
APEX-AgentsLong professional tasks (banking, consulting, law) passed on the first attempt
Claude Sonnet 554.5%
GPT-5.3-Codex–
LMArena textRating from blind human votes between pairs of chat responses
Claude Sonnet 51441.7
GPT-5.3-Codex–
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
Claude Sonnet 5156.9
GPT-5.3-Codex–
Input pricePer 1M tokens, lower is better
Claude Sonnet 5$2
GPT-5.3-Codex$1.75
Output pricePer 1M tokens, lower is better
Claude Sonnet 5$10
GPT-5.3-Codex$14
EfficiencyIndex points per blended $
Claude Sonnet 516
GPT-5.3-Codex13
SpeedOutput tokens per second
Claude Sonnet 576 t/s
GPT-5.3-Codex43.5 t/s
Context windowTokens
Claude Sonnet 51M
GPT-5.3-Codex400k
Model stringFor Pydantic AI
Claude Sonnet 5gateway/anthropic:claude-sonnet-5
GPT-5.3-Codexgateway/openai:gpt-5.3-codex

About Claude Sonnet 5

Description written by an LLM from the data on this page

Closed-weight model from Anthropic, released June 2026, with a 1M-token context window. Its benchmark results sit close to the registry median, and its price is well above it.

Claude Sonnet 5 is a closed-weight model from Anthropic, released June 2026, with a 1M-token context window and responses up to 128k tokens. It accepts text, image and file inputs and supports tool calling, reasoning mode and structured output. It is offered through Anthropic, AWS Bedrock and OpenRouter.

Benchmark results sit close to the registry median. Its intelligence index of 63.4 ranks 44th of 114, against a median of 59.5, and its GPQA Diamond score is 90.5%. Factual recall is a clear gap, with SimpleQA Verified at 33.7%, 59th of 76, well below the 46.5% median.

Price is the main trade-off. The blended price of $4 per million tokens ranks 147th of 194 and is about four times the median, which puts its intelligence per dollar at 85th of 194.

Strengths

  • 1M-token context window and 128k maximum response length
  • Accepts text, image and file inputs; supports tool calling and structured output
  • Intelligence index 63.4, 44th of 114, above the 59.5 median
  • WebDev Arena rating 1537, 34th of 85, above the median

Weaknesses

  • SimpleQA Verified 33.7%, 59th of 76, well below the 46.5% median
  • Blended price $4 per million tokens, 147th of 194, above the $1 median
  • Intelligence per dollar ranks 85th of 194 at 15.8 points

Best for

Agent work needing long context, tool calling and document or image input, where per-token cost matters less.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs