LLM
API GLM-5.3, da provare gratis
Nessuna carta di credito · Crediti gratuiti validi 30 giorni · Poi ricarichi il saldo e paghi a consumo, senza abbonamento
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.
Casi d’uso di GLM-5.3
Prezzi dell’API GLM-5.3
| Token | Prezzo per 1M | Con $5 |
|---|---|---|
| Input (testo) | 1,54 $ | ≈ 3,2M di token |
| Input in cache (prefisso del prompt ripetuto) | 0,308 $ | ≈ 16M di token |
| Output (risposta e ragionamento) | 4,84 $ | ≈ 1,0M di token |
| Domanda sui log in cima alla pagina, una chiamata | 0,00064 $ | ≈ 7.700 chiamate |
| Da riga di log a JSON (esempio Python), una chiamata | 0,00025 $ | ≈ 19.000 chiamate |
GLM-5.3 vs GLM-5.3 Flash vs Kimi K3
| GLM-5.3 | GLM-5.3 Flash | Kimi K3 | |
|---|---|---|---|
| Input | Testo | Testo, immagini | Testo, immagini |
| Contesto | 1.000.000 token | 1.048.576 token | 1.000.000 token |
| Output massimo | 131.072 token | 131.072 token | 131.072 token |
reasoning_effort |
low, high, max | da none a max, 7 valori; ragiona anche con none | da none a max, 7 livelli |
response_format |
json_object |
json_schema, json_object |
json_schema, json_object |
| Prezzo per 1M, input / output | 1,54 $ / 4,84 $ | 0,165 $ / 0,55 $ | 3,30 $ / 16,50 $ |
Esempio di API GLM-5.3
- ID modello
- Endpoint
- Input
- Contesto e output
- Ragionamento
- Opzioni di 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)
Cos’è GLM-5.3?
-
Crea un account gratuito
-
Punta il tuo client a deAPI
-
Invia la richiesta
FAQ su GLM-5.3
Invia la tua prima richiesta a GLM-5.3 con $5 di crediti gratis
Registrati con email o Google. Paghi a consumo, senza abbonamento.