Llama Prompt Guard 2 22M is Meta's language model with a 512 context window and up to 512 output tokens, starting at $0.03 / 1M input and $0.03 / 1M output. A lightweight 22M-parameter classifier from Meta's Llama Prompt Guard 2 series, designed to detect prompt injection and jailbreak attempts in LLM inputs.
Capabilities
Input1/5
Text✓
Image·
Audio·
Video·
PDF·
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities0/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
| Provider | Standard | |
|---|---|---|
| Input $ / 1M | Output $ / 1M | |
| $0.03 | $0.03 | |
Cost Calculator
US Dollar ($)
Preset:
Cheapest Instances to Run It
Cloud GPU instances that can host Llama Prompt Guard 2 22M, ranked by cheapest on-demand price. The model needs about 0 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 | |
|---|---|---|---|---|---|---|
| g6f.large | L4 | 3 GB | $0.202/hr | |||
| Standard_NV4as_v4 | AMD Radeon Instinct MI25 | 16 GB | $0.233/hr | |||
| g6f.xlarge | L4 | 3 GB | $0.237/hr | |||
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| Llama Prompt Guard 2 22M | — | 512 | $0.030 | $0.030 | Current |
| Llama Prompt Guard 2 86M | — | 512 | $0.040 | $0.040 | Available |
| Llama Prompt Guard 86M | — | — | — | — | Available |