GLM 5.3 API
Use GLM 5.3 by Z.ai through Refract's OpenAI-compatible API for $0.18 per 1M input and $0.57 per 1M output tokens, 87% below the official $1.40 / $4.40. Pay per token, no subscription.
| Model ID | glm-5.3 |
|---|---|
| Provider | Z.ai |
| Input, per 1M tokens | $0.18 (official $1.40) |
| Output, per 1M tokens | $0.57 (official $4.40) |
Chat with GLM 5.3 · Get an API key
Use it from code
curl https://refracthub.com/v1/chat/completions \
-H "Authorization: Bearer $REFRACT_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "glm-5.3", "messages": [{"role": "user", "content": "Hello"}]}'from openai import OpenAI
client = OpenAI(base_url="https://refracthub.com/v1", api_key="YOUR_REFRACT_KEY")
reply = client.chat.completions.create(model="glm-5.3", messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)
Questions
How much does GLM 5.3 cost on Refract?
$0.18 per 1M input tokens and $0.57 per 1M output tokens, compared with $1.40 and $4.40 on Z.ai's official API. You pay only for the tokens you use, with no subscription.
Does it work with the OpenAI SDK?
Yes. Point the OpenAI SDK, or any OpenAI-compatible app, at https://refracthub.com/v1 with your Refract key and use the model name "glm-5.3". The Anthropic Messages format works too.
Can I use GLM 5.3 without writing code?
Yes. Chat with it on the web at https://refracthub.com/chat, or use the Refract desktop app for Windows.
Other Z.ai models
- GLM 5.3 Flash: $0.12 / $0.40 per 1M tokens