AI Hub
← All models

Claude 3 Sonnet vs GPT-5.2-Codex

Anthropic vs OpenAI — benchmarks, pricing, and capabilities side by side.

  • GPT-5.2-Codex has the higher intelligence index (89.9 vs 45.8)
  • GPT-5.2-Codex is cheaper ($1.75 vs $3.00 per 1M input)
  • Claude 3 Sonnet is faster
  • GPT-5.2-Codex has a larger context window (400K)
Claude 3 SonnetGPT-5.2-Codex
Intelligence index45.889.9
DeveloperAnthropicOpenAI
TypeMultimodalMultimodal
AccessAPI onlyAPI only
Context window200,000 tokens400,000 tokens
Input price$3.00 / 1M$1.75 / 1M
Output price$15.00 / 1M$14.00 / 1M
Speed120 tok/s106 tok/s
ReleasedFebruary 29, 2024January 14, 2026
Parameters
Input modalitiesText, Image
Output modalitiesText

Shared benchmarks

Claude 3 Sonnet
GPT-5.2-Codex
GPQA Diamond
40.4
89.9
Humanity’s Last Exam
3.8
33.5