Llama Guard 4 12B

Pricing updated daily · Last refreshed Oct 29, 2026

Meta model with a 164K-token context window, priced at $0.18 per million input tokens and $0.18 per million output tokens.

At a glance

Provider
Meta
Context window
163,840 tokens
Max output
16,384 tokens
Input price
$0.18 / 1M tokens
Output price
$0.18 / 1M tokens
Input types
image, text
Function calling
No
Released
April 30, 2025

What it costs

Illustrative request sizes, not measurements of any real product. For your own volumes, use the cost estimator.

Example costs for Llama Guard 4 12B
WorkloadTokens in / outPer requestPer 1,000 requests
Short chat reply1,000 / 500$0.000270$0.2700
Question over retrieved documents8,000 / 500$0.0015$1.53
Summarise a long document50,000 / 1,500$0.0093$9.27

How it compares

  • Input price ($0.18 per 1M tokens) is the 9th lowest of 30 models in the catalogue.
  • Output price ($0.18 per 1M tokens) is the 2nd lowest of 30.
  • Context window (164K tokens) is the 24th largest of 30.
  • Maximum output (16K tokens) is the 23rd largest of 30.
  • On blended price it is 16% more expensive than the median Meta model in the catalogue.

These are rankings by listed price and size within this catalogue (blended price weights input 3:1 against output), not a measure of output quality.

Cheaper models with the same capabilities

Lower blended price, at least the same context window, and the same input types.

Cheaper alternatives to Llama Guard 4 12B
ModelProviderContextInput $/1MOutput $/1M
Llama 4 ScoutMeta1.31M$0.10$0.30

More from Meta

Other Meta models
ModelProviderContextInput $/1MOutput $/1M
Llama 4 MaverickMeta524K$0.188$0.652
Llama 4 ScoutMeta1.31M$0.10$0.30
Llama 3.3 70B InstructMeta131K$0.10$0.32
Llama 3.2 1B InstructMeta60K$0.027$0.201

Try it with your own text

Source: OpenRouter’s public model catalogue (meta-llama/llama-guard-4-12b), read once a day. These are the prices OpenRouter charges; a provider’s own list price can differ, so check the provider before committing to a budget.

llmtools is a vendor-neutral toolkit for working with large language models — token counting, cost estimation and model comparison, computed in your browser. OpenAI token counts are exact, using the same encoding the model does (o200k_base for GPT-4o, cl100k_base for GPT-4/3.5); Claude and Gemini counts are labelled approximations, since neither publishes a tokenizer that runs client-side. Model pricing is read from OpenRouter’s public catalogue once a day. Nothing you type is ever transmitted anywhere.