Anthropic Claude Opus 5 (1M context) vs OpenAI GPT-5.6 Codex (1M)

Side-by-side comparison of pricing, context window, capabilities, and a real-cost sample workload.

Option A

Anthropic Claude Opus 5 (1M context)

by Anthropic
Context:1M
Input:$6.00 / 1M
Output:$30.00 / 1M
Released:2026-07
Option B

OpenAI GPT-5.6 Codex (1M)

by OpenAI
Context:1M
Input:$5.00 / 1M
Output:$30.00 / 1M
Released:2026-07

Detailed Comparison

DimensionAnthropic Claude Opus 5 (1M context)OpenAI GPT-5.6 Codex (1M)
ProviderAnthropicOpenAI
Context window TieTie1M1M
Input price ($/1M) Winner$6.00$5.00
Output price ($/1M) TieTie$30.00$30.00
Sample workload cost Winner
1M input + 500K output tokens
$21.00 $20.00
Released TieTie2026-072026-07
Tokenizerclaude-4o200k_base

The verdict

On the dimensions we measured, OpenAI GPT-5.6 Codex (1M) wins more often - particularly on cost-effectiveness for a typical 1M+0.5M workload.

Anthropic Claude Opus 5 (1M context) - Key features

The 1M-token context tier of Claude Opus 5. Same model, long-context premium pricing applied to requests above 200K input tokens. Built for whole-repository and whole-corpus work.

  • 1M token context window
  • Whole-repository reasoning
  • Long-context premium tier
  • Prompt caching support
  • Adaptive effort control

OpenAI GPT-5.6 Codex (1M) - Key features

The Codex-tuned build of GPT-5.6 for the Codex CLI, IDE extension and cloud agents. Optimised for long autonomous coding sessions, patch generation and test repair rather than open-ended chat.

  • Tuned for agentic coding
  • Long autonomous sessions
  • Patch and diff generation
  • ~1M token context window
  • Sandboxed execution support

How to choose

Estimate the real cost of either model for your prompts using our Token Calculator.