Skip to content

Llama Prompt Guard 2 22M vs Gemma 3 4B IT

Llama Prompt Guard 2 22M is cheaper on output tokens, while Gemma 3 4B IT offers a larger context window. Choose Llama Prompt Guard 2 22M or Gemma 3 4B IT based on the trade-off between cost, context, and the benchmarks that matter for your use case.

SpecLlama Prompt Guard 2 22MGemma 3 4B IT
ProviderGroqKilo Gateway
Input / 1M tokens$0.03$0.04
Output / 1M tokens$0.03$0.05
Context window512131K
Parameters——
Open weightsYesYes
ReleasedMay 2025Mar 2025
LMArena (Chatbot Arena) Elo score—1291
GPQA Diamond score—23.2

FAQ

Is Llama Prompt Guard 2 22M or Gemma 3 4B IT cheaper?

Llama Prompt Guard 2 22M is cheaper on output tokens ($0.03 vs $0.05 per 1M).

Which has the larger context window, Llama Prompt Guard 2 22M or Gemma 3 4B IT?

Gemma 3 4B IT has the larger context window (131K tokens).

Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.