← All news

News / AI models / Meta

Llama Guard 4 12B

Llama Guard 4 12B is an open-weight model by Meta, released 30 Apr 2025. It reads image, text and writes text, with a context window of 164K tokens and up to 16K tokens out. Through OpenRouter it costs $0.18 per million input tokens and $0.18 per million output tokens.

Facts from OpenRouter and Hugging Face · updated 24 Nov 2026

1,000 requests with 2,000 tokens in and 500 tokens out each cost about $0.45 through OpenRouter.

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

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

Llama Guard 4 12B has a context window of 163,840 tokens, about 246 pages of text, and can write up to 16,384 tokens in one reply.

How much does Llama Guard 4 12B cost?

Through OpenRouter, $0.18 per million input tokens and $0.18 per million output tokens. The maker's own price can differ.

Is Llama Guard 4 12B open source?

Yes, its weights are published on Hugging Face as meta-llama/Llama-Guard-4-12B.

When was Llama Guard 4 12B released?

It became available on 30 Apr 2025.

Something wrong? Email hello@capylaunch.com. All AI models