head-to-head

Anthropic Claude Sonnet Latest vs OpenAI: GPT-5.4 Mini

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

Anthropic Claude Sonnet Latest OpenAI: GPT-5.4 Mini
Vendor~anthropicopenai
Quality Score100100
Input Price$3.00/M$0.75/M
Output Price$15.00/M$4.50/M
Context Window1,000,000400,000
Max Output128,000128,000
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--

Who wins by task?

TaskAnthropic Claude Sonnet LatestOpenAI: GPT-5.4 Mini
SQL Generation 132 133
Code Completion 116 130
Code Documentation 128 130
Regex Writing 116 119
CSV / Spreadsheet Cleanup 132 133
JSON Extraction 120 130
Bulk Data Labeling 116 128
Long-Document Summarization 136 137
Short-Form Summarization 112 123
Blog Post Writing 120 121

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

Related comparisons

Google: Gemini 3.1 Flash Lite vs Anthropic Claude Sonnet Latest Google: Gemini 3.1 Flash Lite vs OpenAI: GPT-5.4 Mini xAI: Grok 4.3 vs Anthropic Claude Sonnet Latest xAI: Grok 4.3 vs OpenAI: GPT-5.4 Mini Mistral: Mistral Medium 3.5 vs Anthropic Claude Sonnet Latest Mistral: Mistral Medium 3.5 vs OpenAI: GPT-5.4 Mini NVIDIA: Nemotron 3 Nano Omni (free) vs Anthropic Claude Sonnet Latest NVIDIA: Nemotron 3 Nano Omni (free) vs OpenAI: GPT-5.4 Mini