# GPT-5.1-Codex-Max vs Grok Code Fast 1

Source: https://openrouter.ai/compare/openai/gpt-5.1-codex-max/x-ai/grok-code-fast-1

## Overview

| Attribute | GPT-5.1-Codex-Max | Grok Code Fast 1 |
| --- | --- | --- |
| Author | OpenAI | SpaceXSI |
| Reasoning | Yes | Yes |
| Input modalities | Text, Image | Text |
| Output modalities | Text | Text |
| Input price | $1.25/M tokens | Pricing varies by provider |
| Output price | $10/M tokens | Pricing varies by provider |
| Context window | 400,000 tokens | 256,000 tokens |
| Openness Index | Not available | 5.6 |
| Latency (p50) | 3.46 s | Not available |
| Throughput (p50) | 59.0 tok/s | Not available |

## GPT-5.1-Codex-Max or Grok Code Fast 1: which should you choose?

### Choose GPT-5.1-Codex-Max for:

- a longer context window (400,000 vs 256,000 tokens)

Grok Code Fast 1 does not lead on any comparison both models report.

## Model pages

- [GPT-5.1-Codex-Max](https://openrouter.ai/openai/gpt-5.1-codex-max) ([llms.txt](https://openrouter.ai/openai/gpt-5.1-codex-max/llms.txt))
- [Grok Code Fast 1](https://openrouter.ai/x-ai/grok-code-fast-1) ([llms.txt](https://openrouter.ai/x-ai/grok-code-fast-1/llms.txt))
