Compare models
Comparing 2models. Drop the URL into a doc — it's permalinked.
| Field | openai/gpt-4o | xai/grok-3 |
|---|---|---|
| Provider | openai | xai |
| Model ID | gpt-4o | grok-3 |
| Context | 128K | 131K |
| Max output | 16K | — |
| Input / 1M | $2.50 | $3.00 |
| Output / 1M | $10.00 | $15.00 |
| Cached input / 1M | $1.25 | — |
| Avg cost / 1M | $6.25 | $9.00 |
| Speed | 110 t/s | 65 t/s |
| Quality index | 71.0 | 72.0 |
| MMLU | 88.7 | 87.5 |
| GPQA | 53.6 | 75.4 |
| HumanEval | 90.2 | 86.5 |
| MATH | 76.6 | 89.3 |
| SWE-bench | — | — |
| Arena Elo | 1338 | — |
| Tools | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Thinking | — | ✓ |
| Streaming | ✓ | ✓ |
| JSON mode | ✓ | — |
| Structured output | ✓ | — |
| Prompt cache | — | — |
Same data, in your terminal: relay models compare 4o grok-3