Meta Llama Prompt Guard 2 22M
by Meta · Apr 29, 2025
Meta Llama Prompt Guard 2 22M is an open-weight chat llm from Meta, released Apr 29, 2025. It has a 512-token context window. API pricing starts at $0.01 per million input tokens and $0.01 per million output tokens. It is available from 3 API providers.
- Provider
- Meta
- Released
- Apr 29, 2025
- Type
- Chat LLM
- Parameters
- Undisclosed
- Context window
- 512 tokens
- Max output
- 2 tokens
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- —
- Knowledge cutoff
- Oct 2024
- Status
- Available via API
About Meta Llama Prompt Guard 2 22M
22M-parameter (DeBERTa-xsmall) English classifier that detects prompt injection and jailbreak attempts
Where to run Meta Llama Prompt Guard 2 22M — API providers & pricing
| Provider | Input $/1M | Output $/1M | Cached input | Context |
|---|---|---|---|---|
| Helicone | $0.01 | $0.01 | — | 512 |
| Groq | $0.03 | $0.03 | — | 512 |
| Eden AI | $0.03 | $0.03 | $0.015 | 512 |
Open weights: you can also run Meta Llama Prompt Guard 2 22M locally with Ollama, LM Studio, llama.cpp or vLLM.
Meta Llama Prompt Guard 2 22M vs alternatives
- Meta Llama Prompt Guard 2 22M vs Qwen3-4B-Instruct-2507
- Meta Llama Prompt Guard 2 22M vs Qwen3-VL-4B
- Meta Llama Prompt Guard 2 22M vs Deepseek OCR
- Meta Llama Prompt Guard 2 22M vs medgemma-4b-it
- Meta Llama Prompt Guard 2 22M vs t5gemma-2b-2b-ul2-it
- Meta Llama Prompt Guard 2 22M vs Janus-Pro-7B
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Qwen3-4B-Instruct-2507open | Alibaba (Qwen) | Aug 2025 | 4B | — | — | — | — |
| Qwen3-VL-4Bopen | Alibaba (Qwen) | Oct 2025 | 4.4B | — | — | — | — |
| Deepseek OCRopen | DeepSeek | Oct 2025 | 3.3B | — | — | — | — |
| medgemma-4b-itopen | Google DeepMind | May 2025 | 4.3B | — | — | — | — |
| t5gemma-2b-2b-ul2-itopen | Google DeepMind | Jun 2025 | 5.6B | — | — | — | — |
| Janus-Pro-7Bopen | DeepSeek | Jan 2025 | 7B | — | — | — | — |
| circuit-sparsityopen | OpenAI | Dec 2025 | 419M | — | — | — | — |
| SmolVLM2-500M-Video-Instructopen | Hugging Face | Feb 2025 | 507M | — | — | — | — |
More models from Meta
All Meta models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Muse Spark 1.3 Contributor | Sep 2026 | — | 1M | $0.1 | $0.2 |
| Llama-3.3-70B-Instructopen | Dec 2024 | 71B | 128K | $0.71 | $0.71 |
| Muse Spark Openopen | Oct 2026 | 816B | 1M | $1.25 | $4.25 |
| Muse Spark 1.2 | Aug 2026 | — | 1M | $0.1 | $0.2 |
| Muse Wonder | Oct 2026 | — | 1M | $4 | $20 |
| Muse Spark 1.1 | Apr 2026 | — | 1M | $1.25 | $4.25 |
| Llama 4 Maverickopen | Apr 2025 | 402B | 512K | $0.35 | $1 |
| Llama 4 Scoutopen | Apr 2025 | 109B | 320K | $0.1 | $0.3 |
Frequently asked questions
Who made Meta Llama Prompt Guard 2 22M?
Meta Llama Prompt Guard 2 22M was developed by Meta (United States). It was released on Apr 29, 2025.
What is the context window of Meta Llama Prompt Guard 2 22M?
Meta Llama Prompt Guard 2 22M supports a context window of 512 tokens (512) and can generate up to 2 output tokens per response.
How much does Meta Llama Prompt Guard 2 22M cost?
Meta Llama Prompt Guard 2 22M costs $0.01 per 1M input tokens and $0.01 per 1M output tokens. Prices vary across the 3 providers that serve it.
Is Meta Llama Prompt Guard 2 22M open source?
Yes. Meta Llama Prompt Guard 2 22M's weights are publicly available, so you can download and run it yourself.
Where can I use Meta Llama Prompt Guard 2 22M?
Meta Llama Prompt Guard 2 22M is available via 3 API providers, and you can also self-host it with tools like vLLM, Ollama or LM Studio.
Sources: models.dev. Last updated 2026-11-22.