Llama Guard 2 (8B) API

Llama-based 8B model for safe LLM content classification
Output

How to use Llama Guard 2 (8B) API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to .

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Llama Guard 2 (8B) API Pricing

TypePrice
Input
Output

Frequently asked questions

Yes, Llama Guard 2 (8B) can stream responses as they are generated.

Yes, Llama Guard 2 (8B) supports both function calling and structured outputs.

Llama Guard 2 (8B) was built by Meta.

Llama Guard 2 (8B) is available via the v1 endpoint.

Start building with Llama Guard 2 (8B)

Get API Key
1000+ models, one API.