Llama Guard 4 12B

Llama Guard 4 is a Llama 4 Scout-derived multimodal pretrained model, fine-tuned for content safety classification. Similar to previous versions, it can be used to classify content in both LLM inputs (prompt classification) and in LLM responses (response classification). It acts as an LLM—generating text in its output that indicates whether a given prompt or response is safe or unsafe, and if unsafe, it also lists the content categories violated. Llama Guard 4 was aligned to safeguard against the standardized MLCommons hazards taxonomy and designed to support multimodal Llama 4 capabilities. Specifically, it combines features from previous Llama Guard models, providing content moderation for English and multiple supported languages, along with enhanced capabilities to handle mixed text-and-image prompts, including multiple images. Additionally, Llama Guard 4 is integrated into the Llama Moderations API, extending robust safety classification to text and images.

ChatMeta1M tokens$0.1962 / $0.1962 · 1M

meta-llama/llama-guard-4-12b

Contexto
1M tokens
Máx. completion
16,384
Tools
No
JSON
Lanzamiento
2025-04-30

Llámalo desde Geek Hub

El mismo SDK de OpenAI. Cambia el base URL y el id del modelo.

curl https://api.geekhub.mx/v1/chat/completions \
  -H "Authorization: Bearer $GEEKHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta-llama/llama-guard-4-12b",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Consigue tu API key

Preguntas frecuentes

¿Qué es Llama Guard 4 12B?
Llama Guard 4 is a Llama 4 Scout-derived multimodal pretrained model, fine-tuned for content safety classification. Similar to previous versions, it can be used to classify content in both LLM inputs (prompt classification) and in LLM responses (response classification). It acts as an LLM—generating text in its output that indicates whether a given prompt or response is safe or unsafe, and if unsafe, it also lists the content categories violated. Llama Guard 4 was aligned to safeguard against the standardized MLCommons hazards taxonomy and designed to support multimodal Llama 4 capabilities. Specifically, it combines features from previous Llama Guard models, providing content moderation for English and multiple supported languages, along with enhanced capabilities to handle mixed text-and-image prompts, including multiple images. Additionally, Llama Guard 4 is integrated into the Llama Moderations API, extending robust safety classification to text and images. Llama Guard 4 12B corre en el API de Geek Hub (compatible con OpenAI). Id: meta-llama/llama-guard-4-12b.
¿Llama Guard 4 12B es gratis?
No. El input cuesta $0.1962 / 1M tokens y el output $0.1962 / 1M tokens en Geek Hub (markup incluido).
¿Cuál es el contexto de Llama Guard 4 12B?
Llama Guard 4 12B tiene una ventana de 1M tokens. Soporta hasta 16,384 tokens de completion.
¿Llama Guard 4 12B soporta tool calling y structured outputs?
Llama Guard 4 12B no publica tool calling en este endpoint. También soporta structured outputs con un JSON schema en response_format.
¿Cuándo se lanzó Llama Guard 4 12B?
Llama Guard 4 12B se lanzó el 30 de abril de 2025.

Más modelos de Meta