Price Per TokenPrice Per Token
Microsoft
Microsoft
vs
Xai
Xai

Phi-3 Medium 128K Instruct vs Grok Code Fast 1

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 Medium 128K Instruct wins:

  • Cheaper output tokens
  • Higher intelligence benchmark

Grok Code Fast 1 wins:

  • Cheaper input tokens
  • Larger context window
  • Faster response time
  • Better at coding
  • Better at math
  • Has reasoning mode
Price Advantage
Phi-3 Medium 128K Instruct
Benchmark Advantage
Grok Code Fast 1
Context Window
Grok Code Fast 1
Speed
Grok Code Fast 1

Pricing Comparison

Price Comparison

MetricPhi-3 Medium 128K InstructGrok Code Fast 1Winner
Input (per 1M tokens)$1.00$0.20 Grok Code Fast 1
Output (per 1M tokens)$1.00$1.50 Phi-3 Medium 128K Instruct
Cache Read (per 1M)N/A$0.02 Grok Code Fast 1
Using a 3:1 input/output ratio, Grok Code Fast 1 is 48% cheaper overall.

Phi-3 Medium 128K Instruct Providers

No provider data available

Grok Code Fast 1 Providers

No provider data available

Benchmark Comparison

7
Benchmarks Compared
1
Phi-3 Medium 128K Instruct Wins
2
Grok Code Fast 1 Wins

Benchmark Scores

BenchmarkPhi-3 Medium 128K InstructGrok Code Fast 1Winner
Intelligence Index
Overall intelligence score
32.028.7
Coding Index
Code generation & understanding
-23.7-
Math Index
Mathematical reasoning
-43.3-
MMLU Pro
Academic knowledge
41.279.3
GPQA
Graduate-level science
11.572.7
LiveCodeBench
Competitive programming
-65.7-
BBH
Big-Bench Hard
48.5--
Grok Code Fast 1 significantly outperforms in coding benchmarks.

Cost vs Quality

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

Context & Performance

Context Window

Phi-3 Medium 128K Instruct
128,000
tokens
Grok Code Fast 1
256,000
tokens
Grok Code Fast 1 has a 50% larger context window.

Speed Performance

MetricPhi-3 Medium 128K InstructGrok Code Fast 1Winner
Tokens/secondN/A171.7 tok/s
Time to First TokenN/A3.27s

Capabilities

Feature Comparison

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

License & Release

PropertyPhi-3 Medium 128K InstructGrok Code Fast 1
LicenseOpen SourceProprietary
AuthorMicrosoftXai
ReleasedUnknownAug 2025

Phi-3 Medium 128K Instruct Modalities

Input
Output

Grok Code Fast 1 Modalities

Input
text
Output
text

Related Comparisons

Compare Phi-3 Medium 128K Instruct with:

Compare Grok Code Fast 1 with:

Frequently Asked Questions

Grok Code Fast 1 has cheaper input pricing at $0.20/M tokens. Phi-3 Medium 128K Instruct has cheaper output pricing at $1.00/M tokens.
Grok Code Fast 1 scores higher on coding benchmarks with a score of 23.7, compared to Phi-3 Medium 128K Instruct's score of N/A.
Phi-3 Medium 128K Instruct has a 128,000 token context window, while Grok Code Fast 1 has a 256,000 token context window.
Phi-3 Medium 128K Instruct does not support vision. Grok Code Fast 1 does not support vision.