Price Per TokenPrice Per Token
OpenAI
OpenAI
vs
Xai
Xai

GPT-4.1 vs Grok 4

A detailed comparison of pricing, benchmarks, and capabilities

108 out of our 483 tracked models have had a price change in March.

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

Key Takeaways

GPT-4.1 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window
  • Faster response time

Grok 4 wins:

  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Has reasoning mode
Price Advantage
GPT-4.1
Benchmark Advantage
Grok 4
Context Window
GPT-4.1
Speed
GPT-4.1

Pricing Comparison

Price Comparison

MetricGPT-4.1Grok 4Winner
Input (per 1M tokens)$2.00$3.00 GPT-4.1
Output (per 1M tokens)$8.00$15.00 GPT-4.1
Cache Read (per 1M)$0.50$0.75 GPT-4.1
Using a 3:1 input/output ratio, GPT-4.1 is 42% cheaper overall.

GPT-4.1 Providers

No provider data available

Grok 4 Providers

No provider data available

Benchmark Comparison

8
Benchmarks Compared
0
GPT-4.1 Wins
8
Grok 4 Wins

Benchmark Scores

BenchmarkGPT-4.1Grok 4Winner
Intelligence Index
Overall intelligence score
26.341.5
Coding Index
Code generation & understanding
21.840.5
Math Index
Mathematical reasoning
34.792.7
MMLU Pro
Academic knowledge
80.686.6
GPQA
Graduate-level science
66.687.7
LiveCodeBench
Competitive programming
45.781.9
Aider
Real-world code editing
52.479.6
AIME
Competition math
43.794.3
Grok 4 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
GPT-4.1
Other models

Context & Performance

Context Window

GPT-4.1
1,047,576
tokens
Grok 4
256,000
tokens
GPT-4.1 has a 76% larger context window.

Speed Performance

MetricGPT-4.1Grok 4Winner
Tokens/second72.5 tok/s42.4 tok/s
Time to First Token0.53s11.02s
GPT-4.1 responds 71% faster on average.

Capabilities

Feature Comparison

FeatureGPT-4.1Grok 4
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGPT-4.1Grok 4
LicenseProprietaryProprietary
AuthorOpenAIXai
ReleasedApr 2025Jul 2025

GPT-4.1 Modalities

Input
imagetextfile
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare GPT-4.1 with:

Compare Grok 4 with:

Frequently Asked Questions

GPT-4.1 has cheaper input pricing at $2.00/M tokens. GPT-4.1 has cheaper output pricing at $8.00/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to GPT-4.1's score of 21.8.
GPT-4.1 has a 1,047,576 token context window, while Grok 4 has a 256,000 token context window.
GPT-4.1 supports vision. Grok 4 supports vision.