LLM
GLM-5.3 API, coba gratis
Tanpa kartu kredit · Kredit gratis berlaku 30 hari · Setelah itu isi saldo dan bayar sesuai pemakaian, tanpa langganan
model: "glm-5.3"
reasoning_effort: "high"
system: You are an on-call SRE. Name the root cause in at most two sentences, then give a one-line fix. Plain text, no Markdown.
Logins return 500 since 09:12. What is the root cause?
09:12:01 INFO api GET /reports/418 200 41ms
09:12:07 WARN redis OOM command not allowed when used memory > 'maxmemory'
09:12:07 ERROR api POST /login 500 SessionStoreError: could not save session
09:12:08 ERROR api POST /login 500 SessionStoreError: could not save session
09:12:09 INFO api GET /health 200 2ms
Root cause: Redis hit its maxmemory limit at 09:12:07 and started rejecting writes (OOM command not allowed), so the login endpoint can no longer save sessions, causing 500 errors.
Fix: Free up or raise Redis memory (e.g., flush stale keys / increase maxmemory or set an eviction policy like allkeys-lru), then restart or re-enable writes.
Kasus penggunaan GLM-5.3
Harga GLM-5.3 API
| Token | Harga per 1 juta | Untuk $5 |
|---|---|---|
| Input (teks) | $1,54 | ≈ 3,2 juta token |
| Input ter-cache (awalan prompt yang berulang) | $0,308 | ≈ 16 juta token |
| Output (jawaban dan reasoning) | $4,84 | ≈ 1,0 juta token |
| Pertanyaan log di hero, satu panggilan | $0,00064 | ≈ 7.700 panggilan |
| Baris log ke JSON (contoh Python), satu panggilan | $0,00025 | ≈ 19.000 panggilan |
GLM-5.3 vs GLM-5.3 Flash vs Kimi K3
| GLM-5.3 | GLM-5.3 Flash | Kimi K3 | |
|---|---|---|---|
| Input | Teks | Teks, gambar | Teks, gambar |
| Konteks | 1.000.000 token | 1.048.576 token | 1.000.000 token |
| Output maks. | 131.072 token | 131.072 token | 131.072 token |
reasoning_effort |
low, high, max | none sampai max, 7 nilai; tetap bernalar pada none | none sampai max, 7 tingkat |
response_format |
json_object |
json_schema, json_object |
json_schema, json_object |
| Harga per 1 juta, input / output | $1,54 / $4,84 | $0,165 / $0,55 | $3,30 / $16,50 |
Contoh API GLM-5.3
- Model ID
- Endpoint
- Input
- Konteks dan output
- Reasoning
- Opsi output
curl https://oai.deapi.ai/v1/chat/completions \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "glm-5.3",
"reasoning_effort": "low",
"messages": [
{"role": "system", "content": "Sort support tickets. Reply with one word: billing, bug, feature or other."},
{"role": "user", "content": "I was charged twice for the November top-up."}
]
}'
import json
from openai import OpenAI
client = OpenAI(base_url="https://oai.deapi.ai/v1", api_key="YOUR_API_KEY")
log_line = "09:12:07 ERROR api POST /login 500 SessionStoreError: could not save session"
response = client.chat.completions.create(
model="glm-5.3",
reasoning_effort="low",
messages=[
{"role": "system", "content": "Read the log line. Reply with a JSON object "
"with exactly these keys: service (string), level (string), "
"status (number), error (string)."},
{"role": "user", "content": log_line},
],
response_format={"type": "json_object"},
)
entry = json.loads(response.choices[0].message.content)
print(entry["service"], entry["level"], entry["status"]) # api ERROR 500
print(entry["error"]) # SessionStoreError: could not save session
print(response.usage)
Apa itu GLM-5.3?
-
Buat akun gratis
-
Arahkan client Anda ke deAPI
-
Kirim request
FAQ GLM-5.3
Kirim request GLM-5.3 pertama Anda dengan kredit gratis $5
Daftar dengan email atau Google. Tanpa langganan, bayar sesuai pemakaian.