GLM 5.4
z-ai/glm-5.4GLM-5.4 is Z.ai's flagship model for complex software engineering, long-horizon agent work and code-driven tasks such as game building, video editing and 3D modeling. It is the first GLM built on a Loop Transformer, which runs 28 shared layers of the GLM-5 base model twice to reason more deeply without adding parameters. It always runs with reasoning enabled, accepts text, image, video and file input, and supports a 1M-token context window with up to 128K output tokens.
Teknik özellikler
- Girdi fiyatı
- $1.40USD / 1M token
- Çıktı fiyatı
- $4.40USD / 1M token
- Önbellek okuma
- $0.26USD / 1M token
- Bağlam penceresi
- 1M
- Maks. çıktı
- 128K
- Modalities
- Metin, görselMetin
- Yayın
- 23 Kas 2026
- Yeni
- Sohbet: Destekleniyor
- Görsel: Destekleniyor
- Akıl yürütme: Destekleniyor
- Yapılandırılmış çıktı: Destekleniyor
- Fonksiyon çağırma: Destekleniyor
- 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": "z-ai/glm-5.4",
"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())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": "z-ai/glm-5.4",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Giriş Şeması
9 parametre · 1 zorunlu · 8 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. |
tools | array | İsteğe bağlı | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
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: 128000 |
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 |
tool_choice | string | İsteğe bağlı | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | İsteğe bağlı | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Çı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
Z.ai GLM 5.4'i SandBase üzerinden nasıl çağırırım?
Bir SandBase API anahtarı oluşturun, ardından model kimliği "z-ai/glm-5.4" 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.
Z.ai GLM 5.4'in fiyatı nedir?
1M giriş tokenı başına $1.40 ve 1M çıkış tokenı başına $4.40, istek başına SandBase bakiyenizden tahsil edilir. Mevcut olduğunda indirimler bu sayfadaki fiyatlandırmada gösterilir.
Z.ai GLM 5.4'in bağlam penceresi nedir?
1M token bağlam, yanıt başına en fazla 128K çıkış tokenı ile.
Z.ai GLM 5.4 hangi özellikleri destekliyor?
Z.ai GLM 5.4, görsel algılama (görüntü girişi), akıl yürütme, fonksiyon çağrısı, yapılandırılmış çıktı destekler. Tam liste için yukarıdaki Teknik Özellikler bölümüne bakın.
Ayrı bir Z.ai hesabına ihtiyacım var mı?
Hayır. Tek bir SandBase API anahtarı ve bakiyesi size Z.ai GLM 5.4 ve katalogdaki diğer modellere erişim sağlar; Z.ai için ayrıca kayıt olmanız gerekmez.
