GLM 5
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows.
z-ai/glm-5Opens in the ewpire workspace. Creating an account is free; runs are paid from your credits.
GLM 5 in plain words
GLM 5 is a text model from Z.ai. It takes text as input and returns text. Its context window is 204,800 tokens. It costs 1.241177 credits per 1M input tokens and 3.971765 credits per 1M output tokens.
It is good at reasoning through multi-step problems and calling tools. It does not read images. It runs at medium speed among the models in the catalog. A context window of 204,800 tokens holds about 820,000 characters of English text, at 4 characters a token.
For example, a question of 2,000 tokens (about 8,000 characters) with an answer of 1,000 tokens (about 4,000 characters) costs 0.006455 credits. The exact charge follows the usage the model reports for your request.
Details
- Made by
- Z.ai
- Good at
- ReasoningTool use
- Reads
- Text
- Produces
- Text
- Context window
- 204,800 tokens
- Speed
- Medium speed
Price
- Input, per 1M tokens
- 1.241177 credits
- Output, per 1M tokens
- 3.971765 credits
Charged per request from your credit balance. No subscription. See pricing
Use it through the API
Call it with the OpenAI SDK or plain HTTP: set the base URL to ewpire and pass this model id. Read the docs
curl https://ewpire.com/api/v1/chat/completions \
-H "Authorization: Bearer $EWPIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"z-ai/glm-5","messages":[{"role":"user","content":"Hello!"}]}'The docs show how to list the models the API serves, with their capabilities and prices. Models in the docs
Similar models
- Z.aiGLM 5.30.0868 in · 1.7376 out credits / 1M tokens
- Z.aiGLM 4.6V0.3724 in · 1.1171 out credits / 1M tokens
- Z.aiGLM 5 Turbo1.4894 in · 4.9647 out credits / 1M tokens
- GoogleGemini 3.5 Flash Lite0.3724 in · 3.1029 out credits / 1M tokens
- GoogleGemini 2.5 Pro1.5515 in · 12.4118 out credits / 1M tokens
- MistralDevstral 20.4965 in · 2.4824 out credits / 1M tokens