Llama Guard 4 12B
meta/llama-guard-4-12bLlama 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...
Teknik özellikler
- Girdi fiyatı
- $0.18USD / 1M token
- Çıktı fiyatı
- $0.18USD / 1M token
- Bağlam penceresi
- 163.8K
- Maks. çıktı
- 16.4K
- Modalities
- Metin, görselMetin
- Yayın
- 30 Nis 2025
- Sohbet: Destekleniyor
- Görsel: Destekleniyor
- Akıl yürütme: Desteklenmiyor
- Yapılandırılmış çıktı: Desteklenmiyor
- Fonksiyon çağırma: Desteklenmiyor
- Ses girdisi: Desteklenmiyor
Prices in USD / 1M token
Hızlı başlangıç
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['SANDBASE_API_KEY']}"}
payload = {
"model": "meta/llama-guard-4-12b",
"messages": [
{
"role": "user",
"content": "Hello",
},
],
"max_tokens": 2048,
}
response = requests.post(
"https://api.sandbase.ai/v1/chat/completions",
headers=headers,
json=payload,
)
response.raise_for_status()
print(response.json())Giriş fiyatına göre alternatifler
Modeli deneyin
Oynatma Alanı
Bu modeli denemek için bir istem yazın. Kullanım, gösterilen fiyatlar üzerinden ücretlendirilir.
Bir istem deneyin
Bir görsel ekleyin (isteğe bağlı)
Yanıtınız burada görünecek
Bir örnek seçin veya bir istem yazın, ardından Çalıştır'a tıklayın.
Geliştirmeye başlayın
İlk isteğinizi gönderin
Birleşik kimlik doğrulama ve kullanım takibi sunan OpenAI uyumlu uç nokta.
curl -X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "meta/llama-guard-4-12b",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Giriş Şeması
10 parametre · 1 zorunlu · 9 isteğe bağlı
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
messages | object[] | Zorunlu | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | İsteğe bağlı | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | İsteğe bağlı | Sequences where the model stops generating. The stop sequence is not included in the output. |
top_k | integer | İsteğe bağlı | Only sample from the k most likely next tokens. · Min: 0 |
top_p | number | İsteğe bağlı | Nucleus sampling: only tokens within this cumulative probability are considered. · Min: 0 · Maks: 1 |
stream | boolean | İsteğe bağlı | Stream the response as server-sent events instead of returning it in one piece. · Varsayılan: false |
max_tokens | integer | İsteğe bağlı | Maximum number of tokens to generate in the response. · Maks: 16384 |
temperature | number | İsteğe bağlı | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Maks: 2 · Varsayılan: 1 |
presence_penalty | number | İsteğe bağlı | Penalizes tokens that already appear at all, encouraging new topics. · Min: -2 · Maks: 2 |
frequency_penalty | number | İsteğe bağlı | Penalizes tokens by how often they already appear, reducing repetition. · Min: -2 · Maks: 2 |
Çıkış Şeması
| Alan | Tür | Açıklama |
|---|---|---|
id | string | Tamamlamanın benzersiz tanımlayıcısı |
object | string | Nesne türü, örn. "chat.completion" |
model | string | Tamamlamada kullanılan model |
choices | array | Tamamlama seçeneklerinin listesi |
choices[].message.content | string | Oluşturulan metin içeriği |
choices[].finish_reason | string | Oluşturmanın durmasının nedeni |
usage.prompt_tokens | integer | İstemdeki token sayısı |
usage.completion_tokens | integer | Tamamlamadaki token sayısı |
usage.total_tokens | integer | Kullanılan toplam token sayısı |
Sorular
SSS
Meta Llama Guard 4 12B'i SandBase üzerinden nasıl çağırırım?
Bir SandBase API anahtarı oluşturun, ardından model kimliği "meta/llama-guard-4-12b" ile https://api.sandbase.ai adresindeki Chat Completions API (/v1/chat/completions) uç noktalarına istek gönderin. Bu sayfadaki istek örnekleri tam yükü gösterir.
Meta Llama Guard 4 12B'in fiyatı nedir?
1M giriş tokenı başına $0.18 ve 1M çıkış tokenı başına $0.18, istek başına SandBase bakiyenizden tahsil edilir. Mevcut olduğunda indirimler bu sayfadaki fiyatlandırmada gösterilir.
Meta Llama Guard 4 12B'in bağlam penceresi nedir?
163.8K token bağlam, yanıt başına en fazla 16.4K çıkış tokenı ile.
Meta Llama Guard 4 12B hangi özellikleri destekliyor?
Meta Llama Guard 4 12B, görsel algılama (görüntü girişi) destekler. Tam liste için yukarıdaki Teknik Özellikler bölümüne bakın.
Ayrı bir Meta hesabına ihtiyacım var mı?
Hayır. Tek bir SandBase API anahtarı ve bakiyesi size Meta Llama Guard 4 12B ve katalogdaki diğer modellere erişim sağlar; Meta için ayrıca kayıt olmanız gerekmez.
