AI Hub
← All models

Anthropic Claude Sonnet vs GPT-5.2-Codex

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

  • GPT-5.2-Codex is cheaper ($1.75 vs $3.00 per 1M input)
  • Anthropic Claude Sonnet has a larger context window (1M)
Anthropic Claude SonnetGPT-5.2-Codex
Intelligence index89.9
DeveloperAnthropicOpenAI
TypeMultimodalMultimodal
AccessAPI onlyAPI only
Context window1,000,000 tokens400,000 tokens
Input price$3.00 / 1M$1.75 / 1M
Output price$15.00 / 1M$14.00 / 1M
Speed106 tok/s
ReleasedApril 27, 2026January 14, 2026
Parameters
Input modalitiesText, ImageText, Image
Output modalitiesTextText