Skip to content
llmmodels

Claude Sonnet 4.5 (latest) vs GPT-5.1 Codex

Claude Sonnet 4.5 (latest) and GPT-5.1 Codex are evenly matched on the 2 benchmarks both report. GPT-5.1 Codex is about 1.7× cheaper on a blended (3:1 input:output) token price. GPT-5.1 Codex has the larger context window (400K vs 200K).

SpecClaude Sonnet 4.5 (latest)GPT-5.1 Codex
ProviderAnthropicOpenAI
ReleasedSep 29, 2025Nov 13, 2025 (better)
TypeReasoning LLMReasoning LLM
Parameters——
Context window200K400K (better)
Max output64K125K (better)
Input price / 1M$3$1.25 (better)
Output price / 1M$15$10 (better)
Input modalitiestext, image, pdf, file (better)text, image
Open weightsNoNo
LicenseProprietaryProprietary
Reasoning modeYesYes
Tool callingYesYes
API providers40 (better)17
Epoch Capabilities Index147.6—
GPQA Diamond82.3%—
Humanity's Last Exam13.7%—
SWE-bench Verified71.3%—
Terminal-Bench46.5%57.8% (better)
WebDev Arena1391 (better)1336
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.1 Codex costs $32.50 at list price (Anthropic / openrouter 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.1 Codex

GPT-5.1 Codex is a proprietary reasoning llm from OpenAI, released Nov 13, 2025. It has a 400K-token context window and accepts text, image input. API pricing starts at $1.25 per million input tokens and $10 per million output tokens. It is available from 17 API providers. Full GPT-5.1 Codex specs →

Compare other models

FAQ

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

Claude Sonnet 4.5 (latest) and GPT-5.1 Codex are evenly matched on the 2 benchmarks both report. GPT-5.1 Codex is about 1.7× cheaper on a blended (3:1 input:output) token price. GPT-5.1 Codex has the larger context window (400K vs 200K).

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

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

Which has a bigger context window?

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

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

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