Llama Guard 4 12B API pricing

3 providers serve Llama Guard 4 12B. Llama Guard 4 12B is a proprietary API model, up to 1049K context. Prices below are per 1M tokens, cheapest input first.

Refreshed 2026-08-23 · list prices from provider APIs
Input floor $0.180/1M at DeepInfra and OpenRouter Output floor $0.180/1M at DeepInfra and OpenRouter Find your workload winner →
Provider Input $/1M Output $/1M Cache read $/1M Context
DeepInfra $0.180 $0.180output floor - 164K Use
OpenRouter marketplace quote $0.180 $0.180 - 1049K Use
Groq $0.200 $0.200 - 8K Use

The cheapest way to run Llama Guard 4 12B

On an illustrative 70M-input / 30M-output monthly workload, today's lowest listed cost is roughly $18.00/month — the same at DeepInfra and OpenRouter. Input-heavy, output-heavy and cache-heavy workloads can produce different winners. Use the live mix calculator below rather than combining floors from two different providers. It is API-only, so the table above is your full set of options. Run your own numbers in the breakeven calculator, or read the breakeven math.

Your actual monthly cost

Uses today's list prices

Cache read uses the listed cache rate where available; otherwise it falls back to normal input price. Batch, write-cache, volume and negotiated discounts are excluded.

Related models

ModelCheapest in $/1MCheapest out $/1MProviders
Llama 3.3 70B $0.100 $0.200 15
Llama 3.1 8B $0.020 $0.030 15
Llama 4 Scout $0.050 $0.100 11
Llama 3.1 70B Instruct $0.120 $0.300 10
Llama 4 Maverick $0.050 $0.100 9
Llama 3.2 3B $0.020 $0.020 9

FAQ

What is the cheapest API for Llama Guard 4 12B?

As of 2026-08-23, the lowest input price for Llama Guard 4 12B, $0.180 per 1M tokens, is the same list price at DeepInfra and OpenRouter. The lowest output price, $0.180 per 1M tokens, is likewise shared by the same providers. The cheapest provider for a real workload depends on its input/output mix. The next-lowest input price is Groq at $0.200, a 11% difference.

← All models · GPU rental prices · Breakeven calculator · Get this data as JSON