aiapicompareaiapicompare
aiapicompare › All models › Llama Guard 4 12B

Llama Guard 4 12B: API pricing compared

Llama Guard 4 12B is available from 2 provider(s). Cheapest: DeepInfra at $0.180 per 1M input tokens and $0.180 per 1M output tokens. Context window: up to 163 840 tokens. Developer: Meta.

ProviderInput $/1MOutput $/1MContext
DeepInfra
meta-llama/Llama-Guard-4-12B
$0.180$0.180164KGo to provider ↗ Set up
OpenRouter
meta-llama/llama-guard-4-12b
$0.180$0.180164KGo to provider ↗ Set up

Sorted by price only – there are no paid placements. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.

Reference price: $0.180 / $0.180 per 1M tokens (input / output), OpenRouter · How we compare → · Wrong price? Report it

Price history (cheapest provider)

Price history is recorded daily – the chart appears after the first price change.

Quick start with DeepInfra

from openai import OpenAI
import os

client = OpenAI(base_url="https://api.deepinfra.com/v1/openai", api_key=os.environ["DEEPINFRA_API_KEY"])
r = client.chat.completions.create(
    model="meta-llama/Llama-Guard-4-12B",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)

FAQ

Where is Llama Guard 4 12B cheapest?

Currently at DeepInfra ($0.180 / 1M). Prices are updated daily; the provider’s website is authoritative.

How do I use Llama Guard 4 12B in my tools?

All listed providers offer an OpenAI-compatible API. See the setup guide for Hermes Agent, VS Code, Cursor and more.

More models from Meta

Llama 3.3 70B InstructMuse Spark 1.3Muse Glimmer 30BMuse WonderLlama 3.2 3B InstructMuse Spark 1.2Llama 4 MaverickMuse Spark OpenLlama 3.1 8B InstructMuse Spark 1.3 ContributorMuse Spark 1.1Llama 4 Scout