meta-llama/llama-guard-4-12b
Veröffentlichungsdatum: 2025-04-30
163,840 context · $0.18/M input tokens · $0.18/M output tokens
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...
Pay-per-Use
Keine Vorabkosten, zahlen Sie nur, was Sie nutzen
Verwenden Sie die folgenden Codebeispiele zur Integration mit unserer API:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["WAVESPEED_API_KEY"],
base_url="https://llm.wavespeed.ai/v1",
timeout=120.0,
max_retries=2,
)
try:
response = client.chat.completions.create(
model="meta-llama/llama-guard-4-12b",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content or "")
except Exception as exc:
raise SystemExit(f"LLM request failed: {exc}") from excmeta-llama llama-guard-4-12b
| Specification | Value |
|---|---|
| Provider | Meta-Llama |
| Model Type | Large Language Model (LLM) |
| Architecture | N/A |
| Context Window | 163840 tokens |
| Max Output | 4096 tokens |
| Input | Text |
| Output | Text |
| Vision | Supported |
| Function Calling | Supported |
| Token Type | Cost per Million Tokens |
|---|---|
| Input | $0.2 |
| Output | $0.2 |
Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: meta-llama/llama-guard-4-12b
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://llm.wavespeed.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 https://llm.wavespeed.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!"}]
}'
meta-llama/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...
Eingabe
$0.18 /M
Ausgabe
$0.18 /M
Kontext
164K
Max. Ausgabe
4K
Vision
Unterstützt
Zugriff auf Llama Guard 4 12b über unsere einheitliche API — OpenAI-kompatibel, keine Kaltstarts, transparente Preise.
Preise auf WaveSpeedAI: $0.18 pro Million Input-Tokens und $0.18 pro Million Output-Tokens. Prompt-Caching und Batch-Verarbeitung werden separat berechnet und reduzieren die effektiven Kosten bei langen, sich wiederholenden Workloads.
Llama Guard 4 12b unterstützt bis zu 164K Kontext-Tokens und bis zu 4K Output-Tokens pro Anfrage.
WaveSpeedAI stellt Llama Guard 4 12b unter https://llm.wavespeed.ai/v1 über die OpenAI-kompatible Chat-Completions-Schnittstelle bereit. Bei den meisten OpenAI-SDK-Clients reichen Base-URL und API-Schlüssel; optionale Felder hängen vom Modell ab.
Melden Sie sich bei WaveSpeedAI an, erstellen Sie unter Access Keys einen API-Schlüssel und senden Sie eine Anfrage mit der oben gezeigten Modell-ID an https://llm.wavespeed.ai/v1/chat/completions. Verfügbarkeit, Fähigkeiten und Preise finden Sie im aktuellen Modellkatalog.