GLM 5.2
z-ai/glm-5.2GLM-5.2 is Z.ai's open-weight flagship text model released in June 2026 for long-horizon tasks, and the first GLM model to deliver that capability on a usable 1M-token context. Z.ai positions it for project-scale software engineering, deep debugging and full development workflows from requirements to deployable products, with steadier long-task execution and closer adherence to engineering standards. GLM-5.3 builds on the same base model with further post-training for coding.
Daha fazla oku- Girdi fiyatı
- $1.26
$1.40USD / 1M token - Çıktı fiyatı
- $3.96
$4.40USD / 1M token - Önbellek okuma
- $0.23
$0.26USD / 1M token - Bağlam penceresi
- 1M
- Maks. çıktı
- 32.8K
Teknik özellikler
- Girdi
- Metin
- Çıktı
- Metin
Bu model hakkında
GLM-5.2 is Z.ai's open-weight flagship text model released in June 2026 for long-horizon tasks, and the first GLM model to deliver that capability on a usable 1M-token context. Z.ai positions it for project-scale software engineering, deep debugging and full development workflows from requirements to deployable products, with steadier long-task execution and closer adherence to engineering standards. GLM-5.3 builds on the same base model with further post-training for coding.
Modeli deneyin
Oynatma Alanı
Bu modeli denemek için bir istem yazın. Kullanım, gösterilen fiyatlar üzerinden ücretlendirilir.
Bir istem deneyin
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.2",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Giriş Şeması
13 parametre · 1 zorunlu · 12 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. |
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: 32768 |
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. |
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
Z.ai GLM 5.2'i SandBase üzerinden nasıl çağırırım?
Bir SandBase API anahtarı oluşturun, ardından model kimliği "z-ai/glm-5.2" 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.2'in fiyatı nedir?
Mevcut %10 indirimle 1M giriş tokenı başına $1.26 ve 1M çıkış tokenı başına $3.96 (liste fiyatı $1.40 / $4.40), istek başına SandBase bakiyenizden tahsil edilir.
Z.ai GLM 5.2'in bağlam penceresi nedir?
1M token bağlam, yanıt başına en fazla 32.8K çıkış tokenı ile.
Z.ai GLM 5.2 hangi özellikleri destekliyor?
Z.ai GLM 5.2, 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.2 ve katalogdaki diğer modellere erişim sağlar; Z.ai için ayrıca kayıt olmanız gerekmez.
