LLM
API GLM-5.3, grátis para testar
Sem cartão de crédito · Créditos grátis válidos por 30 dias · Depois, você recarrega o saldo e paga pelo uso, sem assinatura
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 do GLM-5.3
Preços da API GLM-5.3
| Tokens | Preço por 1M | Com US$ 5 |
|---|---|---|
| Entrada (texto) | US$ 1,54 | ≈ 3,2M de tokens |
| Entrada em cache (prefixo de prompt repetido) | US$ 0,308 | ≈ 16M de tokens |
| Saída (resposta e raciocínio) | US$ 4,84 | ≈ 1,0M de tokens |
| Pergunta sobre o log no topo da página, uma chamada | US$ 0,00064 | ≈ 7.700 chamadas |
| Linha de log para JSON (exemplo em Python), uma chamada | US$ 0,00025 | ≈ 19.000 chamadas |
GLM-5.3 vs GLM-5.3 Flash vs Kimi K3
| GLM-5.3 | GLM-5.3 Flash | Kimi K3 | |
|---|---|---|---|
| Entrada | Texto | Texto, imagem | Texto, imagem |
| Contexto | 1.000.000 tokens | 1.048.576 tokens | 1.000.000 tokens |
| Saída máxima | 131.072 tokens | 131.072 tokens | 131.072 tokens |
reasoning_effort |
low, high, max | de none a max, 7 valores; raciocina mesmo em none | de none a max, 7 níveis |
response_format |
json_object |
json_schema, json_object |
json_schema, json_object |
| Preço por 1M, entrada / saída | US$ 1,54 / US$ 4,84 | US$ 0,165 / US$ 0,55 | US$ 3,30 / US$ 16,50 |
Exemplo da API GLM-5.3
- ID do modelo
- Endpoint
- Entrada
- Contexto e saída
- Raciocínio
- Opções de saída
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)
O que é o GLM-5.3?
-
Crie uma conta gratuita
-
Aponte seu cliente para o deAPI
-
Envie a requisição
Perguntas sobre o GLM-5.3
Envie sua primeira requisição ao GLM-5.3 com US$ 5 em créditos grátis
Cadastre-se com e-mail ou Google. Sem assinatura, você paga pelo uso.