Llama Guard 4 12B pricing & specs
Meta · released 2025-04-29 · ● verified 2026-10-23
Llama Guard 4 12B is a Meta model released on 2025-04-29. At $0.18 per million input tokens and $0.18 per million output tokens, its blended price of $0.18 per 1M tokens is lower than 79% of the 182 models we track. It offers text and image input, a 163.8K-token context window. Its weights are open, and it is available from 1 tracked hosting providers.
Ranked #9 of 14 in Cheapest Llama Models, #14 of 20 in Cheapest Gemini Alternatives and #19 of 20 in Cheapest Vision Models.
// price history ($/1M tokens)
// cheaper or similar alternatives
| model | in | out | ctx | vs Llama Guard 4 12B |
|---|---|---|---|---|
| Gemma 4 E2B IT | $0.04 | $0.08 | 131.1K | −72.2% |
| Qwen3.7 Flash | $0.03 | $0.13 | 1M | −69.4% |
| Gemma 3 12B IT | $0.05 | $0.10 | 131.1K | −65.3% |
| Gemma 3 27B IT | $0.08 | $0.16 | 131.1K | −44.4% |
| Ministral 3 3B | $0.10 | $0.10 | 131.1K | −44.4% |
// price by host
| host | in $/1M | out $/1M |
|---|---|---|
| DeepInfra | $0.18 | $0.18 |
// embed this price badge
Show the live price of Llama Guard 4 12B in your README or docs (updated daily):
[](https://aisignals.dev/models/meta/llama-guard-4-12b)
// faq
How much does Llama Guard 4 12B cost?
Llama Guard 4 12B costs $0.18 per million input tokens and $0.18 per million output tokens (cheapest tracked host: DeepInfra). At 50M input and 10M output tokens per month that is about $10.80.
What is the context window of Llama Guard 4 12B?
163.8K tokens, with up to 163.8K output tokens per request.
What are cheaper alternatives to Llama Guard 4 12B?
Gemma 4 E2B IT ($0.04 in / $0.08 out), Qwen3.7 Flash ($0.03 in / $0.13 out), Gemma 3 12B IT ($0.05 in / $0.10 out) offer the same input types and capabilities for less.
Is Llama Guard 4 12B open weights?
Yes. It is available from 1 tracked hosts; the cheapest is DeepInfra at $0.18 input and $0.18 output per million tokens.
// spec sheet
- input / 1M
- $0.18
- output / 1M
- $0.18
- blended (3:1)
- $0.18
- context
- 163.8K
- max output
- 163.8K
- input types
- text · image
- reasoning
- no
- tool calling
- no
- structured output
- no
- open weights
- yes
- knowledge cutoff
- n/a
- price source
- DeepInfra
// cost calculator
| model | in $/1M | out $/1M | = monthly |
|---|---|---|---|
| Gemma 4 E2B IT | $0.04 | $0.08 | $2.80 |
| Qwen3.7 Flash | $0.03 | $0.13 | $2.80 |
| Gemma 3 12B IT | $0.05 | $0.10 | $3.50 |
| Llama Guard 4 12B | $0.18 | $0.18 | $10.80 |
Base-tier list prices. Long-context tiers, caching and batch discounts are not included.