Skip to main content

Head-to-head comparison

Claude Sonnet 5 vs. GPT-5.4

Compare published benchmark results from matching versions and cohorts, API pricing, and technical specifications. Any documented test setup differences remain visible.

shared result series
170
distinct benchmarks
18
latest retrieval
2026-09-04

Change model selection

Specifications

General specifications

Release date, availability, context window, architecture, and published parameter counts at a glance. Undisclosed details remain marked as unavailable.

Specifications for Claude Sonnet 5 and GPT-5.4
AttributeClaude Sonnet 5GPT-5.4
ProviderAnthropicOpenAI
ReleasedJun 30, 2026Mar 5, 2026
AvailabilityActiveActive
Model typeProprietaryProprietary
ParametersNot publishedNot published
ArchitectureNot publishedNot published
Context window1,000,000 tokens1,050,000 tokens
Knowledge cutoffJanuary 2026August 31, 2025
Technical sourcesModel, ContextModel

Pricing

API pricing compared

The table compares official standard API rates per 1M tokens, including published cache pricing. Batch, fast, priority, regional surcharges, tool calls, and cloud platform pricing are excluded.

API pricing for Claude Sonnet 5 and GPT-5.4
Price typeClaude Sonnet 5GPT-5.4
API input$2$2.5 ≤272K / $5 >272K
API output$10$15 ≤272K / $22.5 >272K
Cache read$0.2$0.25 ≤272K / $0.5 >272K
Cache write (5 min.)$2.5Not listed
Cache write (1 hr.)$4Not listed
Price verified09/02/2026 Source07/30/2026 Source
Claude Sonnet 5GPT-5.4
API inputUSD per 1M tokens, base tier
Claude Sonnet 5Lower price$2
GPT-5.4$2.5
API outputUSD per 1M tokens, base tier
Claude Sonnet 5Lower price$10
GPT-5.4$15
Cache readUSD per 1M tokens, base tier
Claude Sonnet 5Lower price$0.2
GPT-5.4$0.25

Key to the marks:better valuebetter, but not conclusivetie

Pricing by provider

Direct developer pricing and provider endpoint tariffs routed through OpenRouter are listed separately. Prices are in USD per 1M tokens. Context-dependent direct tiers plus regional, Flex, Priority, and other OpenRouter tariffs remain individually identifiable.

Provider pricing for Claude Sonnet 5 and GPT-5.4
ModelProviderPurchase route and tariffInput per 1M tokensOutput per 1M tokensSource
Claude Sonnet 5AnthropicDirect from developerStandard APILowest listed price: $2Lowest listed price: $10Source09/02/2026
Amazon BedrockVia OpenRouteramazon-bedrock/globalLowest listed price: $2Lowest listed price: $10Source09/08/2026
Amazon BedrockVia OpenRouteramazon-bedrock/us-east-1$2.2$11Source09/08/2026
AnthropicVia OpenRouteranthropicLowest listed price: $2Lowest listed price: $10Source09/08/2026
AzureVia OpenRouterazure/globalLowest listed price: $2Lowest listed price: $10Source09/08/2026
AzureVia OpenRouterazure/usLowest listed price: $2Lowest listed price: $10Source09/08/2026
Claude Platform on AWSVia OpenRouterclaude-on-awsLowest listed price: $2Lowest listed price: $10Source09/08/2026
GoogleVia OpenRoutergoogle-vertex/europe$2.2$11Source09/08/2026
GoogleVia OpenRoutergoogle-vertex/globalLowest listed price: $2Lowest listed price: $10Source09/08/2026
GoogleVia OpenRoutergoogle-vertex/us$2.2$11Source09/08/2026
GPT-5.4OpenAIDirect from developerUp to 272,000 context tokens$2.5$15Source07/30/2026
OpenAIDirect from developerAbove 272,000 context tokens$5$22.5Source07/30/2026
Amazon BedrockVia OpenRouteramazon-bedrock/us-east-1$2.75$16.5Source09/08/2026
AzureVia OpenRouterazure$2.5$15Source09/08/2026
AzureVia OpenRouterazure/eu$2.75$16.5Source09/08/2026
AzureVia OpenRouterazure/us$2.75$16.5Source09/08/2026
OpenAIVia OpenRouteropenai$2.5$15Source09/08/2026
OpenAIVia OpenRouteropenai/fast$5$30Source09/08/2026
OpenAIVia OpenRouteropenai/flexLowest listed price: $1.25Lowest listed price: $7.5Source09/08/2026

Performance

Shared benchmarks

Only published results with the same benchmark version, task, metric, and comparison cohort are paired. Different reasoning levels, agents, harnesses, or output limits appear directly in the table.

Capability profile from matched benchmarks

Each axis averages directly matched benchmark families. A value of 100 means the stronger value within this pair, not a universal quality score.

255075100CodingReasoningMathematicsKnowledgeFinanceLegalAgentic tasksMultimodal
Claude Sonnet 5
GPT-5.4
Coding: 99.7 / 93.3 (6 benchmark families)
Reasoning: 98.3 / 100 (2 benchmark families)
Mathematics: 98.9 / 100 (1 benchmark family)
Knowledge: 100 / 100 (2 benchmark families)
Finance: 99.6 / 98.2 (4 benchmark families)
Legal: 99 / 66.7 (3 benchmark families)
Agentic tasks: 89.9 / 100 (1 benchmark family)
Multimodal: 94.8 / 100 (1 benchmark family)

46 matched rows from 18 benchmark families were considered. The radar shows 8 of 11 comparable categories.

Claude Sonnet 5GPT-5.4
Code MigrationOverall. Higher is better. No documented setup difference
Claude Sonnet 5Winner44.392 %
GPT-5.434.984 %
CorpFin v2Overall. Higher is better. No documented setup difference
Claude Sonnet 5Winner66.977 %
GPT-5.465.268 %
GPQA DiamondOverall. Higher is better. No documented setup difference
Claude Sonnet 588.889 %
GPT-5.4Winner91.666 %
Harvey's Legal Agent BenchmarkOverall · Task fully resolved. Higher is better. No documented setup difference
Claude Sonnet 5Winner5 %
GPT-5.40 %
LegalBenchOverall. Higher is better. No documented setup difference
Claude Sonnet 583.922 %
GPT-5.4Winner86.044 %
LiveCodeBench v6Overall. Higher is better. No documented setup difference
Claude Sonnet 582.429 %
GPT-5.4Winner84.141 %
LMArena Text, Style ControlOverall. Higher is better. Test setup not documented as identical
Claude Sonnet 51,462.16
GPT-5.4Higher measured value1,465.527
MedCodeOverall. Higher is better. No documented setup difference
Claude Sonnet 5Winner47.54 %
GPT-5.441.292 %
MedScribeOverall. Higher is better. No documented setup difference
Claude Sonnet 576.054 %
GPT-5.4Winner77.549 %
MMLU-ProOverall. Higher is better. No documented setup difference
Claude Sonnet 5Winner87.545 %
GPT-5.487.482 %
MMMU-ProOverall. Higher is better. No documented setup difference
Claude Sonnet 583.006 %
GPT-5.4Winner87.514 %
MortgageTaxOverall. Higher is better. No documented setup difference
Claude Sonnet 5Winner70.032 %
GPT-5.468.323 %

Key to the marks:better valuebetter, but not conclusivetie

Benchmark scores for Claude Sonnet 5 and GPT-5.4
Benchmark and taskClaude Sonnet 5GPT-5.4Source
Code MigrationOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
Winner44.392 %
34.984 %
Vals AI
Source details
Data as of: 09/03/2026
CorpFin v2Overall
Test details
No documented difference in the test setupVersion: 2Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
Winner66.977 %
65.268 %
Vals AI
Source details
Data as of: 08/12/2026
GPQA DiamondOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
88.889 %
Winner91.666 %
Vals AI
Source details
Data as of: 09/01/2026
Harvey's Legal Agent BenchmarkOverall · Task fully resolved
Test details
No documented difference in the test setupVersion: 1Metric: task resolution rateScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
Winner5 %
0 %
Vals AI
Source details
Data as of: 09/03/2026
LegalBenchOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
83.922 %
Winner86.044 %
Vals AI
Source details
Data as of: 09/01/2026
LiveCodeBench v6Overall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
82.429 %
Winner84.141 %
Vals AI
Source details
Data as of: 09/01/2026
LMArena Text, Style ControlOverall
Test details
Test setup not documented as identicalNo direct winnerVersion: style-control-v1Metric: style-controlled Bradley-Terry ratingScoring: Higher is betterClaude Sonnet 5: Snapshot: claude-sonnet-5-high, Reasoning: high, Harness: Arena text, style control
GPT-5.4: Snapshot: gpt-5.4, Harness: Arena text, style control
Claude Sonnet 5: Style-controlled Arena rating from 31,096 anonymous pairwise votes.GPT-5.4: Style-controlled Arena rating from 63,615 anonymous pairwise votes.
1,462.16
95% confidence interval: ±4.745The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
Higher measured value1,465.527
95% confidence interval: ±3.807The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
LMArena
Source details
Data as of: 09/01/2026
MedCodeOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
Winner47.54 %
41.292 %
Vals AI
Source details
Data as of: 09/03/2026
MedScribeOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
76.054 %
Winner77.549 %
Vals AI
Source details
Data as of: 09/03/2026
MMLU-ProOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
Winner87.545 %
87.482 %
Vals AI
Source details
Data as of: 09/01/2026
MMMU-ProOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
83.006 %
Winner87.514 %
Vals AI
Source details
Data as of: 09/01/2026
MortgageTaxOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
Winner70.032 %
68.323 %
Vals AI
Source details
Data as of: 09/01/2026
ProgramBenchOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
Tie0 %
Tie0 %
Vals AI
Source details
Data as of: 09/01/2026
SAGEOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
Winner48.925 %
43.312 %
Vals AI
Source details
Data as of: 09/03/2026
SkillsBenchOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Harness: OpenHands
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Harness: OpenHands
46.476 %
Winner51.711 %
Vals AI
Source details
Data as of: 09/01/2026
SWE-bench VerifiedOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
Winner79.6 %
78.2 %
Vals AI
Source details
Data as of: 09/01/2026
TaxEval v2Overall
Test details
No documented difference in the test setupVersion: 2Metric: accuracyScoring: Higher is betterGPT-5.4: Snapshot: gpt-5.4-2026-03-05
Winner75.634 %
73.958 %
Vals AI
Source details
Data as of: 09/01/2026
Vibe Code Bench v1.1Overall
Test details
No documented difference in the test setupVersion: 1.1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Harness: OpenHands
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Harness: OpenHands
Winner81.325 %
67.421 %
Vals AI
Source details
Data as of: 09/03/2026
Code MigrationCLI
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value36.332 %
23.788 %
Vals AI
Source details
Data as of: 08/09/2026
CorpFin v2Exact Pages
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
63.869 %
Higher measured value64.103 %
Vals AI
Source details
Data as of: 08/06/2026
GPQA DiamondFew-Shot CoT
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
87.374 %
Higher measured value91.414 %
Vals AI
Source details
Data as of: 08/09/2026
Harvey's Legal Agent BenchmarkAntitrust Competition · Criteria passed
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: criteria pass rateScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value88.768 %
76.449 %
Vals AI
Source details
Data as of: 08/07/2026
LegalBenchConclusion Tasks
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value89.555 %
88.939 %
Vals AI
Source details
Data as of: 08/09/2026
LiveCodeBench v6Easy
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
98.447 %
Higher measured value99.068 %
Vals AI
Source details
Data as of: 08/09/2026
LMArena Text, Style ControlOverall
Test details
No documented difference in the test setupVersion: style-control-v1Metric: style-controlled Bradley-Terry ratingScoring: Higher is betterClaude Sonnet 5: Snapshot: claude-sonnet-5-high, Reasoning: high, Harness: Arena text, style control
GPT-5.4: Snapshot: gpt-5.4-high, Reasoning: high, Harness: Arena text, style control
Claude Sonnet 5: Style-controlled Arena rating from 31,096 anonymous pairwise votes.GPT-5.4: Style-controlled Arena rating from 60,657 anonymous pairwise votes.
1,462.16
95% confidence interval: ±4.745The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
Winner1,476.488
95% confidence interval: ±3.881The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
LMArena
Source details
Data as of: 09/01/2026
MMLU-ProBiology
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value93.584 %
92.887 %
Vals AI
Source details
Data as of: 08/09/2026
MortgageTaxNumerical Extraction
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value78.696 %
75.994 %
Vals AI
Source details
Data as of: 08/09/2026
ProgramBenchAlmost Resolved
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value13.5 %
7 %
Vals AI
Source details
Data as of: 08/09/2026
SAGEAutomata
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 30,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 30,000 tokens
Higher measured value34.92 %
21.428 %
Vals AI
Source details
Data as of: 08/09/2026
SkillsBenchNo Skills
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Harness: OpenHands, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Harness: OpenHands, Output limit: 128,000 tokens
35.123 %
Higher measured value48.905 %
Vals AI
Source details
Data as of: 08/07/2026
SWE-bench Verified<15 min fix
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
83.505 %
Higher measured value88.144 %
Vals AI
Source details
Data as of: 08/08/2026
TaxEval v2Correctness
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
64.023 %
Higher measured value64.922 %
Vals AI
Source details
Data as of: 08/09/2026
Code MigrationCOBOL
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
No direct winner68.571 %
No direct winner68.571 %
Vals AI
Source details
Data as of: 08/09/2026
CorpFin v2Max Fitting Context
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value69.114 %
64.918 %
Vals AI
Source details
Data as of: 08/06/2026
GPQA DiamondZero-Shot CoT
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
90.404 %
Higher measured value91.919 %
Vals AI
Source details
Data as of: 08/09/2026
Harvey's Legal Agent BenchmarkAntitrust Competition · Task fully resolved
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: task resolution rateScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
No direct winner0 %
No direct winner0 %
Vals AI
Source details
Data as of: 08/07/2026
LegalBenchInterpretation Tasks
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
81.412 %
Higher measured value83.921 %
Vals AI
Source details
Data as of: 08/09/2026
LiveCodeBench v6Hard
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
66.857 %
Higher measured value67.714 %
Vals AI
Source details
Data as of: 08/09/2026
LMArena Text, Style ControlBusiness, management and finance
Test details
Test setup not documented as identicalNo direct winnerVersion: style-control-v1Metric: style-controlled Bradley-Terry ratingScoring: Higher is betterClaude Sonnet 5: Snapshot: claude-sonnet-5-high, Reasoning: high, Harness: Arena text, style control
GPT-5.4: Snapshot: gpt-5.4, Harness: Arena text, style control
Claude Sonnet 5: Style-controlled Arena rating from 6,214 anonymous pairwise votes.GPT-5.4: Style-controlled Arena rating from 13,060 anonymous pairwise votes.
1,462.981
95% confidence interval: ±8.229The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
Higher measured value1,474.871
95% confidence interval: ±6.534The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
LMArena
Source details
Data as of: 09/01/2026
MMLU-ProBusiness
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
91.635 %
Higher measured value91.762 %
Vals AI
Source details
Data as of: 08/09/2026
MortgageTaxSemantic Extraction
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value61.367 %
60.652 %
Vals AI
Source details
Data as of: 08/09/2026
ProgramBenchFully Resolved
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
No direct winner0 %
No direct winner0 %
Vals AI
Source details
Data as of: 08/09/2026
SAGELinear Algebra
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 30,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 30,000 tokens
Higher measured value68.999 %
68.826 %
Vals AI
Source details
Data as of: 08/09/2026
SkillsBenchWith Skills
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Harness: OpenHands, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Harness: OpenHands, Output limit: 128,000 tokens
46.476 %
Higher measured value51.711 %
Vals AI
Source details
Data as of: 08/07/2026
SWE-bench Verified>4 hours
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value66.667 %
0 %
Vals AI
Source details
Data as of: 08/08/2026
TaxEval v2Stepwise Reasoning
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value87.244 %
82.993 %
Vals AI
Source details
Data as of: 08/09/2026
Code MigrationCode Quality
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: mean reviewer code-quality ratingScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value4.898 / 5
3.632 / 5
Vals AI
Source details
Data as of: 08/09/2026
CorpFin v2Shared Max Context
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value67.949 %
66.783 %
Vals AI
Source details
Data as of: 08/06/2026
Harvey's Legal Agent BenchmarkArbitration International Dispute Resolution · Criteria passed
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: criteria pass rateScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value87.455 %
66.667 %
Vals AI
Source details
Data as of: 08/07/2026
LegalBenchIssue Tasks
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
88.24 %
Higher measured value90.526 %
Vals AI
Source details
Data as of: 08/09/2026
LiveCodeBench v6Medium
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
81.984 %
Higher measured value85.64 %
Vals AI
Source details
Data as of: 08/09/2026
LMArena Text, Style ControlBusiness, management and finance
Test details
No documented difference in the test setupVersion: style-control-v1Metric: style-controlled Bradley-Terry ratingScoring: Higher is betterClaude Sonnet 5: Snapshot: claude-sonnet-5-high, Reasoning: high, Harness: Arena text, style control
GPT-5.4: Snapshot: gpt-5.4-high, Reasoning: high, Harness: Arena text, style control
Claude Sonnet 5: Style-controlled Arena rating from 6,214 anonymous pairwise votes.GPT-5.4: Style-controlled Arena rating from 12,346 anonymous pairwise votes.
1,462.981
95% confidence interval: ±8.229The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
Winner1,483.779
95% confidence interval: ±6.654The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
LMArena
Source details
Data as of: 09/01/2026
MMLU-ProChemistry
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
90.813 %
Higher measured value91.078 %
Vals AI
Source details
Data as of: 08/09/2026
ProgramBenchRaw Pass Rate
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value72.067 %
68.596 %
Vals AI
Source details
Data as of: 08/09/2026
SAGEPartial Differential Equations
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 30,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 30,000 tokens
Higher measured value42.857 %
39.683 %
Vals AI
Source details
Data as of: 08/09/2026
SWE-bench Verified1-4 hours
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value76.19 %
50 %
Vals AI
Source details
Data as of: 08/08/2026
Harvey's Legal Agent BenchmarkArbitration International Dispute Resolution · Task fully resolved
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: task resolution rateScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
No direct winner0 %
No direct winner0 %
Vals AI
Source details
Data as of: 08/07/2026
LegalBenchRhetoric Tasks
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
81.07 %
Higher measured value82.824 %
Vals AI
Source details
Data as of: 08/09/2026
LMArena Text, Style ControlChinese
Test details
Test setup not documented as identicalNo direct winnerVersion: style-control-v1Metric: style-controlled Bradley-Terry ratingScoring: Higher is betterClaude Sonnet 5: Snapshot: claude-sonnet-5-high, Reasoning: high, Harness: Arena text, style control
GPT-5.4: Snapshot: gpt-5.4, Harness: Arena text, style control
Claude Sonnet 5: Style-controlled Arena rating from 2,074 anonymous pairwise votes.GPT-5.4: Style-controlled Arena rating from 3,684 anonymous pairwise votes.
Higher measured value1,499.492
95% confidence interval: ±13.64The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
1,494.074
95% confidence interval: ±10.702The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
LMArena
Source details
Data as of: 09/01/2026
MMLU-ProComputer Science
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
89.024 %
Higher measured value89.756 %
Vals AI
Source details
Data as of: 08/09/2026
SWE-bench Verified15 min - 1 hour
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value77.395 %
76.245 %
Vals AI
Source details
Data as of: 08/08/2026
Harvey's Legal Agent BenchmarkBanking Finance · Criteria passed
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: criteria pass rateScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
Higher measured value89.963 %
80.297 %
Vals AI
Source details
Data as of: 08/07/2026
LegalBenchRule Tasks
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterClaude Sonnet 5: Compute: max, Temperature: 1, Output limit: 128,000 tokens
GPT-5.4: Snapshot: gpt-5.4-2026-03-05, Reasoning: xhigh, Output limit: 128,000 tokens
79.331 %
Higher measured value84.008 %
Vals AI
Source details
Data as of: 08/09/2026
LMArena Text, Style ControlChinese
Test details
No documented difference in the test setupNo clear leadVersion: style-control-v1Metric: style-controlled Bradley-Terry ratingScoring: Higher is betterClaude Sonnet 5: Snapshot: claude-sonnet-5-high, Reasoning: high, Harness: Arena text, style control
GPT-5.4: Snapshot: gpt-5.4-high, Reasoning: high, Harness: Arena text, style control
Claude Sonnet 5: Style-controlled Arena rating from 2,074 anonymous pairwise votes.GPT-5.4: Style-controlled Arena rating from 3,482 anonymous pairwise votes.
1,499.492
95% confidence interval: ±13.64The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
No clear lead1,504.962
95% confidence interval: ±10.923The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
LMArena
Source details
Data as of: 09/01/2026

Key to the marks:better valuebetter, but not conclusivetie

Our model tests

Community tests you can inspect

Compare how the models respond to the same prompt. Each test shows the first attempt, with no subsequent fixes to the generated code. These results do not contribute to an overall score.

Pelican on a bicycle

A community classic for free-form SVG drawing.

Claude Sonnet 5

Claude Sonnet 5: Pelican on a bicycle
A community classic for free-form SVG drawing.
First attempt
Run date
7 Sept 2026
API provider
openrouter
Requested API model
anthropic/claude-sonnet-5
API model reported in response
anthropic/claude-sonnet-5
Pinned endpoint
Anthropic | anthropic/claude-sonnet-5-20260630
Reasoning setting
high
Temperature
Provider default
Token limit including reasoning
8,192 tokens
Test protocol
community-visual-tests-v1
Technical checks
Passed, not a quality rating
Response time
47.9 s

Visually reviewed. This individual test does not establish overall model quality.

GPT-5.4

API access was unavailable for this run. The model was not evaluated.

First attempt
Run date
7 Sept 2026
API provider
openrouter
Requested API model
openai/gpt-5.4
Pinned endpoint
OpenAI | openai/gpt-5.4-20260305
Reasoning setting
high
Temperature
Provider default
Token limit including reasoning
8,192 tokens
Test protocol
community-visual-tests-v1
Technical checks
Not run

Not yet visually reviewed. A successful recording does not confirm correct physics or full compliance with the prompt.

Prompt and test conditions

Generate an SVG of a pelican riding a bicycle

Token limit including reasoning: 8,192 tokens

Task origin (Simon Willison)

How to read this comparison

Winning one benchmark is not an overall verdict

Your workload, budget, and required context length matter most. A coding benchmark says little about visual understanding or agent performance.

The standard price table uses direct developer rates. The provider comparison labels OpenRouter endpoints, regions, and special tariffs separately.

Every result links to its measurement source and retrieval date. Labels distinguish vendor reports, official benchmark leaderboards, and independent evaluations. Disputed or archived results are excluded.

More matchups

Compare Claude Sonnet 5 and GPT-5.4 with other leading models using the same data and benchmark logic.

View the complete LLM comparison