Meta Llama

Llama Guard 4 12B

$0.18 per 1M input tokens and $0.18 per 1M output tokens · 164K context · vision, open weights.

Prices checked Dec 6, 2026 · tracked by LLM Cost Index since Oct 21, 2026

$0.18
input / 1M tokens
$0.18
output / 1M tokens
164K
context window
16K
max output

What Llama Guard 4 12B costs per month

Estimated monthly bill for typical workloads. Try your own numbers in the cost calculator.

WorkloadPer month
Customer chatbot
1,000 conversations a day, 8 turns each
$79.92
Document Q&A (RAG)
500 questions a day over retrieved documents
$17.55
Coding / tool-using agent
200 tasks a day, long tool-heavy contexts
$69.12
Content generation
30 long articles a day
$0.891
Classification / extraction
100,000 short items a day
$170

Price history

No input price change since Oct 21, 2026. See all recent price changes.

Where to run Llama Guard 4 12B: 3 providers

DeepInfra is the cheapest at $0.144 input / $0.144 output per 1M tokens. Uptime is the average over the last 30 days as reported by OpenRouter; see provider reliability.

ProviderInput / 1MOutput / 1MContextUptimeNotes
DeepInfra$0.144$0.144164K100% flex tier, bf16
DeepInfra$0.18$0.18164K99.6% bf16
DeepInfra$0.27$0.27164K99.6% priority tier, bf16

Cheaper alternatives to Llama Guard 4 12B

Models with the same image input for at least 20% less (3:1 input/output mix), most capable first.

Cheaper alternatives to Llama Guard 4 12B
Model Input / 1M Output / 1M Context Capabilities
$0.02 $0.20 1.05M visiontoolsreasoningJSONopen weights
$0.06 $0.36 1.05M visiontoolsreasoningJSONopen weights
Hy4 flash
Tencent
$0.07 $0.281 1.05M visiontoolsreasoningJSONopen weights
Inkling 2 Mini
Thinkingmachines
$0.06 $0.24 1.05M visiontoolsreasoningJSONopen weights
$0.068 $0.225 262K visiontoolsreasoningJSONopen weights

How to pay less for Llama Guard 4 12B

For a customer chatbot (1,000 conversations a day, 8 turns each) that costs $79.92 a month at list price without caching:

OptionPer monthYou save
Move to DeepSeek V4.1 Flash 1017 (similar capabilities)$19.90$60.02 (75%)
Route to DeepInfra (flex tier)$63.94$15.98 (20%)

Other workloads: cut-your-bill tool for Llama Guard 4 12B.

Specifications

Model IDmeta-llama/llama-guard-4-12b
Inputimage, text
Outputtext
Tool callingNo
Structured outputNo
Reasoning modeNo
Open weightsYes — meta-llama/Llama-Guard-4-12B
Knowledge cutoff2024-08-31
ReleasedApr 30, 2025

FAQ

How much does Llama Guard 4 12B cost?
$0.18 per million input tokens and $0.18 per million output tokens. Prices as of Dec 6, 2026.
What is the context window of Llama Guard 4 12B?
164K tokens, with up to 16K output tokens per response.
Does Llama Guard 4 12B support images, tools and structured output?
Images as input: yes. Tool calling: no. Structured (JSON) output: no. Reasoning mode: no.
What are cheaper alternatives to Llama Guard 4 12B?
Models with the same key capabilities for at least 20% less include DeepSeek V4.1 Flash 1017 ($0.02 / $0.20), Qwen4 35B A3B ($0.06 / $0.36), Hy4 flash ($0.07 / $0.281).

More from Meta Llama: all Meta Llama models · how we collect prices