Llama Guard 4 12B pricing & specs

Meta · released 2025-04-29 · ● verified 2026-10-23

input / 1M$0.18via DeepInfra
output / 1M$0.18via DeepInfra
context163.8K
max output163.8K

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)

$0.207
input $/1Moutput $/1M2026-10-22 → 2026-10-23

// cheaper or similar alternatives

modelinoutctxvs Llama Guard 4 12B
Gemma 4 E2B IT$0.04$0.08131.1K−72.2%
Qwen3.7 Flash$0.03$0.131M−69.4%
Gemma 3 12B IT$0.05$0.10131.1K−65.3%
Gemma 3 27B IT$0.08$0.16131.1K−44.4%
Ministral 3 3B$0.10$0.10131.1K−44.4%
all Llama Guard 4 12B alternatives →Llama Guard 4 12B vs Qwen3.8 Flash →Llama Guard 4 12B vs Qwen3.8 Omni Flash →Claude Haiku 5.5 vs Llama Guard 4 12B →DeepSeek-V3.2 vs Llama Guard 4 12B →DeepSeek V4.1 Flash vs Llama Guard 4 12B →DeepSeek V4 Flash (1-flash-1017) vs Llama Guard 4 12B →

// price by host

hostin $/1Mout $/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):

Llama Guard 4 12B API price badge
[![Llama Guard 4 12B price](https://aisignals.dev/badge/meta/llama-guard-4-12b.svg)](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

report a data error

// cost calculator

modelin $/1Mout $/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.