Key Takeaways
Llama 3.1 70B Hanami x1 wins:
- Cheaper output tokens
Grok 4 wins:
- Larger context window
- Faster response time
- Higher intelligence benchmark
- Better at coding
- Better at math
- Supports vision
- Supports tool calls
Price Advantage
Llama 3.1 70B Hanami x1
Benchmark Advantage
Grok 4
Context Window
Grok 4
Speed
Grok 4
Pricing Comparison
Price Comparison
| Metric | Llama 3.1 70B Hanami x1 | Grok 4 | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $3.00 | $3.00 | Tie |
| Output (per 1M tokens) | $3.00 | $15.00 | Llama 3.1 70B Hanami x1 |
| Cache Read (per 1M) | N/A | $750000.00 | Grok 4 |
Using a 3:1 input/output ratio, Llama 3.1 70B Hanami x1 is 50% cheaper overall.
Llama 3.1 70B Hanami x1 Providers
Infermatic $3.00 (Cheapest)
Grok 4 Providers
Vercel $3.00 (Cheapest)
xAI $3.00 (Cheapest)
Benchmark Comparison
8
Benchmarks Compared
0
Llama 3.1 70B Hanami x1 Wins
0
Grok 4 Wins
Benchmark Scores
| Benchmark | Llama 3.1 70B Hanami x1 | Grok 4 | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | - | 41.4 | - |
Coding Index Code generation & understanding | - | 40.5 | - |
Math Index Mathematical reasoning | - | 92.7 | - |
MMLU Pro Academic knowledge | - | 86.6 | - |
GPQA Graduate-level science | - | 87.7 | - |
LiveCodeBench Competitive programming | - | 81.9 | - |
Aider Real-world code editing | - | 79.6 | - |
AIME Competition math | - | 94.3 | - |
Grok 4 significantly outperforms in coding benchmarks.
Cost vs Quality
X-axis:
Y-axis:
Loading chart...
Other models
Context & Performance
Context Window
Llama 3.1 70B Hanami x1
16,000
tokens
Grok 4
256,000
tokens
Grok 4 has a 94% larger context window.
Speed Performance
| Metric | Llama 3.1 70B Hanami x1 | Grok 4 | Winner |
|---|---|---|---|
| Tokens/second | N/A | 38.5 tok/s | |
| Time to First Token | N/A | 15.96s |
Capabilities
Feature Comparison
| Feature | Llama 3.1 70B Hanami x1 | Grok 4 |
|---|---|---|
| Vision (Image Input) | ||
| Tool/Function Calls | ||
| Reasoning Mode | ||
| Audio Input | ||
| Audio Output | ||
| PDF Input | ||
| Prompt Caching | ||
| Web Search |
License & Release
| Property | Llama 3.1 70B Hanami x1 | Grok 4 |
|---|---|---|
| License | Open Source | Proprietary |
| Author | Sao10k | Xai |
| Released | Jan 2025 | Jul 2025 |
Llama 3.1 70B Hanami x1 Modalities
Input
text
Output
text
Grok 4 Modalities
Input
imagetext
Output
text
