Meta: 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...
This model is available through the OpenSIAI OpenAI-compatible API for chat completions and compatible application workflows.
Why It Looks Great
- text+image->text architecture for Image, Text to Text workloads
- 163840 context window for long prompts, document analysis, and multi-turn workflows
- Vision input support for image understanding and multimodal tasks
Key Features
- Context Window: 163840 tokens
- Max Input: 147456 tokens
- Max Output: 16384 tokens
- Vision: Supported
- Function Calling: Not listed
- Structured Outputs: Not listed
- Image Generation: Not listed
- Audio Input: Not listed
- Supported Parameters: frequency_penalty, logit_bias, max_tokens, min_p, presence_penalty, repetition_penalty, seed, stop, temperature, top_k, top_p
Specifications
| Specification | Value |
|---|---|
| Provider | meta |
| Model Type | Chat Completions model |
| Architecture | text+image->text |
| Context Window | 163840 tokens |
| Max Input | 147456 tokens |
| Max Output | 16384 tokens |
| Input | Image, Text |
| Output | Text |
| Vision | Supported |
| Function Calling | Not listed |
| Structured Outputs | Not listed |
| Release Date | April 30, 2025 |
How to Use
- Write your prompt - describe the task, provide context, and specify the desired output format.
- Submit - the model processes your request and returns the response.
API Integration
Base URL: https://llm.opensi.com.ai/v1 API Endpoint: chat/completions Model ID: meta-llama/llama-guard-4-12b
API Usage
Python SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://llm.opensi.com.ai/v1"
)
response = client.chat.completions.create(
model="meta-llama/llama-guard-4-12b",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)cURL
curl https://llm.opensi.com.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "meta-llama/llama-guard-4-12b",
"messages": [{"role": "user", "content": "Hello!"}]
}'Notes
- Model: meta-llama/llama-guard-4-12b
- Provider: meta