Comprehensive side-by-side LLM comparison
GPT-5 Codex leads with 1.8% higher average benchmark score. Claude Sonnet 4 supports multimodal inputs. Claude Sonnet 4 is available on 4 providers. Both models have their strengths depending on your specific coding needs.
Anthropic
Claude Sonnet 4 was created as the balanced offering in the Claude 4 family, designed to provide strong intelligence with practical speed and cost efficiency. Built to serve as a versatile workhorse for diverse applications, it balances advanced capabilities with operational considerations for everyday enterprise and consumer use.
OpenAI
GPT-5 Codex was developed as a specialized variant of GPT-5 optimized for programming and software development tasks. Built to understand and generate code across multiple programming languages, it serves developers with enhanced capabilities for code completion, debugging, translation, and explanation of complex codebases.
3 months newer

Claude Sonnet 4
Anthropic
2025-05-22

GPT-5 Codex
OpenAI
2025-09-15
Context window and performance specifications
Average performance across 1 common benchmarks

Claude Sonnet 4

GPT-5 Codex
Performance comparison across key benchmark categories

Claude Sonnet 4

GPT-5 Codex
GPT-5 Codex
2024-09-30
Available providers and their performance metrics

Claude Sonnet 4
Anthropic
Bedrock
ZeroEval

Claude Sonnet 4

GPT-5 Codex

Claude Sonnet 4

GPT-5 Codex

GPT-5 Codex