head-to-head

Anthropic: Claude Sonnet Latest vs OpenAI: GPT-5.4

Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-11-07.

Anthropic: Claude Sonnet Latest OpenAI: GPT-5.4
Vendor~anthropicopenai
Quality Score100100
Benchmark Score-89.6
Input Price$2.00/M$2.50/M
Output Price$10.00/M$15.00/M
Context Window1,000,0001,050,000
Max Output128,000128,000
Tool Calling✓✓
Structured Output✓✓
Reasoning Mode✓✓
Vision✓✓
Audio--
Benchmark Scores
ai_index-84.8
ai_index_agentic-67.8
ai_index_coding-100.0
eqbench-75.6

The verdict

For a sample job of 1 million input tokens and 250,000 output tokens, Claude Sonnet Latest costs $4.50 and GPT-5.4 costs $6.25, so Claude Sonnet Latest is about 1.4 times cheaper for the same work.

Both take in a similar amount of text: 1,000,000 and 1,050,000 tokens, about 1,500 and 1,575 pages.

Across the 20 tasks where they differ, GPT-5.4 on 20 (SQL Generation, Code Review, Code Completion and others).

Claude Sonnet Latest was released in April 2026 and GPT-5.4 in March 2026.

Pick Claude Sonnet Latest if you need lower cost; pick GPT-5.4 if you need the stronger all-round task scores.

Costs use current list prices per million tokens; page counts assume about 0.75 words per token and 500 words per page.

Who wins by task?

TaskAnthropic: Claude Sonnet LatestOpenAI: GPT-5.4
SQL Generation 132 174
Code Review 132 175
Code Completion 117 120
Code Refactoring 136 173
Bug Fixing 136 187
Unit Test Generation 124 158
Code Documentation 129 146
Regex Writing 117 136
CI/CD Pipelines 120 149
Frontend Component Design 122 148
Data Analysis 124 173
CSV / Spreadsheet Cleanup 132 157
ETL Scripting 128 161
JSON Extraction 121 137
Bulk Data Labeling 118 122
OCR / Document Parsing 131 148
Table Extraction from PDFs 131 148
Long-Document Summarization 136 167
Short-Form Summarization 113 122
Blog Post Writing 120 143

Scores reflect capability match + benchmark data + pricing for each task. Methodology →

Related comparisons

Anthropic: Claude Haiku Latest vs Anthropic: Claude Sonnet Latest Anthropic: Claude Haiku Latest vs OpenAI: GPT-5.4 Anthropic: Claude Sonnet 5 vs Anthropic: Claude Sonnet Latest Anthropic: Claude Sonnet 5 vs OpenAI: GPT-5.4 Anthropic: Claude Sonnet Latest vs Anthropic: Claude Sonnet 4.6 Anthropic: Claude Sonnet Latest vs ByteDance Seed: Seed-2.0-Lite Anthropic: Claude Sonnet Latest vs ByteDance Seed: Seed-2.0-Mini Anthropic: Claude Sonnet Latest vs Google: Gemini 3.1 Flash Lite Preview

The Model Movers Report

One email every Friday, built from this site's own rankings: the current top five by benchmark score, every model released in the last seven days, and one note worked out from that week's numbers. You can unsubscribe from any issue with one click.