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

Llama 3.1 405B Instruct vs Llama 3.1 8B Instruct

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

112 out of our 301 tracked models have had a price change in February.

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

Key Takeaways

Llama 3.1 405B Instruct wins:

  • Larger context window
  • Higher intelligence benchmark
  • Better at coding

Llama 3.1 8B Instruct wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Faster response time
  • Better at math
Price Advantage
Llama 3.1 8B Instruct
Benchmark Advantage
Llama 3.1 405B Instruct
Context Window
Llama 3.1 405B Instruct
Speed
Llama 3.1 8B Instruct

Pricing Comparison

Price Comparison

MetricLlama 3.1 405B InstructLlama 3.1 8B InstructWinner
Input (per 1M tokens)$4.00$0.02 Llama 3.1 8B Instruct
Output (per 1M tokens)$4.00$0.05 Llama 3.1 8B Instruct
Using a 3:1 input/output ratio, Llama 3.1 8B Instruct is 99% cheaper overall.

Llama 3.1 405B Instruct Providers

Hyperbolic $4.00 (Cheapest)
Google $5.00

Llama 3.1 8B Instruct Providers

Nebius $0.02 (Cheapest)
DeepInfra $0.02 (Cheapest)
Novita $0.02 (Cheapest)
Groq $0.05
SiliconFlow $0.06

Benchmark Comparison

8
Benchmarks Compared
7
Llama 3.1 405B Instruct Wins
1
Llama 3.1 8B Instruct Wins

Benchmark Scores

BenchmarkLlama 3.1 405B InstructLlama 3.1 8B InstructWinner
Intelligence Index
Overall intelligence score
14.211.7
Coding Index
Code generation & understanding
14.54.9
Math Index
Mathematical reasoning
3.04.3
MMLU Pro
Academic knowledge
73.247.6
GPQA
Graduate-level science
51.525.9
LiveCodeBench
Competitive programming
30.511.6
Aider
Real-world code editing
66.237.6
AIME
Competition math
21.37.7
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
Llama 3.1 8B Instruct
16,384
tokens
Max output: 16,384 tokens
Llama 3.1 405B Instruct has a 87% larger context window.

Speed Performance

MetricLlama 3.1 405B InstructLlama 3.1 8B InstructWinner
Tokens/second25.2 tok/s162.2 tok/s
Time to First Token0.79s0.33s
Llama 3.1 8B Instruct responds 544% faster on average.

Capabilities

Feature Comparison

FeatureLlama 3.1 405B InstructLlama 3.1 8B 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 InstructLlama 3.1 8B Instruct
LicenseOpen SourceOpen Source
AuthorMeta-llamaMeta-llama
ReleasedJul 2024Jul 2024

Llama 3.1 405B Instruct Modalities

Input
text
Output
text

Llama 3.1 8B Instruct Modalities

Input
text
Output
text

Related Comparisons

Compare Llama 3.1 405B Instruct with:

Compare Llama 3.1 8B Instruct with:

Frequently Asked Questions

Llama 3.1 8B Instruct has cheaper input pricing at $0.02/M tokens. Llama 3.1 8B Instruct has cheaper output pricing at $0.05/M tokens.
Llama 3.1 405B Instruct scores higher on coding benchmarks with a score of 14.5, compared to Llama 3.1 8B Instruct's score of 4.9.
Llama 3.1 405B Instruct has a 131,000 token context window, while Llama 3.1 8B Instruct has a 16,384 token context window.
Llama 3.1 405B Instruct does not support vision. Llama 3.1 8B Instruct does not support vision.