LiteLLMLiteLLM/ MODELS

Llama Prompt Guard 2 22M API Pricing

By Meta · 1 providergroq/meta-llama/llama-prompt-guard-2-22mCompare
Input / output
$0.03 / $0.03 per 1M tokens
Context
512 tokens
Max output
512 tokens

As of November 24, 2026, Llama Prompt Guard 2 22M costs $0.03 per 1M input tokens and $0.03 per 1M output tokens on Groq. It has a 512-token context window and returns up to 512 tokens per response.

Prices updated Checked

Llama Prompt Guard 2 22M pricing by provider

1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Llama Prompt Guard 2 22M prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputContext
Groqgroq/meta-llama/llama-prompt-guard-2-22m$0.03$0.03512

What Llama Prompt Guard 2 22M costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Groq$0.075

Llama Prompt Guard 2 22M cost calculator

At Groq's price ($0.03 input, $0.03 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $0.45 a day, about $13.50 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.000045
Per day
$0.45
Per month (30 days)
$13.50

Llama Prompt Guard 2 22M features

Input: text. Output: text.

Use Llama Prompt Guard 2 22M with LiteLLM

Call Llama Prompt Guard 2 22M through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="groq/meta-llama/llama-prompt-guard-2-22m",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: llama-prompt-guard-2-22m
    litellm_params:
      model: groq/meta-llama/llama-prompt-guard-2-22m
      api_key: os.environ/GROQ_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{
    "model": "llama-prompt-guard-2-22m",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Llama Prompt Guard 2 22M FAQ

How much does Llama Prompt Guard 2 22M cost?

Llama Prompt Guard 2 22M costs $0.03 per 1M input tokens and $0.03 per 1M output tokens on Groq.

What is the context window of Llama Prompt Guard 2 22M?

Llama Prompt Guard 2 22M has a 512-token context window and returns up to 512 tokens per response.

Which providers offer Llama Prompt Guard 2 22M?

Llama Prompt Guard 2 22M is available from Groq through LiteLLM, using the model name groq/meta-llama/llama-prompt-guard-2-22m.

How do I call Llama Prompt Guard 2 22M with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="groq/meta-llama/llama-prompt-guard-2-22m", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

When did LiteLLM add Llama Prompt Guard 2 22M?

Llama Prompt Guard 2 22M was added to LiteLLM's model price file on August 13, 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: Groq.

Provider pages: Groq.