Atlas / Models / Meta / Llama Guard 3 8B

Llama Guard 3 8B✓ Catalog verified

meta-llama/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 standardized hazards taxonomy and designed to support Llama 3.1 capabilities. Specifically, it provides content moderation in 8 languages, and was optimized to support safety and security for search and code interpreter tool calls.

Input price
$0.02 /1M
Output price
$0.06 /1M
Context
131K
Modalities
text
Released
Feb 12, 2025
Tool calling
Atlas signal
82/100
01

Overview

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 standardized hazards taxonomy and designed to support Llama 3.1 capabilities. Specifically, it provides content moderation in 8 languages, and was optimized to support safety and security for search and code interpreter tool calls.

Access: available through the official Meta API. Context window: 131K.

Pricing and metadata from the ModelsAtlas catalog.Last refreshed Aug 5, 2026
02

Specifications

API identifiermeta-llama/llama-guard-3-8b
ProviderMeta
Model typeText LLM
Context window131K catalog
Input modalitiestext
Output modalitiestext
ReleasedFeb 12, 2025
TokenizerLlama3
Instruction formatnone
ModeratedNo
Architecture modalitytext->text
Supported parameters
frequency_penaltymax_tokenspresence_penaltyrepetition_penaltyseedtemperaturetop_ktop_p
Source: provider documentation + catalog feedMethodology →
03

Pricing

Live pricing components for meta-llama/llama-guard-3-8b as published in the catalog.

$0.02
Input /1M
$0.06
Output /1M
Per request
Per image
Pricing componentRaw unit priceNormalizedUnit
Prompt tokens$2e-8$0.02 / 1MPer input token
Completion tokens$6e-8$0.06 / 1MPer output token
Request feeN/AN/APer request
Image feeN/AN/APer image unit
Web search feeN/AN/APer search request
Source: catalog pricing feedCompare all pricing →Cheapest models →
04

Cost calculator

Estimate monthly spend from your own token volumes.

Scale / Volume

Estimated Total Cost

$0.02Calculated from current list pricing in the ModelsAtlas catalog.
05

Capabilities

CapabilityStatusWhat it means
Visual UnderstandingNot advertisedImage and document analysis support
Audio ProcessingNot advertisedSpeech and voice aligned flows
Tool CallingNot advertisedSupports tools / function calling
Self-Hosting✓ SupportedDeploy outside managed APIs
Derived from catalog capability tags and supported parameters
06

Capability signals

Directional signals derived from model metadata and capability tags — not official benchmark submissions.

Llama Guard 3 8B
MMLU Signal (Reasoning)
79signal
Coding Signal (HumanEval proxy)
89signal
Math Signal (GSM8K proxy)
79signal
Science Signal (GPQA proxy)
79signal
Estimated from metadata — not an official benchmark runAll benchmarks →Methodology →
07

Quick start

Call Llama Guard 3 8B through an OpenAI-compatible client.

from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="meta-llama/llama-guard-3-8b",
    messages=[{"role": "user", "content": "Explain quantum physics."}]
)

print(response.choices[0].message.content)
08

Alternatives

Closest models by context window from a different provider.

09

Sources & attribution

Pricing and metadata are maintained in the ModelsAtlas catalog.

Capability bars use metadata tags — directional estimates onlyHow we source and verify data →
10

Frequently asked questions

How much does Llama Guard 3 8B cost?

$0.02 per 1M input tokens and $0.06 per 1M output tokens on the official Meta API.

What is the context window of Llama Guard 3 8B?

Llama Guard 3 8B supports up to 131K tokens of context.

Does Llama Guard 3 8B support tool / function calling?

Llama Guard 3 8B does not advertise first-class tool/function calling. Check vendor docs for the latest capabilities.

How do I access Llama Guard 3 8B?

Use the official Meta API with the model id `meta-llama/llama-guard-3-8b`. See the Quick start section above for code examples.