Grok 4.7 vs Llama Guard 4 12B

Price, context window & benchmark comparison

X

Grok 4.7

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

Llama Guard 4 12B

Meta Llama
$0.18 / $0.18
Input / Output · per 1M tokens
Compare different models
X
M
Verdict: Llama Guard 4 12B is 13.3× cheaper than Grok 4.7 on a typical 3:1 input/output mix. Grok 4.7 has the larger context window (500K vs 164K).
Grok 4.7Llama Guard 4 12B
Input price / 1M$1.60$0.18
Output price / 1M$4.80$0.18
Blended price (3:1)$2.40$0.18
Cached input / 1M$0.40
Context window500K164K
Max output450K16K
Intelligence index46.4
Coding index
Providers41
Best provider uptime (30m)100.0%100.0%
Vision inputYesYes
ReasoningYesNo
Tool callingYesNo
Released2026-09-212025-04-30
Retirement

Cost calculator

FAQ

Which is cheaper, Grok 4.7 or Llama Guard 4 12B?

Llama Guard 4 12B is 13.3× cheaper than Grok 4.7 on a typical 3:1 input/output mix.

Grok 4.7 vs Llama Guard 4 12B: which has a bigger context window?

Grok 4.7: 500,000 tokens. Llama Guard 4 12B: 163,840 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: Grok 4.7 ≈ $5,600, Llama Guard 4 12B ≈ $450.00.

More comparisons