LlamaGuard 4 12B is Meta's language model with a 1.0M context window and up to 16K output tokens, available from 2 providers, starting at $0.18 / 1M input and $0.18 / 1M output. A natively multimodal 12B safety classifier pruned from Llama 4 Scout, trained jointly on text and multiple images for comprehensive content moderation.
Specifications
Canonical IDmeta-llamaguard-4-12b
TypeLanguage
StatusDeprecated
CreatorMetaMeta
Providers
Context Window1.0M tokens
Max Output16K tokens
Input ModalitiesImageText
Output ModalitiesText
Parameters12B
HuggingFace Likes90
HuggingFace Downloads (30d)79,129
HuggingFace Downloads (all-time)788,036
Release Date · 1 year ago
Knowledge Cutoff · 2 years ago
Deprecation Date

Capabilities

Input2/5
Text✓
Image✓
Audio·
Video·
PDF·
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities1/13
Reasoning·
Adaptive Reasoning·
Function Calling·
Parallel Function Calling·
Structured Outputs✓
Native JSON Schema·
Web Search·
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching·
Assistant Prefill·

Pricing by Provider

US Dollar ($)
Per 1M tokens
ProviderStandard
Input
$ / 1M
Output
$ / 1M
DeepInfra logo
DeepInfra
deepinfra/meta-llama/Llama-Guard-4-12B
$0.18$0.18
OpenRouter logo
OpenRouter
meta-llama/llama-guard-4-12b
$0.18$0.18

Cost Calculator

US Dollar ($)
Preset:

Cheapest Instances to Run It

Cloud GPU instances that can host LlamaGuard 4 12B, ranked by cheapest on-demand price. The model needs about 29 GB of GPU memory at FP16 precision (estimated from its parameter count), so treat the fit as guidance rather than a guarantee.

All clouds
FP16 (full precision)
US Dollar ($)
Instance
Cloud
GPU
VRAM
Price
Cheapest region
Standard_NV16as_v4AzureAMD Radeon Instinct MI2532 GB$0.932/hr
Standard_NP10sAzureAMD Alveo U250 FPGA (64GB)64 GB$1.65/hr
g6e.xlargeAWSL40S45 GB$1.86/hr
7 more instances can run LlamaGuard 4 12B
Unlock the full ranked list and FP8 / INT4 quantization with a CloudPrice subscription.

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
LlamaGuard 4 12B1.0M$0.180$0.180Current
Llama 4 Maverick1.0M$0.120$0.485Available
Llama 4 Scout1.3M$0.170$0.590Available

Model IDs

deepinfra/meta-llama/Llama-Guard-4-12B
groq/meta-llama/llama-guard-4-12b
meta-llama/llama-guard-4-12b
meta-llama/Llama-Guard-4-12B
meta-llamaguard-4-12b
openrouter/meta-llama/llama-guard-4-12b
together_ai/meta-llama/Llama-Guard-4-12B