Skip to content
Rapid Router
← All models

Llama Guard 4 12B

meta-llama/llama-guard-4-12b

Meta model · Served by DeepInfra · live on the gateway · :free available

Input / 1M
$0.180
Output / 1M
$0.180
Context
164K tokens
Max output
16K tokens
Input
Image, Text
Released
1y ago

Pricing

Input tokens$0.180 per 1M
Output tokens$0.180 per 1M
Provider list priceExactly what your balance is debited; our fee is charged when you buy credits

About Llama Guard 4 12B

Safety model for policy screening, moderation, and risk-aware routing workflows

Vision

What it supports

  • Tool calling (function calling)
  • JSON mode and structured output
  • Image input (vision)
  • Audio input
  • Extended reasoning
  • Streaming responses
  • OpenAI SDK, Anthropic SDK and any OpenAI-compatible client

Make a request

curl https://rapidrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $RAPIDROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta-llama/llama-guard-4-12b",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'

Frequently asked

How do I call Llama Guard 4 12B through an OpenAI-compatible API?

Point any OpenAI-compatible client at https://rapidrouter.ai/api/v1 with a Rapid Router API key and set the model to meta-llama/llama-guard-4-12b. The chat completions endpoint is https://rapidrouter.ai/api/v1/chat/completions.

What is the context window of Llama Guard 4 12B?

Llama Guard 4 12B has a context window of 163,840 tokens on Rapid Router, and returns up to 16,384 output tokens per reply.

Is there a free version of Llama Guard 4 12B?

Yes. Call meta-llama/llama-guard-4-12b:free and the request is paid for from Rapid Router's sponsored daily pool, within the free tier's daily request limit.

What can Llama Guard 4 12B do?

On Rapid Router, Llama Guard 4 12B supports image input.

More Llama models