LLM
API GLM-5.3, à essayer gratuitement
Sans carte bancaire · Crédits offerts valables 30 jours · Ensuite, vous rechargez et payez à l’usage, sans abonnement
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.
Cas d’usage de GLM-5.3
Tarifs de l’API GLM-5.3
| Tokens | Prix par million | Pour 5 $ |
|---|---|---|
| Entrée (texte) | 1,54 $ | ≈ 3,2 M de tokens |
| Entrée en cache (préfixe de prompt répété) | 0,308 $ | ≈ 16 M de tokens |
| Sortie (réponse et raisonnement) | 4,84 $ | ≈ 1,0 M de tokens |
| Question sur les logs en haut de page, un appel | 0,00064 $ | ≈ 7 700 appels |
| Ligne de log vers JSON (exemple Python), un appel | 0,00025 $ | ≈ 19 000 appels |
GLM-5.3 vs GLM-5.3 Flash vs Kimi K3
| GLM-5.3 | GLM-5.3 Flash | Kimi K3 | |
|---|---|---|---|
| Entrée | Texte | Texte, image | Texte, image |
| Contexte | 1 000 000 tokens | 1 048 576 tokens | 1 000 000 tokens |
| Sortie max. | 131 072 tokens | 131 072 tokens | 131 072 tokens |
reasoning_effort |
low, high, max | de none à max, 7 valeurs ; raisonne même à none | de none à max, 7 niveaux |
response_format |
json_object |
json_schema, json_object |
json_schema, json_object |
| Prix par million, entrée / sortie | 1,54 $ / 4,84 $ | 0,165 $ / 0,55 $ | 3,30 $ / 16,50 $ |
Exemple d’API GLM-5.3
- ID du modèle
- Endpoint
- Entrée
- Contexte et sortie
- Raisonnement
- Options de sortie
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)
Qu’est-ce que GLM-5.3 ?
-
Créez un compte gratuit
-
Pointez votre client vers deAPI
-
Envoyez la requête
FAQ GLM-5.3
Envoyez votre première requête GLM-5.3 avec 5 $ de crédits offerts
Inscription par e-mail ou avec Google. Paiement à l’usage, sans abonnement.