GPT-5.1 Codex Max vs Grok 4.7
Price and specs side by side · USD per 1M tokens · verified 2026-10-11
// side by side
| metric | GPT-5.1 Codex Max | Grok 4.7 |
|---|
| input / 1M | $1.25 | $2.00 |
| output / 1M | $10.00 | $6.00 |
| blended (3:1) | $3.4375 | $3.00 |
| cache read / 1M | $0.125 | $0.50 |
| context | 400K | 500K |
| max output | 128K | 500K |
| input types | text · image | text · image · pdf |
| reasoning | yes | yes |
| tool calling | yes | yes |
| structured output | yes | yes |
| open weights | no | no |
| released | 2025-11-13 | 2026-09-21 |
| knowledge cutoff | 2024-09-30 | 2026-05 |
| lab | OpenAI | xAI |
// monthly cost scenarios
| workload | tokens in / out | GPT-5.1 Codex Max | Grok 4.7 |
|---|
| Chatbot | 10M / 2M | $32.50 | $32.00 |
| RAG app | 50M / 5M | $113 | $130 |
| Coding agent | 20M / 10M | $125 | $100 |
// verdict
- Grok 4.7 is 12.7% cheaper than GPT-5.1 Codex Max on a blended 3:1 input/output basis.
- Grok 4.7 has the larger context window (500K vs 400K tokens).