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 | OpenAI: GPT-5.2-Codex | xAI: Grok 4 |
|---|---|---|
| Intelligence Score | 54.0 | 48.5 |
| Coding Score | 53.1 | 42.2 |
| Math Score | N/A | N/A |
| Speed (tok/s) | 68 tok/s | 124 tok/s |
| Latency (TTFT) | 75.14s | 15.96s |
| Input Price / 1M tokens | $1.75 | $3.00 |
| Output Price / 1M tokens | $14 | $15 |
| Context Window | 400K |
OpenAI: GPT-5.2-Codex outperforms xAI: Grok 4 on the Artificial Analysis 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, OpenAI: GPT-5.2-Codex would cost approximately $10.50/month vs $18.00/month for xAI: Grok 4 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 OpenAI: GPT-5.2-Codex when you need higher intelligence (54.0), stronger coding performance (53.1), lower cost. Choose xAI: Grok 4 when you need faster output (124 tok/s).
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, OpenAI: GPT-5.2-Codex supports image input. xAI: Grok 4 also supports images.
Benchmark data by Artificial Analysis
Data last synced: March 25, 2026
| 256K |
| Max Output Tokens | 128K | N/A |
| Input Modalities | Text + Image | Image + Text |
| 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.