← All models
Compare

GPT-5.2 Codex vs Grok 4.5

GPT-5.2 Codex (OpenAI) and Grok 4.5 (xAI) compared on benchmarks, pricing, context window, and use-case rankings.

AttributeGPT-5.2 CodexOpenAI · 3 in the newsGrok 4.5xAI · 2 in the news
Scores
Intelligence (ECI)154
Coding6691
Math85
Reasoning & Knowledge7670
Agentic & Tools6875
Specifications
DeveloperOpenAIxAI
FamilyGPTGrok
ReleasedDec 18, 2025Jul 8, 2026
Parameters
AvailabilityAPI accessAPI access
Context window400K500K
Price — $/M input$1.75$2.00
Price — $/M output$14.00$6.00
Inputstext, imagetext, image, file
Outputstexttext
Benchmarks
APEX28%34%
GPQA Diamond90%93%
Humanity's Last Exam34%40%
SciCode55%54%
Terminal-Bench67%
WebDev Arena13351551
τ²-bench92%
AIME 2024/202598%
ARC-AGI87%
ARC-AGI-253%
SimpleBench70%
SimpleQA Verified54%
WeirdML46%

Use-case scores are 0–100 percentile composites across each area’s benchmarks, ranked against every model from the past year. Highlighted cells lead each row. Open a model for the full picture.

Frequently asked questions

Which is cheaper, GPT-5.2 Codex or Grok 4.5?

GPT-5.2 Codex is cheaper on input tokens at $1.75 per million, versus $2.00 (representative OpenRouter pricing).

Which has a larger context window, GPT-5.2 Codex or Grok 4.5?

Grok 4.5 supports up to 500K tokens, compared with 400K for the other.

Which is better for coding, GPT-5.2 Codex or Grok 4.5?

Across coding benchmarks like SWE-bench Verified and Terminal-Bench, Grok 4.5 ranks higher — 91th vs 66th percentile among the models tracked on Model Beat.

Want a different match-up? Open the compare tool to add or swap models.

Benchmarks & model data from Epoch AI (CC BY); pricing & specs from OpenRouter. ECI = Epoch Capabilities Index.