Grok 4.7 vs Llama 3.1 8B Instruct

Price, context window & benchmark comparison

X

Grok 4.7

xAI
$1.60 / $4.80
Input / Output · per 1M tokens
VS
M

Llama 3.1 8B Instruct

Meta Llama
$0.05 / $0.08
Input / Output · per 1M tokens
Compare different models
X
M
Verdict: Llama 3.1 8B Instruct is 41.7× cheaper than Grok 4.7 on a typical 3:1 input/output mix. Grok 4.7 has the larger context window (500K vs 131K).
Grok 4.7Llama 3.1 8B Instruct
Input price / 1M$1.60$0.05
Output price / 1M$4.80$0.08
Blended price (3:1)$2.40$0.0575
Cached input / 1M$0.40$0.025
Context window500K131K
Max output450K118K
Intelligence index46.4
Coding index5.4
Providers4
Best provider uptime (30m)100.0%
Vision inputYesNo
ReasoningYesNo
Tool callingYesYes
Released2026-09-212024-07-23
Retirement

Cost calculator

FAQ

Which is cheaper, Grok 4.7 or Llama 3.1 8B Instruct?

Llama 3.1 8B Instruct is 41.7× cheaper than Grok 4.7 on a typical 3:1 input/output mix.

Grok 4.7 vs Llama 3.1 8B Instruct: which has a bigger context window?

Grok 4.7: 500,000 tokens. Llama 3.1 8B Instruct: 131,072 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: Grok 4.7 ≈ $5,600, Llama 3.1 8B Instruct ≈ $140.00.

More comparisons