Models / MetaLlama / / Llama Guard 4 12B API
Llama Guard 4 12B API
Moderation
Multimodal safety model from Llama 4 Scout, classifying text and images for safe LLM prompts and responses.
Read our tutorial

New
To use this moderation model, please follow the instructions from our blog post.
Llama Guard 4 12B API Usage
Endpoint
meta-llama/Llama-Guard-4-12B
RUN INFERENCE
RUN INFERENCE
RUN INFERENCE
How to use Llama Guard 4 12B
1. Use Llama Guard as a standalone classifier
Use this code snippet in your command line to run inference on Llama Guard 4 12B:
2. Use Llama Guard as a filter to safeguard responses from 200+ models
Use this code snippet in your command line to run inference of any of our 200+ models together with Llama Guard (the only change is adding the safety_model parameter):