LLM
API GLM-5.3, pruébala gratis
Sin tarjeta de crédito · Créditos gratis válidos 30 días · Después recargas saldo y pagas por uso, sin suscripción
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.
Casos de uso de GLM-5.3
Precios de la API GLM-5.3
| Tokens | Precio por 1M | Por $5 |
|---|---|---|
| Entrada (texto) | $1,54 | ≈ 3,2M de tokens |
| Entrada en caché (prefijo de prompt repetido) | $0,308 | ≈ 16M de tokens |
| Salida (respuesta y razonamiento) | $4,84 | ≈ 1,0M de tokens |
| Pregunta sobre logs de la cabecera, una llamada | $0,00064 | ≈ 7.700 llamadas |
| De línea de log a JSON (ejemplo en Python), una llamada | $0,00025 | ≈ 19.000 llamadas |
GLM-5.3 vs GLM-5.3 Flash vs Kimi K3
| GLM-5.3 | GLM-5.3 Flash | Kimi K3 | |
|---|---|---|---|
| Entrada | Texto | Texto, imagen | Texto, imagen |
| Contexto | 1.000.000 tokens | 1.048.576 tokens | 1.000.000 tokens |
| Salida máxima | 131.072 tokens | 131.072 tokens | 131.072 tokens |
reasoning_effort |
low, high, max | de none a max, 7 valores; razona incluso con none | de none a max, 7 niveles |
response_format |
json_object |
json_schema, json_object |
json_schema, json_object |
| Precio por 1M, entrada / salida | $1,54 / $4,84 | $0,165 / $0,55 | $3,30 / $16,50 |
Ejemplo de API GLM-5.3
- ID del modelo
- Endpoint
- Entrada
- Contexto y salida
- Razonamiento
- Opciones de salida
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é es GLM-5.3?
-
Crea una cuenta gratis
-
Apunta tu cliente a deAPI
-
Envía la solicitud
Preguntas frecuentes sobre GLM-5.3
Envía tu primera solicitud a GLM-5.3 con $5 en créditos gratis
Regístrate con tu correo o con Google. Sin suscripción, pagas por uso.