GPT-5.1-Codex vs Claude Sonnet 4

Compare GPT-5.1-Codex by OpenAI against Claude Sonnet 4 by Anthropic, context windows of 400K vs 200K, tested across 33 shared challenges. Updated February 2026.

FAQ