Llama Guard 4 12B
Llama Guard 4 is a Llama 4 Scout-derived multimodal pretrained model, fine-tuned for content safety classification. Similar to previous versions, it can be used to classify content in both LLM inputs (prompt classification) and in LLM responses (response classification). It acts as an LLM—generating text in its output that indicates whether a given prompt or response is safe or unsafe, and if unsafe, it also lists the content categories violated. Llama Guard 4 was aligned to safeguard against t
Context window
This model accepts 164K tokens in one request (~123K words of text).
What fits in one request
- FitsShort documentAbout 1,500 words of text
- FitsLong documentAbout 37K words of text
- Won't fitSmall codebaseAbout 150K words of text
- Won't fitFull novelAbout 375K words of text
Specifications
Context size, pricing, and release info in one place.
- Context window
- 163,840 tokens (164K)
- Max output tokens
- 163,840 tokens (164K)
- Speed tier
- balanced
- Provider
- Meta
- Release date
- Apr 2025
- Input cost
- $0.180/M / 1M tokens
- Output cost
- $0.180/M / 1M tokens
Capabilities
See which features this model supports, such as vision, tools, and streaming.
- Vision
- Accepts image inputs alongside text
- Supported
- Streaming
- Returns tokens as they are generated
- Supported
- Tool use
- Can call external tools and APIs
- Not supported
- Function calling
- Structured function call interface
- Not supported
- Extended thinking
- Shows its chain-of-thought reasoning
- Not supported
- Web search
- Can browse the web during a request
- Not supported
- Batch API
- Process many requests asynchronously
- Not supported
- Prompt caching
- Reuse repeated prompt prefixes cheaply
- Not supported
Best for
Jump to a guide or ranking that matches each workload.
Compare Llama Guard 4 12B
Open a side-by-side comparison with one click.
- Llama Guard 4 12B vs Codellama 34b Instruct
Llama Guard 4 12B has 3900% larger context window
- Llama Guard 4 12B vs Codellama 70b Instruct
Llama Guard 4 12B has 3900% larger context window
- Llama Guard 4 12B vs Llama 2 13b Chat
Llama Guard 4 12B has 3900% larger context window
- Llama Guard 4 12B vs Llama 2 70b Chat
Llama Guard 4 12B has 3900% larger context window
- Llama Guard 4 12B vs Amazon Titan Text Express
Llama Guard 4 12B has 290% larger context window
- Llama Guard 4 12B vs Amazon Titan Text Lite
Llama Guard 4 12B has 290% larger context window
Frequently asked questions
Short answers about context size and how this model behaves.
More from Meta
Other models by Meta in our catalog.
Powered by Mem0
Use a smaller model.
Get better results.
Mem0 gives your AI long-term memory so you stop re-sending context on every call. That means you can use a smaller, faster, cheaper model — and still get better answers.
Example: a multi-turn chat session
80% less to send — works with any model