Llama-Guard-4-12B API pricing
Updated
DeepInfra is the only provider we checked (prices read 2026-11-14) that lists a standard price for Llama-Guard-4-12B: USD 0.18 per 1M input tokens and USD 0.18 per 1M output tokens. Meta sells no API of its own for it. Each price is read from the provider's own pricing page.
Does Meta sell Llama-Guard-4-12B directly?
No. Meta does not sell Llama models through an API of its own: llama.com now redirects to Meta's developer site, whose Model API lists only Meta's Muse models. Llama is available only from third-party hosts. Checked 2026-11-14.
Llama-Guard-4-12B price per provider
USD per 1M tokens. Standard prices are ranked on a blend of 3 input tokens to 1 output token, cheapest first. Free rows, the maker's serving version and other service tiers follow, tagged and unranked.
| # | Provider | Input | Cached input | Output | Blended 3:1 | Context | Precision | Source |
|---|---|---|---|---|---|---|---|---|
| 1 | DeepInfra cheapestmeta-llama/Llama-Guard-4-12BNotes and source quote“$0.18 / 1M tokens” | USD 0.18 | not published | USD 0.18 | USD 0.18 | 163,840 | BFLOAT16 | DeepInfra page checked 2026-11-14 re-checked 2026-11-16 |
| — | DeepInfra flex / spotmeta-llama/Llama-Guard-4-12BNotes and source quoteFlex service tier (0.8× standard). “Flex (0.8×) $0.144 $0.144” | USD 0.144 | not published | USD 0.144 | USD 0.144 | 163,840 | BFLOAT16 | DeepInfra page checked 2026-11-14 re-checked 2026-11-16 |
| — | DeepInfra prioritymeta-llama/Llama-Guard-4-12BNotes and source quotePriority service tier (1.5× standard). “Priority (1.5×) $0.27 $0.27” | USD 0.27 | not published | USD 0.27 | USD 0.27 | 163,840 | BFLOAT16 | DeepInfra page checked 2026-11-14 re-checked 2026-11-16 |
- Ranked: standard-tier prices only, on (3 × input + output) ÷ 4. "Cached input: not published" means the provider's page shows no cache price; budget cached tokens at the input price.
- Other tiers (flex / spot and priority): batch runs asynchronously within hours; flex and spot are best-effort and can be slow or refused at capacity; priority and fast cost more for reliability or speed. Shown, not ranked.
- Automated re-check 2026-11-16: a weekly job re-fetches each source page and looks for the recorded quote or prices. It is not a human review. "Re-checked" means it still found them. Rows with no re-check note show only the date the price was read.
- Precision is shown only where the provider states it; "not stated" is unknown, not full precision.
Report a wrong price or number (email to info@broadnet.ai, with this page's link filled in).
What does Llama-Guard-4-12B cost for a real workload?
Monthly cost over 30 days at each standard price, using the presets of the LLM API cost calculator. Providers without a cached price bill cached input at the input price.
- Support chatbot: 2,000 requests a day, 1,500 input tokens (60% cached), 300 output.
- RAG over documents: 1,000 requests a day, 8,000 input tokens (30% cached), 500 output.
- Coding agent (one developer): 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning.
| Provider | Support chatbot | RAG over documents | Coding agent (one developer) |
|---|---|---|---|
| DeepInfra | USD 19.44 | USD 45.90 | USD 340.20 |
Estimate your own bill
- LLM API cost calculator with Llama-Guard-4-12B preloaded: your traffic and cache rate, against any of 429 models.
- Token counter: count the tokens in your real prompts. Tokenizers differ, so the same text costs a different number of tokens on different models.
- Prompt caching calculator: what a higher cache-hit rate saves.
How does Llama-Guard-4-12B compare with other Meta models?
The Meta models whose cheapest standard price is closest to Llama-Guard-4-12B's (USD 0.18 blended):
| Model | Cheapest input | Cheapest output | Max context | Providers |
|---|---|---|---|---|
| Llama 3.2 11B Vision Instruct | USD 0.16 | USD 0.16 | — | 3 |
| Llama 3.3 70B | USD 0.10 | USD 0.32 | 131,072 | 14 |
| Llama 4 Scout 17B 16E Instruct | USD 0.10 | USD 0.30 | 1,048,576 | 6 |
| Llama 3.2 3B Instruct | USD 0.0509 | USD 0.335 | 128,000 | 4 |
| Llama 3 8B Instruct | USD 0.0925 | USD 0.095 | 8,192 | 3 |
| Llama 4 Maverick 17B 128E Instruct FP8 | USD 0.25 | USD 0.80 | 1,048,576 | 7 |
Priced closest from other makers: Qwen3.8 Flash (Qwen, USD 0.1803) · Gemini 2.5 Flash-Lite (Google, USD 0.175) · MiMo v2.5 (Xiaomi, USD 0.175).
All 429 models: API prices compared · Cheapest LLM APIs right now · LLM API price index (open data) · Download all prices (CSV, JSON) · Price change log
Questions
How much does the Llama-Guard-4-12B API cost per token?
From USD 0.18 per 1M input tokens (USD 0.00000018 per token) and USD 0.18 per 1M output tokens (USD 0.00000018 per token) at the lowest standard prices we found. Each price was read from the provider's own pricing page; the source is linked in its row.
Which provider is cheapest for Llama-Guard-4-12B?
DeepInfra is the only provider we checked (prices read 2026-11-14) with a paid standard price, USD 0.18 input and USD 0.18 output per 1M tokens, so there is nothing to rank yet.
Does Meta sell Llama-Guard-4-12B on its own API?
Meta does not sell Llama models through an API of its own: llama.com now redirects to Meta's developer site, whose Model API lists only Meta's Muse models. Llama is available only from third-party hosts. The lowest-priced host we checked is DeepInfra at USD 0.18 / USD 0.18 per 1M tokens.
Does Llama-Guard-4-12B have cached input pricing?
The only standard price has no cached-input price, so budget repeated prompts at the full input price.
What is the Llama-Guard-4-12B context window?
163,840 tokens on every provider that states it.
How much does a coding agent cost per month on Llama-Guard-4-12B?
For 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning, over 30 days: USD 340.20 a month at DeepInfra. Most of the input is cached, so the cache price matters as much as the input price. Try your own numbers.
Is there a batch, flex or priority price for Llama-Guard-4-12B?
Yes: flex / spot from DeepInfra at USD 0.144 / USD 0.144; priority from DeepInfra at USD 0.27 / USD 0.27 per 1M input / output tokens. These tiers trade speed or availability for price (batch runs within hours, flex and spot can be slow or refused at capacity, priority and fast cost more for speed or reliability), so they are shown but not ranked.
Is Llama-Guard-4-12B free to use through an API?
No provider in our data lists a free price for Llama-Guard-4-12B as of 2026-11-14. Free tiers and credits by provider (checked 2026-11-14) lists general offers that do not name a model; all free LLM API models are on one page.