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

Llama 3.1 405B 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

Llama 3.1 405B Instruct wins:

  • Cheaper output tokens

Grok Code Fast 1 wins:

  • Cheaper input tokens
  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Has reasoning mode
Price Advantage
Llama 3.1 405B Instruct
Benchmark Advantage
Grok Code Fast 1
Context Window
Grok Code Fast 1
Speed
Grok Code Fast 1

Pricing Comparison

Price Comparison

MetricLlama 3.1 405B InstructGrok Code Fast 1Winner
Input (per 1M tokens)$0.90$0.20 Grok Code Fast 1
Output (per 1M tokens)$0.90$1.50 Llama 3.1 405B Instruct
Cache Read (per 1M)$0.45$0.02 Grok Code Fast 1
Using a 3:1 input/output ratio, Grok Code Fast 1 is 42% cheaper overall.

Llama 3.1 405B Instruct Providers

No provider data available

Grok Code Fast 1 Providers

No provider data available

Benchmark Comparison

8
Benchmarks Compared
0
Llama 3.1 405B Instruct Wins
6
Grok Code Fast 1 Wins

Benchmark Scores

BenchmarkLlama 3.1 405B InstructGrok Code Fast 1Winner
Intelligence Index
Overall intelligence score
17.428.7
Coding Index
Code generation & understanding
14.523.7
Math Index
Mathematical reasoning
3.043.3
MMLU Pro
Academic knowledge
73.279.3
GPQA
Graduate-level science
51.572.7
LiveCodeBench
Competitive programming
30.565.7
Aider
Real-world code editing
66.2--
AIME
Competition math
21.3--
Grok Code Fast 1 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
Grok Code Fast 1
256,000
tokens
Grok Code Fast 1 has a 49% larger context window.

Speed Performance

MetricLlama 3.1 405B InstructGrok Code Fast 1Winner
Tokens/second33.7 tok/s171.7 tok/s
Time to First Token0.71s3.27s
Grok Code Fast 1 responds 410% faster on average.

Capabilities

Feature Comparison

FeatureLlama 3.1 405B InstructGrok Code Fast 1
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyLlama 3.1 405B InstructGrok Code Fast 1
LicenseOpen SourceProprietary
AuthorMeta-llamaXai
ReleasedJul 2024Aug 2025

Llama 3.1 405B Instruct Modalities

Input
text
Output
text

Grok Code Fast 1 Modalities

Input
text
Output
text

Related Comparisons

Compare Llama 3.1 405B Instruct with:

Compare Grok Code Fast 1 with:

Frequently Asked Questions

Grok Code Fast 1 has cheaper input pricing at $0.20/M tokens. Llama 3.1 405B Instruct has cheaper output pricing at $0.90/M tokens.
Grok Code Fast 1 scores higher on coding benchmarks with a score of 23.7, compared to Llama 3.1 405B Instruct's score of 14.5.
Llama 3.1 405B Instruct has a 131,000 token context window, while Grok Code Fast 1 has a 256,000 token context window.
Llama 3.1 405B Instruct does not support vision. Grok Code Fast 1 does not support vision.