GLM 4.5
By Z.ai. 358.3 billion parameters, a context window of 131,072 tokens and the licence mit.
Facts
- Released
- 2025-07-20 the day the repository was first published on Hugging Face Hugging Face, read
- Licence
- mit the licence the model card declares Hugging Face, read
- Open weights
- Yes the weights are published in this Hugging Face repository Hugging Face, read
- Parameters
- 358.3 billion counted from the safetensors weight files Hugging Face, read
- Active parameters
- 39.2 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
- Knowledge cutoff
- 2024-12-31 the knowledge cutoff OpenRouter lists OpenRouter, read
- Context window
- 131,072 tokens the maximum position embeddings in the model configuration model configuration, read
- 131,072 tokens the context length OpenRouter lists OpenRouter, read
- Longest output
- 98,304 tokens the largest output OpenRouter's first provider allows OpenRouter, read
- Tool calling
- Yes OpenRouter lists tools among the supported parameters OpenRouter, read
- Structured output
- Yes OpenRouter lists response_format, a JSON mode, among the supported parameters OpenRouter, read
- Reasoning controls
- Yes OpenRouter lists reasoning controls OpenRouter, read
- Inputs and outputs
- text in, text out Hugging Face, read
- Good for
- Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read
Prices
| Provider | Input | Output | Context | As of | Source |
|---|---|---|---|---|---|
| Abacus direct | 0.600 USD | 2.20 USD | 131,072 | older than 30 days; check the provider | models.dev, read |
| Hugging Face direct | 0.600 USD | 2.20 USD | 131,072 | older than 30 days; check the provider | models.dev, read |
| Jiekou.AI direct | 0.600 USD | 2.20 USD | 131,072 | models.dev, read | |
| NovitaAI direct | 0.600 USD | 2.20 USD | 131,072 | older than 30 days; check the provider | models.dev, read |
| Z.AI through OpenRouter | 0.600 USD | 2.20 USD | 131,072 | OpenRouter endpoints, read |
Run it on your own hardware
Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.
| Quantization | Weights | Memory at 8,192 tokens | Memory at 32,768 tokens |
|---|---|---|---|
| UD-TQ1_0 | 78.5 GiB | 85.8 GiB | 94.5 GiB |
| UD-IQ1_S | 90.4 GiB | 98.3 GiB | 107 GiB |
| UD-IQ1_M | 100 GiB | 109 GiB | 117 GiB |
| UD-IQ2_XXS | 108 GiB | 117 GiB | 125 GiB |
| UD-IQ2_M | 114 GiB | 123 GiB | 132 GiB |
| Q2_K | 122 GiB | 132 GiB | 140 GiB |
| Q2_K_L | 122 GiB | 132 GiB | 140 GiB |
| UD-Q2_K_XL | 126 GiB | 136 GiB | 144 GiB |
| UD-IQ3_XXS | 135 GiB | 145 GiB | 154 GiB |
| Q3_K_S | 144 GiB | 155 GiB | 164 GiB |
| UD-Q3_K_XL | 148 GiB | 159 GiB | 167 GiB |
| Q3_K_M | 160 GiB | 171 GiB | 179 GiB |
| IQ4_XS | 178 GiB | 191 GiB | 199 GiB |
| IQ4_NL | 189 GiB | 201 GiB | 210 GiB |
| Q4_0 | 189 GiB | 202 GiB | 211 GiB |
| Q4_K_S | 190 GiB | 203 GiB | 211 GiB |
| UD-Q4_K_XL | 190 GiB | 203 GiB | 212 GiB |
| Q4_K_M | 202 GiB | 215 GiB | 224 GiB |
| Q4_1 | 209 GiB | 223 GiB | 232 GiB |
| Q5_K_S | 230 GiB | 245 GiB | 254 GiB |
| UD-Q5_K_XL | 236 GiB | 251 GiB | 260 GiB |
| Q5_K_M | 237 GiB | 252 GiB | 261 GiB |
| Q6_K | 274 GiB | 291 GiB | 300 GiB |
| UD-Q6_K_XL | 280 GiB | 297 GiB | 306 GiB |
| Q8_0 | 355 GiB | 376 GiB | 385 GiB |
| UD-Q8_K_XL | 365 GiB | 386 GiB | 395 GiB |
| BF16 | 668 GiB | 704 GiB | 713 GiB |
Start it with a local runtime
- Ollama
ollama run hf.co/unsloth/GLM-4.5-GGUF:Q4_0 - LM Studio
lms get unsloth/GLM-4.5-GGUF lms server start - llama.cpp server
llama-server -hf unsloth/GLM-4.5-GGUF:Q4_0 --jinja - vLLM
vllm serve zai-org/GLM-4.5 - SGLang
sglang serve --model-path zai-org/GLM-4.5 --port 30000
Use it from your harness
Set up for Abacus with the model zai-org/GLM-4.5. Each endpoint page has the same setup for its own address.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"abacus": {
"npm": "@ai-sdk/openai-compatible",
"name": "Abacus",
"options": {
"baseURL": "https://routellm.abacus.ai/v1",
"apiKey": "{env:ABACUS_API_KEY}"
},
"models": {
"zai-org/GLM-4.5": {
"name": "GLM 4.5",
"limit": {
"context": 131072,
"output": 98304
}
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"abacus": {
"baseUrl": "https://routellm.abacus.ai/v1",
"api": "openai-completions",
"apiKey": "$ABACUS_API_KEY",
"models": [
{
"id": "zai-org/GLM-4.5"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and Abacus documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Claude Code sends Anthropic Messages requests, and Abacus documents no such address. A gateway that translates to that API can sit in between.
- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Other ways to reach it
- Hugging Face, model
zai-org/GLM-4.5 - Jiekou.AI, model
zai-org/glm-4.5 - NovitaAI, model
zai-org/glm-4.5 - OpenRouter, model
z-ai/glm-4.5 - Ollama, model
hf.co/unsloth/GLM-4.5-GGUF:Q4_0
Published results
These are results other people published. Baltor did not run them and does not rank models by them.
- Results the maker published on the model card published by zai-org Hugging Face, read
Sources of this page
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.