LLM
GLM-5.3 API, wypróbuj za darmo
Bez karty kredytowej · Darmowe kredyty są ważne 30 dni · Potem doładowujesz konto i płacisz za użycie, bez abonamentu
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.
Zastosowania GLM-5.3
Cennik GLM-5.3 API
| Tokeny | Cena za 1 mln | Za 5 $ |
|---|---|---|
| Wejście (tekst) | 1,54 $ | ≈ 3,2 mln tokenów |
| Wejście z cache (powtórzony początek promptu) | 0,308 $ | ≈ 16 mln tokenów |
| Wyjście (odpowiedź i rozumowanie) | 4,84 $ | ≈ 1,0 mln tokenów |
| Pytanie o logi z góry strony, jedno wywołanie | 0,00064 $ | ≈ 7 700 wywołań |
| Linia logu do JSON (przykład w Pythonie), jedno wywołanie | 0,00025 $ | ≈ 19 000 wywołań |
GLM-5.3 vs GLM-5.3 Flash vs Kimi K3
| GLM-5.3 | GLM-5.3 Flash | Kimi K3 | |
|---|---|---|---|
| Wejście | Tekst | Tekst, obraz | Tekst, obraz |
| Kontekst | 1 000 000 tokenów | 1 048 576 tokenów | 1 000 000 tokenów |
| Maks. wyjście | 131 072 tokeny | 131 072 tokeny | 131 072 tokeny |
reasoning_effort |
low, high, max | od none do max, 7 wartości; rozumuje nawet przy none | od none do max, 7 poziomów |
response_format |
json_object |
json_schema, json_object |
json_schema, json_object |
| Cena za 1 mln, wejście / wyjście | 1,54 $ / 4,84 $ | 0,165 $ / 0,55 $ | 3,30 $ / 16,50 $ |
Przykładowe zapytanie do API GLM-5.3
- Identyfikator modelu
- Endpoint
- Wejście
- Kontekst i wyjście
- Rozumowanie
- Opcje wyniku
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)
Czym jest GLM-5.3?
-
Załóż darmowe konto
-
Skieruj klienta na deAPI
-
Wyślij zapytanie
GLM-5.3: najczęstsze pytania
Wyślij pierwsze zapytanie do GLM-5.3 za darmowe 5 $
Rejestracja przez e-mail albo Google. Bez abonamentu, płacisz za użycie.