Llama Guard 4 12B vs Phi 4

Price, context window & benchmark comparison

M

Llama Guard 4 12B

Meta Llama
$0.18 / $0.18
Input / Output · per 1M tokens
VS
M

Phi 4

Microsoft
$0.07 / $0.14
Input / Output · per 1M tokens
Compare different models
M
M
Verdict: Phi 4 is 2.1× cheaper than Llama Guard 4 12B on a typical 3:1 input/output mix. Llama Guard 4 12B has the larger context window (164K vs 16K).
Llama Guard 4 12BPhi 4
Input price / 1M$0.18$0.07
Output price / 1M$0.18$0.14
Blended price (3:1)$0.18$0.0875
Cached input / 1M
Context window164K16K
Max output16K15K
Intelligence index
Coding index
Providers1
Best provider uptime (30m)100.0%
Vision inputYesNo
ReasoningNoNo
Tool callingNoNo
Released2025-04-302025-01-10
Retirement

Cost calculator

FAQ

Which is cheaper, Llama Guard 4 12B or Phi 4?

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

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

Llama Guard 4 12B: 163,840 tokens. Phi 4: 16,384 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: Llama Guard 4 12B ≈ $450.00, Phi 4 ≈ $210.00.

More comparisons