Skip to content

Llama Prompt Guard 2 22M on Groq

Groq (GroqCloud) Free API tier

The catch: Only 8K tokens a minute on the chat models (far below their 131K context), and the free list is down to 10 models. Groq may log inputs and outputs for up to 30 days for reliability or abuse checks unless you turn on Zero Data Retention.

AccessFree API tier
Free limitsPreview prompt-injection classifier; Free Plan limits are 30 requests a minute, 14,400 a day, 15,000 tokens a minute and 500,000 tokens a day.
Modalitytext
Credit cardNot required
Commercial useAllowed
Trains on your dataNo
Licence or termsGroq Services Agreement (last modified 22 Jun 2026)
Context window512 tokens
Model idmeta-llama/llama-prompt-guard-2-22m
Base URLhttps://api.groq.com/openai/v1
Last checked8 Oct 2026

How to use Llama Prompt Guard 2 22M

It speaks the OpenAI API at https://api.groq.com/openai/v1, so the OpenAI SDK you already use works once you change the base URL and key.

Quickstart
curl https://api.groq.com/openai/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $GROQ_API_KEY" -d '{"model":"meta-llama/llama-prompt-guard-2-22m","messages":[{"role":"user","content":"Hello"}]}'
Paste into Claude Code
I want to use the free AI model "Llama Prompt Guard 2 22M" from Groq (model id: meta-llama/llama-prompt-guard-2-22m) in my project.
Please:
1. Check the provider docs and give me the exact steps to get a free API key.
2. Give me a minimal working example that reads the key from an environment variable.
3. Tell me the real free limits and any catch (commercial use, card, data use). Listed limits: 30 RPM · 14.4K RPD · 15K TPM · 500K TPD.
4. If the same provider has a more generous free option, mention it.

Before you ship on it

  • Only 8K tokens a minute on the chat models (far below their 131K context), and the free list is down to 10 models. Groq may log inputs and outputs for up to 30 days for reliability or abuse checks unless you turn on Zero Data Retention.
  • The Groq Services Agreement (last modified 22 Jun 2026) covers GroqCloud 'for developers, businesses, or enterprise organizations' and says the services 'are not for consumer use'. No free-plan limit on commercial use;…
  • Free tiers are shared capacity: treat the limits as a ceiling, not a promise, and keep a paid fallback.

Questions

Is Llama Prompt Guard 2 22M on Groq free?

Yes. Groq offers it as free api tier, with these limits: 30 RPM · 14.4K RPD · 15K TPM · 500K TPD. No credit card is needed.

Can I use Llama Prompt Guard 2 22M on Groq commercially?

Yes, under Groq Services Agreement (last modified 22 Jun 2026). Check the current terms before you ship.

How do I start with Llama Prompt Guard 2 22M on Groq?

It speaks the OpenAI API at https://api.groq.com/openai/v1, so the OpenAI SDK you already use works once you change the base URL and key.

Source: console.groq.com/docs/rate-limits, checked 8 Oct 2026.