Input / output, USD per 1M tokens. Arrow keys move, Enter opens.

Llama Prompt Guard 2 22M from Meta: $0.03 input and $0.03 output per 1M tokens, 512 context. 22M-parameter (DeBERTa-xsmall) English classifier that detects prompt injection and jailbreak attempts Data last refreshed Nov 30, 2026, 07:15 AM UTC.

Models / Meta / Llama Prompt Guard 2 22M

Meta · llama-prompt-guard

Llama Prompt Guard 2 22M

22M-parameter (DeBERTa-xsmall) English classifier that detects prompt injection and jailbreak attempts

$0.03 in · $0.03 out

per 1M tokens · provider rate closest to the median. No first-party Meta price was listed. The reference price is Eden AI's rate, the provider closest to the median.

Context
512
Max output
512
Cache read
$0.015
Cache write
—
Reasoning
No
Tool calls
No
Structured output
Unknown
Vision
No
Open weights
Yes
License
Llama 4 Community License
Released
Apr 29, 2025
Updated in source
Apr 29, 2025
Knowledge
—
Providers
3

Hugging Face weights

What this model costs per month

Prices are USD per 1M tokens. A month is 30 days. Cache hits use the cache-read rate when the model has one; otherwise the cache field is ignored.

monthly = requests/day × 30 × (input tokens × (1 − cache hit) × input price + input tokens × cache hit × cache-read price + output tokens × output price) ÷ 1,000,000

Providers

Base rates from Models.dev. One row per provider.
ProviderInputOutputCache readCache writeStatus
Helicone$0.01$0.01———
Eden AIreference$0.03$0.03$0.015——
Groq$0.03$0.03——beta