Skip to main content

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 the standardized MLCommons hazards taxonomy and designed to support multimodal Llama 4 capabilities. Specifically, it combines features from previous Llama Guard models, providing content moderation for English and multiple supported languages, along with enhanced capabilities to handle mixed text-and-image prompts, including multiple images. Additionally, Llama Guard 4 is integrated into the Llama Moderations API, extending robust safety classification to text and images.

Input / output price
$0.18 / $0.18 per 1M
Context
164K tokens
Released
Apr 29, 2025
Agent setup

Paste into Claude Code, Cursor, or Codex

Help me set up the Respan gateway: fetch and follow https://www.respan.ai/docs/agent-setup.md. Use model "llama-guard-4-12b".

Read docs

Providers

One provider serves this model, priced per 1M tokens after gateway discounts.

ProviderInputOutput
OpenRouteropenrouter/llama-guard-4-12b
$0.18/M$0.18/M

Is a provider down? OpenRouter status

Pricing

USD per 1M tokens on OpenRouter, after gateway discounts.

Input
$0.18 per 1M
Output
$0.18 per 1M

Cost by volume

Total cost from 0 to 1T tokens.

$0.18/MOpenRouter

Throughput and latency

30-day averages from requests through the Respan gateway. Under each figure, every model on the gateway by its average, this one in blue.

Output speed

Higher is better

11tokens/sacross providers

Faster than 21% of the other 599 models on the gateway

Time to first token

Lower is better

0.3sacross providers

Faster than 98% of the other 152 models on the gateway

Response latency

Lower is better

0.2sacross providers

Faster than 96% of the other 780 models on the gateway

Apps

Use Llama Guard 4 12B in the tools you already run. Each guide points the app at the Respan gateway.

Setup guides for more apps are in the integration docs.

Llama Guard 4 12B FAQ

Short answers, built from the data on this page.

Llama Guard 4 12B is a model from Meta, released on Apr 29, 2025. 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 the standardized MLCommons hazards taxonomy and designed to support multimodal Llama 4 capabilities. Specifically, it combines features from previous Llama Guard models, providing content moderation for English and multiple supported languages, along with enhanced capabilities to handle mixed text-and-image prompts, including multiple images. Additionally, Llama Guard 4 is integrated into the Llama Moderations API, extending robust safety classification to text and images.

On the Respan gateway, Llama Guard 4 12B costs $0.18 per 1M input tokens and $0.18 per 1M output tokens on OpenRouter, after gateway discounts.

Llama Guard 4 12B is served by OpenRouter.

Llama Guard 4 12B accepts up to 164K tokens of context.

Point any OpenAI-compatible SDK at https://gateway.respan.ai/v1 with your Respan API key and set the model to "llama-guard-4-12b". To set it up with a coding agent, copy the agent setup prompt at the top of this page.

Certified where it counts.

Built to meet the security and privacy standards that enterprise and healthcare teams require.

ISO 27001

The internationally recognized standard for information security management.

SOC 2

Secure, compliant management of your data across all of our systems.

GDPR

Operated under GDPR, the world's strictest standard for data privacy.

HIPAA

HIPAA compliant, with a BAA available for healthcare teams.

Works with your entire stack

Use Respan with your favorite frameworks and tools.

AnthropicAI21 LabsxAIVercel AI SDK
LangChainOpenRouterAssemblyAICursor
LiteLLMGroqBasetenMem0
CohereCogneeLlamaIndexFireworks
DeepSeekLinkupHaystackTogether AI
PerplexityInference.netPostHogRubyLLM
SlackMastraAzure OpenAIMistral
AWS BedrockMoonshotHyperspellBAML
ModaInstructorGoogle GeminiParasail
ReductoZapierAgnoNebius
OpenAINovita AIReplicateSuperagent

Built for AI agents.
Break less.
Ship more.