Price Per TokenPrice Per Token
Microsoft
Microsoft
vs
Xai
Xai

Phi-3 Mini 128K Instruct 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

Phi-3 Mini 128K Instruct wins:

  • Cheaper input tokens
  • Cheaper output tokens

Grok 4 wins:

  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Supports vision
  • Has reasoning mode
Price Advantage
Phi-3 Mini 128K Instruct
Benchmark Advantage
Grok 4
Context Window
Grok 4
Speed
Grok 4

Pricing Comparison

Price Comparison

MetricPhi-3 Mini 128K InstructGrok 4Winner
Input (per 1M tokens)$0.10$3.00 Phi-3 Mini 128K Instruct
Output (per 1M tokens)$0.10$15.00 Phi-3 Mini 128K Instruct
Cache Read (per 1M)N/A$0.75 Grok 4
Using a 3:1 input/output ratio, Phi-3 Mini 128K Instruct is 98% cheaper overall.

Phi-3 Mini 128K Instruct Providers

No provider data available

Grok 4 Providers

No provider data available

Benchmark Comparison

9
Benchmarks Compared
0
Phi-3 Mini 128K Instruct Wins
3
Grok 4 Wins

Benchmark Scores

BenchmarkPhi-3 Mini 128K InstructGrok 4Winner
Intelligence Index
Overall intelligence score
26.341.5
Coding Index
Code generation & understanding
-40.5-
Math Index
Mathematical reasoning
-92.7-
MMLU Pro
Academic knowledge
30.486.6
GPQA
Graduate-level science
9.187.7
LiveCodeBench
Competitive programming
-81.9-
Aider
Real-world code editing
-79.6-
AIME
Competition math
-94.3-
BBH
Big-Bench Hard
37.1--
Grok 4 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Phi-3 Mini 128K Instruct
Other models

Context & Performance

Context Window

Phi-3 Mini 128K Instruct
128,000
tokens
Grok 4
256,000
tokens
Grok 4 has a 50% larger context window.

Speed Performance

MetricPhi-3 Mini 128K InstructGrok 4Winner
Tokens/secondN/A48.1 tok/s
Time to First TokenN/A10.29s

Capabilities

Feature Comparison

FeaturePhi-3 Mini 128K InstructGrok 4
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyPhi-3 Mini 128K InstructGrok 4
LicenseOpen SourceProprietary
AuthorMicrosoftXai
ReleasedUnknownJul 2025

Phi-3 Mini 128K Instruct Modalities

Input
Output

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare Phi-3 Mini 128K Instruct with:

Compare Grok 4 with:

Frequently Asked Questions

Phi-3 Mini 128K Instruct has cheaper input pricing at $0.10/M tokens. Phi-3 Mini 128K Instruct has cheaper output pricing at $0.10/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to Phi-3 Mini 128K Instruct's score of N/A.
Phi-3 Mini 128K Instruct has a 128,000 token context window, while Grok 4 has a 256,000 token context window.
Phi-3 Mini 128K Instruct does not support vision. Grok 4 supports vision.