Llama 3.1-based safety classifier for moderating prompts and model responsesLlama-Guard-3-8B by meta is offered by 3 providers on this page. No official API price is listed for it; the prices below come from third-party channels. The lowest paid channel is Eden AI at $0.055 / $0.055 per 1M. That channel is a third-party gateway, so confirm its availability and rate limits before depending on it. Prices vary about 8.8× across the providers that host it.
The context window is 131,072 tokens, with an output limit of 4,096 tokens. The weights are open, so it can also be self-hosted or served through a gateway of your choice. Its training knowledge cuts off at 2023-12.
| Provider | Tier | Input | Output | Cache read | Cache write | Context | Output limit | Status |
|---|---|---|---|---|---|---|---|---|
| Eden AI deepinfra/meta-llama/Llama-Guard-3-8B | Gateway | $0.055 | $0.055 | — | — | 131,072 | 4,096 | |
| Cloudflare Workers AI | Cloud | $0.48 | $0.03 | — | — | 131,072 | 131,072 | |
| Eden AI | Gateway | $0.48 | $0.03 | — | — | 131,072 | 4,096 |
Sorted by blended price (input×0.75 + output×0.25) asc. The official channel always shows regardless of rank. Whether a gateway's low price is actually usable can't be verified.