L LLM Cloud Hub
Side-by-side comparison

GPT-5.2-Codex vs Claude Opus 5 (batch)

OpenAI

GPT-5.2-Codex

👁 Vision 🔧 Tools {} JSON
Input / 1M
$1.7500
Output / 1M
$14.0000
View GPT-5.2-Codex →
Anthropic

Claude Opus 5 (batch)

👁 Vision 🔧 Tools {} JSON
Input / 1M
$2.5000
Output / 1M
$12.5000
View Claude Opus 5 (batch) →
GPT-5.2-CodexClaude Opus 5 (batch)
Provider OpenAI Anthropic
Context window Maximum tokens (input + output) the model can process in a single request. Glossary → 400,000 1,000,000
Capabilities Optional capabilities the model advertises: vision (images), tools (function calling), json_mode (structured output). vision, tools, json_mode vision, tools, json_mode
Input $ / 1M tokens Cost for tokens you send (prompt + context). Cheaper side highlighted. Glossary → 1.7500 2.5000
Output $ / 1M tokens Cost for tokens the model generates. Output is normally 3–5× pricier than input. Glossary → 14.0000 12.5000

Frequently asked questions

Which is cheaper, GPT-5.2-Codex or Claude Opus 5 (batch)?

Claude Opus 5 (batch) is cheaper than GPT-5.2-Codex on a 50/50 input/output blend by about $0.375 per 1M tokens. Exact savings depend on your input-vs-output ratio — use the cost calculator on this page for a workload-specific estimate.

Which has a larger context window, GPT-5.2-Codex or Claude Opus 5 (batch)?

Claude Opus 5 (batch) has the larger context window at 1M tokens versus 400k tokens for GPT-5.2-Codex. That means Claude Opus 5 (batch) can ingest about 2.5x as much text per request.

What is the difference between GPT-5.2-Codex and Claude Opus 5 (batch)?

GPT-5.2-Codex comes from OpenAI; Claude Opus 5 (batch) comes from Anthropic. They differ in pricing, context window, and supported capabilities — see the side-by-side table on this page for the exact figures, refreshed nightly.

Keyboard shortcuts

?
Show this overlay
/
Focus the first form field
g h
Go to / (home)
g b
Go to /best-llm-for
g c
Go to /cost
g s
Go to /self-hosted
g x
Go to /compliance
Esc
Close any overlay

Inspired by Linear and GitHub conventions. The two-key sequences (g then h) work within ~1 second.