Meta Llama · LLM API pricing
Llama Guard 4 12B API pricing: cheapest provider
2 providers sell Llama Guard 4 12B. DeepInfra is cheapest; the most expensive charges 1.1× as much for the same model.
- Cheapest$0.18per 1M · DeepInfra
- Input · output$0.18 / $0.18per 1M tokens
- Price gap1.1×across 2 providers
- Context164Kmax tokens
Standard list prices in USD from each provider's pricing page · last price change Nov 12, 2026 · How we collect and rank prices
Ranked for your volume
Llama Guard 4 12B monthly cost by provider
Change the monthly tokens and the ranking updates instantly, using each provider's standard list price.
More requirements: caching, context, features, provider
Cheapest provider for your volume
DeepInfra
2 options · most expensive $8.00, 1.1× this price
| Provider | Estimated / month | Input / 1M | Output / 1M | Context |
|---|---|---|---|---|
1 | $7.20 | $0.18 | $0.18 | 164K |
2 | $8.00 | $0.20 | $0.20 | Not listed |
Order depends on listed price for your volume only. No provider pays for its position.
What this estimate leaves out
Input volume includes the cached share, not an additional token volume. This is a list-price estimate, not a quote: cache-write charges, cache eligibility/TTL, batch discounts, long-context surcharges, regional pricing and taxes are excluded. Check the provider's terms for your workload before switching.
Price history
The cheapest price has not changed since tracking started on Sep 28, 2026: $0.18 per 1M tokens at DeepInfra. All price changes
Switch to the cheapest provider
Already using the OpenAI SDK? Change the base URL, key and model name.
Show the code
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.deepinfra.com/v1/openai",
api_key=os.environ["DEEPINFRA_API_KEY"],
)
response = client.chat.completions.create(
model="meta-llama/Llama-Guard-4-12B",
messages=[{"role": "user", "content": "Hello"}],
)Compare Llama Guard 4 12B with another model
Or compare against any other model
Keep comparing
More Meta Llama models
Llama-3.3-70B-Instruct, Llama-3.1-8B-Instruct, Llama 4 Scout 17B 16E Instruct, Llama 4 Maverick 17B 128E Instruct FP8, llama-3.1-70b-instruct, llama-3.2-3b-instruct, Llama 3.2 1B Instruct, llama-3.1-405b-instruct