Sulat.com
AI models
$10 off the fastest DeepSeek V4.1 Flash, Kimi K3 and GLM 5.3 from Synthetic
Groq logo

Model details

Llama Prompt Guard 2 22M

Llama Prompt Guard 2 22M is a compact classifier from Meta's Purple Llama initiative, designed to screen incoming text for prompt injection and jailbreak attempts before they reach a downstream LLM. Its small 22M-parameter footprint is the central design choice: by keeping the model tiny, it can run inline on every request with minimal added latency, and Groq positions it as a low-overhead guard layer that aims to cut latency and compute cost versus larger safety classifiers. Groq's documentation describes it as a specialized, real-time defense suited for production traffic where speed and predictability matter more than general reasoning ability.

In practical use, the model fits well as a first-pass filter in agentic or user-facing pipelines: classify the prompt, route clean traffic through the main LLM, and either rewrite or block suspicious inputs. Its narrow focus on prompt attacks, rather than broad content moderation, makes it a complementary building block rather than a standalone assistant. Pairing it with a larger reasoning model lets teams keep the heavyweight model shielded by a fast, cheap guard, which is the architecture Purple Llama and similar safety stacks increasingly recommend for LLM applications.

Groqmeta-llama/llama-prompt-guard-2-22mllamabeta

Quick Info

Powered by
Provider
Groq
Model key
meta-llama/llama-prompt-guard-2-22m
Release date
May 29, 2025
Last updated
May 29, 2025
Input modalities
Output modalities
Capabilities

Cost

Input token cost
$0.03
Output token cost
$0.03

Limits

Output tokens
512 tokens
Context window
512 tokens

Transparent token rates

Compare Llama Prompt Guard 2 22M pricing

Rates are shown per one million tokens. Combined means one million input plus one million output tokens.

Browse this family

Latest news about Llama Prompt Guard 2 22M

We haven't found any news about Llama Prompt Guard 2 22M yet. New models can take a few days to get coverage, so check back soon or look again now.

Videos about Llama Prompt Guard 2 22M

More models around Llama Prompt Guard 2 22M