Skip to content
llmmodels

Claude Sonnet 4 vs GPT-5.2

GPT-5.2 wins 5 of 5 benchmarks both models report. GPT-5.2 is slightly cheaper on a blended (3:1 input:output) token price. GPT-5.2 has the larger context window (400K vs 200K).

SpecClaude Sonnet 4GPT-5.2
ProviderAnthropicOpenAI
ReleasedMay 22, 2025Dec 11, 2025 (better)
TypeReasoning LLMReasoning LLM
Parameters——
Context window200K400K (better)
Max output64K125K (better)
Input price / 1M$2.70$1.75 (better)
Output price / 1M$13.50 (better)$14
Input modalitiestext, image, pdftext, image, file
Open weightsNoNo
LicenseProprietaryProprietary
Reasoning modeYesYes
Tool callingYesYes
API providers736 (better)
Epoch Capabilities Index—154.5
GPQA Diamond79.2%91.4% (better)
Humanity's Last Exam7.8%27.8% (better)
SWE-bench Verified—73.8%
Terminal-Bench—64.9%
Aider Polyglot61.3%—
WebDev Arena—1480
OTIS Mock AIME71.1%96.1% (better)
MATH Level 584.4%—
FrontierMath—67.4%
ARC-AGI-25.9%52.9% (better)
SimpleQA Verified—37.1%
OSWorld43.9%—
METR Time Horizon75 min352 min (better)

Cost example

For a workload of 10M input + 2M output tokens per month: Claude Sonnet 4 costs $54.00 and GPT-5.2 costs $45.50 at list price (jiekou / openai pricing).

About Claude Sonnet 4

Claude Sonnet 4 is a proprietary reasoning llm from Anthropic, released May 22, 2025. It has a 200K-token context window and accepts text, image, pdf input. API pricing starts at $2.70 per million input tokens and $13.50 per million output tokens. It is available from 7 API providers. Full Claude Sonnet 4 specs →

About GPT-5.2

GPT-5.2 is a proprietary reasoning llm from OpenAI, released Dec 11, 2025. It has a 400K-token context window and accepts text, image, file input. API pricing starts at $1.75 per million input tokens and $14 per million output tokens. It is available from 36 API providers. It scores 154.5 on the Epoch Capabilities Index. Full GPT-5.2 specs →

Compare other models

FAQ

Which is better, Claude Sonnet 4 or GPT-5.2?

GPT-5.2 wins 5 of 5 benchmarks both models report. GPT-5.2 is slightly cheaper on a blended (3:1 input:output) token price. GPT-5.2 has the larger context window (400K vs 200K).

Is Claude Sonnet 4 cheaper than GPT-5.2?

Claude Sonnet 4 costs $2.70 input / $13.50 output per 1M tokens; GPT-5.2 costs $1.75 / $14. GPT-5.2 is cheaper overall.

Which has a bigger context window?

Claude Sonnet 4: 200,000 tokens. GPT-5.2: 400,000 tokens.

Are Claude Sonnet 4 and GPT-5.2 open source?

Claude Sonnet 4 is proprietary; GPT-5.2 is proprietary.