Price Per TokenPrice Per Token
OpenAI
OpenAI
vs
Xai
Xai

GPT-5.1-Codex-Mini vs Grok 4 Fast

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

102 out of our 300 tracked models have had a price change in February.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

GPT-5.1-Codex-Mini wins:

  • Higher intelligence benchmark
  • Better at coding
  • Better at math

Grok 4 Fast wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window
  • Faster response time
Price Advantage
Grok 4 Fast
Benchmark Advantage
GPT-5.1-Codex-Mini
Context Window
Grok 4 Fast
Speed
Grok 4 Fast

Pricing Comparison

Price Comparison

MetricGPT-5.1-Codex-MiniGrok 4 FastWinner
Input (per 1M tokens)$0.25$0.20 Grok 4 Fast
Output (per 1M tokens)$2.00$0.50 Grok 4 Fast
Cache Read (per 1M)$25000.00$50000.00 GPT-5.1-Codex-Mini
Using a 3:1 input/output ratio, Grok 4 Fast is 60% cheaper overall.

GPT-5.1-Codex-Mini Providers

OpenAI $0.25 (Cheapest)
Azure $0.25 (Cheapest)

Grok 4 Fast Providers

xAI $0.20 (Cheapest)

Benchmark Comparison

6
Benchmarks Compared
6
GPT-5.1-Codex-Mini Wins
0
Grok 4 Fast Wins

Benchmark Scores

BenchmarkGPT-5.1-Codex-MiniGrok 4 FastWinner
Intelligence Index
Overall intelligence score
38.522.6
Coding Index
Code generation & understanding
36.419.0
Math Index
Mathematical reasoning
91.741.3
MMLU Pro
Academic knowledge
82.073.0
GPQA
Graduate-level science
81.360.6
LiveCodeBench
Competitive programming
83.640.1
GPT-5.1-Codex-Mini significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
GPT-5.1-Codex-Mini
Other models

Context & Performance

Context Window

GPT-5.1-Codex-Mini
400,000
tokens
Max output: 100,000 tokens
Grok 4 Fast
2,000,000
tokens
Max output: 30,000 tokens
Grok 4 Fast has a 80% larger context window.

Speed Performance

MetricGPT-5.1-Codex-MiniGrok 4 FastWinner
Tokens/second161.6 tok/s172.3 tok/s
Time to First Token9.11s0.60s

Capabilities

Feature Comparison

FeatureGPT-5.1-Codex-MiniGrok 4 Fast
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGPT-5.1-Codex-MiniGrok 4 Fast
LicenseProprietaryProprietary
AuthorOpenAIXai
ReleasedNov 2025Sep 2025

GPT-5.1-Codex-Mini Modalities

Input
imagetext
Output
text

Grok 4 Fast Modalities

Input
textimage
Output
text

Related Comparisons

Compare GPT-5.1-Codex-Mini with:

Compare Grok 4 Fast with:

Frequently Asked Questions

Grok 4 Fast has cheaper input pricing at $0.20/M tokens. Grok 4 Fast has cheaper output pricing at $0.50/M tokens.
GPT-5.1-Codex-Mini scores higher on coding benchmarks with a score of 36.4, compared to Grok 4 Fast's score of 19.0.
GPT-5.1-Codex-Mini has a 400,000 token context window, while Grok 4 Fast has a 2,000,000 token context window.
GPT-5.1-Codex-Mini supports vision. Grok 4 Fast supports vision.