Updated March 25, 2026· Based on independent benchmark data
OpenAI: GPT-5.2-Codex leads in intelligence with a score of 54.0 vs 48.5. OpenAI: GPT-5.2-Codex is 1.7x cheaper at $1.75/1M tokens vs $3.00/1M. For speed, xAI: Grok 4 wins at 124 tok/s vs 68 tok/s.
| Metric | xAI: Grok 4 | OpenAI: GPT-5.2-Codex |
|---|---|---|
| Intelligence Score | 48.5 | 54.0 |
| Coding Score | 42.2 | 53.1 |
| Math Score | N/A | N/A |
| Speed (tok/s) | 124 tok/s | 68 tok/s |
| Latency (TTFT) | 15.96s | 75.14s |
| Input Price / 1M tokens | $3.00 | $1.75 |
| Output Price / 1M tokens | $15 | $14 |
| Context Window | 256K |
OpenAI: GPT-5.2-Codex outperforms xAI: Grok 4 on the intelligence index with a score of 54.0 compared to 48.5. For coding tasks, OpenAI: GPT-5.2-Codex has the edge with a coding score of 53.1 vs 42.2.
xAI: Grok 4 generates output significantly faster at 124 tok/s compared to OpenAI: GPT-5.2-Codex's 68 tok/s, making it 1.8x faster for streaming responses. Time to first token is 15.96s for xAI: Grok 4 vs 75.14s for OpenAI: GPT-5.2-Codex, which affects perceived responsiveness in interactive applications.
OpenAI: GPT-5.2-Codex is more affordable at $1.75/1M input tokens ($14/1M output), while xAI: Grok 4 costs $3.00/1M input ($15/1M output). For a typical workload of 100 requests per day at 2,000 tokens each, xAI: Grok 4 would cost approximately $18.00/month vs $10.50/month for OpenAI: GPT-5.2-Codex in input costs alone.
OpenAI: GPT-5.2-Codex offers a larger context window at 400K tokens compared to xAI: Grok 4's 256K.
Choose xAI: Grok 4 when you need faster output (124 tok/s). Choose OpenAI: GPT-5.2-Codex when you need higher intelligence (54.0), stronger coding performance (53.1), lower cost.
OpenAI: GPT-5.2-Codex scores higher on coding benchmarks (53.1 vs 42.2), making it the better choice for programming tasks.
OpenAI: GPT-5.2-Codex is cheaper at $1.75/1M input tokens vs $3.00/1M for xAI: Grok 4.
xAI: Grok 4 is faster, producing output at 124 tok/s compared to OpenAI: GPT-5.2-Codex's 68 tok/s.
Yes, xAI: Grok 4 supports image input. OpenAI: GPT-5.2-Codex also supports images.
Data last synced: March 25, 2026
| 400K |
| Max Output Tokens | N/A | 128K |
| Input Modalities | Image + Text | Text + Image |
| Output Modalities | Text | Text |
| Free Tier | No | No |
OpenAI: GPT-5.2-Codex has a larger context window at 400K compared to xAI: Grok 4's 256K.
It depends on your priorities. OpenAI: GPT-5.2-Codex scores higher on intelligence (54.0), but xAI: Grok 4 may be better for specific use cases like budget-conscious projects or speed-critical applications.