grok-4.1 vs GPT-5.1-Codex
Both have similar output pricing, while GPT-5.1-Codex offers a larger context window. Choose grok-4.1 or GPT-5.1-Codex based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | grok-4.1 | GPT-5.1-Codex |
|---|---|---|
| Provider | 302.AI | OpenAI |
| Input / 1M tokens | $2.00 | $1.25 |
| Output / 1M tokens | $10.00 | $10.00 |
| Context window | 200K | 400K |
| Parameters | — | — |
| Open weights | No | No |
| Released | Nov 2025 | Nov 2025 |
| LMArena (Chatbot Arena) Elo score | 1436 | — |
| LMArena WebDev Elo score | 1214 | 1337 |
| LiveBench score | — | 69.3 |
| SWE-bench Verified score | — | 66.0 |
FAQ
Is grok-4.1 or GPT-5.1-Codex cheaper?
grok-4.1 and GPT-5.1-Codex have comparable output pricing.
Which has the larger context window, grok-4.1 or GPT-5.1-Codex?
GPT-5.1-Codex has the larger context window (400K tokens).
Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.