Price Per TokenPrice Per Token
Mistral AI
Mistral AI
vs
Xai
Xai

Mistral Medium 3.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

Mistral Medium 3.1 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Faster response time

Grok 4 wins:

  • Larger context window
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Has reasoning mode
Price Advantage
Mistral Medium 3.1
Benchmark Advantage
Grok 4
Context Window
Grok 4
Speed
Mistral Medium 3.1

Pricing Comparison

Price Comparison

MetricMistral Medium 3.1Grok 4Winner
Input (per 1M tokens)$0.40$3.00 Mistral Medium 3.1
Output (per 1M tokens)$2.00$15.00 Mistral Medium 3.1
Cache Read (per 1M)N/A$0.75 Grok 4
Using a 3:1 input/output ratio, Mistral Medium 3.1 is 87% cheaper overall.

Mistral Medium 3.1 Providers

No provider data available

Grok 4 Providers

No provider data available

Benchmark Comparison

8
Benchmarks Compared
0
Mistral Medium 3.1 Wins
6
Grok 4 Wins

Benchmark Scores

BenchmarkMistral Medium 3.1Grok 4Winner
Intelligence Index
Overall intelligence score
21.341.5
Coding Index
Code generation & understanding
18.340.5
Math Index
Mathematical reasoning
38.392.7
MMLU Pro
Academic knowledge
68.386.6
GPQA
Graduate-level science
58.887.7
LiveCodeBench
Competitive programming
40.681.9
Aider
Real-world code editing
-79.6-
AIME
Competition math
-94.3-
Grok 4 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Mistral Medium 3.1
Other models

Context & Performance

Context Window

Mistral Medium 3.1
131,072
tokens
Grok 4
256,000
tokens
Grok 4 has a 49% larger context window.

Speed Performance

MetricMistral Medium 3.1Grok 4Winner
Tokens/second78.1 tok/s48.1 tok/s
Time to First Token0.42s10.29s
Mistral Medium 3.1 responds 62% faster on average.

Capabilities

Feature Comparison

FeatureMistral Medium 3.1Grok 4
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyMistral Medium 3.1Grok 4
LicenseProprietaryProprietary
AuthorMistral AIXai
ReleasedAug 2025Jul 2025

Mistral Medium 3.1 Modalities

Input
textimage
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare Mistral Medium 3.1 with:

Compare Grok 4 with:

Frequently Asked Questions

Mistral Medium 3.1 has cheaper input pricing at $0.40/M tokens. Mistral Medium 3.1 has cheaper output pricing at $2.00/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to Mistral Medium 3.1's score of 18.3.
Mistral Medium 3.1 has a 131,072 token context window, while Grok 4 has a 256,000 token context window.
Mistral Medium 3.1 supports vision. Grok 4 supports vision.