Llama Guard 3 8B
Llama Guard 3 is a Llama-3.1-8B 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 – it generates 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 3 was aligned to safeguard against the MLCommons sta
Context window
This model accepts 131K tokens in one request (~98K 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
- 131,072 tokens (131K)
- Max output tokens
- 131,072 tokens (131K)
- Speed tier
- fast
- Provider
- Meta
- Release date
- Feb 2025
- Input cost
- $0.055/M / 1M tokens
- Output cost
- $0.055/M / 1M tokens
Capabilities
See which features this model supports, such as vision, tools, and streaming.
- Streaming
- Returns tokens as they are generated
- Supported
- Vision
- Accepts image inputs alongside text
- Not 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 3 8B
Open a side-by-side comparison with one click.
- Llama Guard 3 8B vs Codellama 34b Instruct
Llama Guard 3 8B has 3100% larger context window
- Llama Guard 3 8B vs Codellama 70b Instruct
Llama Guard 3 8B has 3100% larger context window
- Llama Guard 3 8B vs Llama 2 13b Chat
Llama Guard 3 8B has 3100% larger context window
- Llama Guard 3 8B vs Llama 2 70b Chat
Llama Guard 3 8B has 3100% larger context window
- Llama Guard 3 8B vs Amazon Titan Text Express
Llama Guard 3 8B has 212% larger context window
- Llama Guard 3 8B vs Amazon Titan Text Lite
Llama Guard 3 8B has 212% 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