← All models
Compare

GPT-5.2 Codex vs Grok 4.6

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

AttributeGPT-5.2 CodexOpenAI · 3 in the newsGrok 4.6xAI · 2 in the news
Scores
Intelligence (ECI)156
Coding6192
Math91
Reasoning & Knowledge6873
Agentic & Tools6384
Specifications
DeveloperOpenAIxAI
FamilyGPTGrok
ReleasedDec 18, 2025Aug 12, 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%41%
GPQA Diamond90%94%
Humanity's Last Exam36%43%
SciCode55%56%
Terminal-Bench67%
WebDev Arena13381629
τ²-bench92%
AIME 2024/202599%
ARC-AGI88%
ARC-AGI-267%
SimpleBench76%
SimpleQA Verified49%
WeirdML67%

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.6?

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.6?

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

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

Across coding benchmarks like SWE-bench Verified and Terminal-Bench, Grok 4.6 ranks higher — 92th vs 61th 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.