Anthropic: Claude Sonnet 4.6 vs OpenAI: GPT-5.2-Codex
Side-by-side comparison of Anthropic: Claude Sonnet 4.6 and OpenAI: GPT-5.2-Codex. Compare pricing, context window, capabilities, and find out which is better for your workflow.
Verdict
moderate confidenceAnthropic: Claude Sonnet 4.6 and OpenAI: GPT-5.2-Codex are closely matched across pricing, context, and capabilities. Your choice depends on workflow-specific factors like provider ecosystem preference and existing integrations.
Best for with Anthropic: Claude Sonnet 4.6
Best for with OpenAI: GPT-5.2-Codex
Side-by-side
Technical specifications
| Anthropic: Claude Sonnet 4.6 | OpenAI: GPT-5.2-Codex | |
|---|---|---|
| Provider | Anthropic | OpenAI |
| Input price | $3/M | $2/M |
| Output price | $15/M | $14/M |
| Context window | 1.0M | 400K |
| Max output | 128K | 128K |
| Capabilities | Tool useVisionReasoning | Tool useVisionReasoning |
| Released | Feb 17, 2026 | Jan 14, 2026 |
Scoring breakdown
How each dimension compares
Price
OpenAI: GPT-5.2-Codex leadsAnthropic: Claude Sonnet 4.6
$15/M tokens
OpenAI: GPT-5.2-Codex
$14/M tokens
Context Window
Anthropic: Claude Sonnet 4.6 leadsAnthropic: Claude Sonnet 4.6
1.0M tokens
OpenAI: GPT-5.2-Codex
400K tokens
Capabilities
Anthropic: Claude Sonnet 4.6
3/4
OpenAI: GPT-5.2-Codex
3/4
Max Output
Anthropic: Claude Sonnet 4.6
128K tokens
OpenAI: GPT-5.2-Codex
128K tokens
Recency
Anthropic: Claude Sonnet 4.6
Feb 2026
OpenAI: GPT-5.2-Codex
Jan 2026
Related comparisons
Anthropic: Claude Opus 4.5 vs OpenAI: GPT-5.2-Codex
flagship tier · Cross-provider
Anthropic: Claude Opus 4.6 vs OpenAI: GPT-5.2-Codex
flagship tier · Cross-provider
Anthropic: Claude Sonnet 4.6 vs Google: Gemini 3.1 Pro Preview
flagship tier · Cross-provider
Anthropic: Claude Sonnet 4.6 vs Google: Gemini 3.1 Pro Preview Custom Tools
flagship tier · Cross-provider