AI Model Intelligence

Comparison · 2026-05-12

GPT-5.1 Codex vs Claude Sonnet 4.5 (latest)

Side-by-side comparison of pricing, context window and capabilities for GPT-5.1 Codex (OpenAI) and Claude Sonnet 4.5 (latest) (Anthropic). Focus: coding.

GPT-5.1 CodexClaude Sonnet 4.5 (latest)
VendorOpenAIAnthropic
Input price / 1M tokens$1.25$3.00
Output price / 1M tokens$10.00$15.00
Total per 1M (in + out)$11.25$18.00
Context window400K200K
Max output tokens128K64K
Tool callingYesYes
Structured outputYesUnknown
ReasoningYesYes
Vision inputYesYes
Open weightsNoNo
Provider availability19 providers16 providers
Release date2025-11-132025-09-29
Knowledge cutoff2024-09-302025-07-31

Quick takeaway

  • GPT-5.1 Codex is 1.6× cheaper per 1M tokens (input + output combined).
  • GPT-5.1 Codex has a larger context window (400K vs 200K).
  • Only GPT-5.1 Codex supports structured output / JSON mode.
  • GPT-5.1 Codex is more widely available across providers (19 vs 16).
GPT-5.1 Codex · See all 19 providers →Claude Sonnet 4.5 (latest) · See all 16 providers →

Last updated:

Prices in USD per 1M tokens. Unknown means the provider does not publish per-token pricing.

Data is sourced from models.dev and normalized for comparison. Prices and capabilities may change. Always verify critical production decisions with the provider's official documentation.