Last refreshed 2026-07-09. Next refresh: weekly.
Why use Llama Prompt Guard 2 22M on GroqCloud?
GroqCloud offers Llama Prompt Guard 2 22M with pay-as-you-go pricing at $0.03/1M input tokens. Groq is a company specializing in AI inference technology, particularly with their flagship product, the Language Processing Unit (LPU™).
Input / 1M
$0.030
Output / 1M
$0.030
Cache
Not sourced
Batch
Not sourced
Setup recipe
Docs fallbackInstall
Use the provider REST API or SDKAuth
Create a provider API keyCall
model: meta-llama/llama-prompt-guard-2-22mModel ID
meta-llama/llama-prompt-guard-2-22mRequest example
Curated snippets for this provider are not sourced yet. Use GroqCloud documentation with model ID
meta-llama/llama-prompt-guard-2-22m.Gotchas
- Use provider model ID "meta-llama/llama-prompt-guard-2-22m", not the LLMReference slug "llama-prompt-guard-2-22m".
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.03 |
| Output tokens | $0.03 |
Capabilities
Structured Outputs
About Llama Prompt Guard 2 22M
Lightweight prompt injection and jailbreak detection classifier from Meta. 22M parameter variant optimized for low-latency content moderation with 512 token context.
Get Started
Model Specs
Released2025-04-29
Parameters22M
Context512
ArchitectureDecoder Only