Skip to content
llmmodels

Claude Sonnet 4.5 (latest) vs GPT-5-Codex

Claude Sonnet 4.5 (latest) wins 1 of 1 benchmarks both models report. GPT-5-Codex is about 2.0× cheaper on a blended (3:1 input:output) token price. GPT-5-Codex has the larger context window (400K vs 200K).

SpecClaude Sonnet 4.5 (latest)GPT-5-Codex
ProviderAnthropicOpenAI
ReleasedSep 29, 2025 (better)Sep 15, 2025
TypeReasoning LLMReasoning LLM
Parameters——
Context window200K400K (better)
Max output64K125K (better)
Input price / 1M$3$1.07 (better)
Output price / 1M$15$8.50 (better)
Input modalitiestext, image, pdf, file (better)text, image, pdf
Open weightsNoNo
LicenseProprietaryProprietary
Reasoning modeYesYes
Tool callingYesYes
API providers40 (better)10
Epoch Capabilities Index147.6—
GPQA Diamond82.3%—
Humanity's Last Exam13.7%—
SWE-bench Verified71.3%—
Terminal-Bench46.5% (better)44.3%
WebDev Arena1391—
OTIS Mock AIME77.8%—
MATH Level 597.7%—
FrontierMath23.9%—
ARC-AGI-213.6%—
SimpleQA Verified30.7%—
OSWorld62.9%—
METR Time Horizon122 min—

Cost example

For a workload of 10M input + 2M output tokens per month: Claude Sonnet 4.5 (latest) costs $60.00 and GPT-5-Codex costs $27.70 at list price (Anthropic / opencode pricing).

About Claude Sonnet 4.5 (latest)

Claude Sonnet 4.5 (latest) is a proprietary reasoning llm from Anthropic, released Sep 29, 2025. It has a 200K-token context window and accepts text, image, pdf, file input. API pricing starts at $3 per million input tokens and $15 per million output tokens. It is available from 40 API providers. It scores 147.6 on the Epoch Capabilities Index. Full Claude Sonnet 4.5 (latest) specs →

About GPT-5-Codex

GPT-5-Codex is a proprietary reasoning llm from OpenAI, released Sep 15, 2025. It has a 400K-token context window and accepts text, image, pdf input. API pricing starts at $1.07 per million input tokens and $8.50 per million output tokens. It is available from 10 API providers. Full GPT-5-Codex specs →

Compare other models

FAQ

Which is better, Claude Sonnet 4.5 (latest) or GPT-5-Codex?

Claude Sonnet 4.5 (latest) wins 1 of 1 benchmarks both models report. GPT-5-Codex is about 2.0× cheaper on a blended (3:1 input:output) token price. GPT-5-Codex has the larger context window (400K vs 200K).

Is Claude Sonnet 4.5 (latest) cheaper than GPT-5-Codex?

Claude Sonnet 4.5 (latest) costs $3 input / $15 output per 1M tokens; GPT-5-Codex costs $1.07 / $8.50. GPT-5-Codex is cheaper overall.

Which has a bigger context window?

Claude Sonnet 4.5 (latest): 200,000 tokens. GPT-5-Codex: 400,000 tokens.

Are Claude Sonnet 4.5 (latest) and GPT-5-Codex open source?

Claude Sonnet 4.5 (latest) is proprietary; GPT-5-Codex is proprietary.