AI Hub
← All models

GPT-5 Codex vs Grok-2

OpenAI vs xAI — benchmarks, pricing, and capabilities side by side.

  • GPT-5 Codex has the higher intelligence index (87.1 vs 62.4)
  • GPT-5 Codex is cheaper ($1.25 vs $2.00 per 1M input)
  • GPT-5 Codex is faster
  • GPT-5 Codex has a larger context window (400K)
GPT-5 CodexGrok-2
Intelligence index87.162.4
DeveloperOpenAIxAI
TypeMultimodalMultimodal
AccessAPI onlyAPI only
Context window400,000 tokens128,000 tokens
Input price$1.25 / 1M$2.00 / 1M
Output price$10.00 / 1M$10.00 / 1M
Speed180 tok/s85 tok/s
ReleasedSeptember 23, 2025August 13, 2024
Parameters
Input modalitiesText, ImageText, Image
Output modalitiesTextText

Shared benchmarks

GPT-5 Codex
Grok-2
GPQA Diamond
83.7
56
Humanity’s Last Exam
25.6
3.8
LiveCodeBench
84
26.7
MMLU-Pro
86.5
75.5