Price Per TokenPrice Per Token
Meta-llama
Meta-llama
vs
Microsoft
Microsoft

Llama 3.1 405B Instruct vs Phi-3 Medium 128K Instruct

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

Llama 3.1 405B Instruct wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window
  • Faster response time
  • Better at coding
  • Better at math

Phi-3 Medium 128K Instruct wins:

  • Higher intelligence benchmark
Price Advantage
Llama 3.1 405B Instruct
Benchmark Advantage
Llama 3.1 405B Instruct
Context Window
Llama 3.1 405B Instruct
Speed
Llama 3.1 405B Instruct

Pricing Comparison

Price Comparison

MetricLlama 3.1 405B InstructPhi-3 Medium 128K InstructWinner
Input (per 1M tokens)$0.90$1.00 Llama 3.1 405B Instruct
Output (per 1M tokens)$0.90$1.00 Llama 3.1 405B Instruct
Cache Read (per 1M)$0.45N/A Llama 3.1 405B Instruct
Using a 3:1 input/output ratio, Llama 3.1 405B Instruct is 10% cheaper overall.

Llama 3.1 405B Instruct Providers

No provider data available

Phi-3 Medium 128K Instruct Providers

No provider data available

Benchmark Comparison

9
Benchmarks Compared
2
Llama 3.1 405B Instruct Wins
1
Phi-3 Medium 128K Instruct Wins

Benchmark Scores

BenchmarkLlama 3.1 405B InstructPhi-3 Medium 128K InstructWinner
Intelligence Index
Overall intelligence score
17.432.0
Coding Index
Code generation & understanding
14.5--
Math Index
Mathematical reasoning
3.0--
MMLU Pro
Academic knowledge
73.241.2
GPQA
Graduate-level science
51.511.5
LiveCodeBench
Competitive programming
30.5--
Aider
Real-world code editing
66.2--
AIME
Competition math
21.3--
BBH
Big-Bench Hard
-48.5-
Llama 3.1 405B Instruct significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Llama 3.1 405B Instruct
Other models

Context & Performance

Context Window

Llama 3.1 405B Instruct
131,000
tokens
Phi-3 Medium 128K Instruct
128,000
tokens
Llama 3.1 405B Instruct has a 2% larger context window.

Speed Performance

MetricLlama 3.1 405B InstructPhi-3 Medium 128K InstructWinner
Tokens/second33.7 tok/sN/A
Time to First Token0.71sN/A

Capabilities

Feature Comparison

FeatureLlama 3.1 405B InstructPhi-3 Medium 128K Instruct
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyLlama 3.1 405B InstructPhi-3 Medium 128K Instruct
LicenseOpen SourceOpen Source
AuthorMeta-llamaMicrosoft
ReleasedJul 2024Unknown

Llama 3.1 405B Instruct Modalities

Input
text
Output
text

Phi-3 Medium 128K Instruct Modalities

Input
Output

Related Comparisons

Compare Llama 3.1 405B Instruct with:

Compare Phi-3 Medium 128K Instruct with:

Frequently Asked Questions

Llama 3.1 405B Instruct has cheaper input pricing at $0.90/M tokens. Llama 3.1 405B Instruct has cheaper output pricing at $0.90/M tokens.
Llama 3.1 405B Instruct scores higher on coding benchmarks with a score of 14.5, compared to Phi-3 Medium 128K Instruct's score of N/A.
Llama 3.1 405B Instruct has a 131,000 token context window, while Phi-3 Medium 128K Instruct has a 128,000 token context window.
Llama 3.1 405B Instruct does not support vision. Phi-3 Medium 128K Instruct does not support vision.