LLM
GLM-5.3 API, free to try
No credit card · Free credits valid for 30 days · Then top up and pay as you go, no subscription
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.
GLM-5.3 use cases
GLM-5.3 API pricing
| Tokens | Price per 1M | For $5 |
|---|---|---|
| Input (text) | $1.54 | ≈ 3.2M tokens |
| Cached input (repeated prompt prefix) | $0.308 | ≈ 16M tokens |
| Output (answer and reasoning) | $4.84 | ≈ 1.0M tokens |
| Log question in the hero, one call | $0.00064 | ≈ 7,700 calls |
| Log line to JSON (Python example), one call | $0.00025 | ≈ 19,000 calls |
GLM-5.3 vs GLM-5.3 Flash vs Kimi K3
| GLM-5.3 | GLM-5.3 Flash | Kimi K3 | |
|---|---|---|---|
| Input | Text | Text, image | Text, image |
| Context | 1,000,000 tokens | 1,048,576 tokens | 1,000,000 tokens |
| Max output | 131,072 tokens | 131,072 tokens | 131,072 tokens |
reasoning_effort |
low, high, max | none to max, 7 values; reasons even at none | none to max, 7 levels |
response_format |
json_object |
json_schema, json_object |
json_schema, json_object |
| Price per 1M, input / output | $1.54 / $4.84 | $0.165 / $0.55 | $3.30 / $16.50 |
GLM-5.3 API example
- Model ID
- Endpoint
- Input
- Context and output
- Reasoning
- Output options
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)
What is GLM-5.3?
-
Create a free account
-
Point your client at deAPI
-
Send the request
GLM-5.3 FAQ
Send your first GLM-5.3 request with $5 of free credits
Sign up with e-mail or Google. No subscription, pay as you go.