GLM-4.5 is a text-only language model developed by Z.ai, accessed through OrcaRouter's OpenAI-compatible API. It supports a context window of 128,000 tokens and can generate up to 96,000 tokens per request, making it suitable for long-form text processing and generation tasks. The model is priced at $0.60 per 1 million input tokens and $2.20 per 1 million output tokens, billed at the provider's rate with zero markup by OrcaRouter. On the MATH-500 benchmark, GLM-4.5 achieves a score of 97.9, indicating strong mathematical reasoning capabilities. It is designed for applications that require precise text understanding and generation, particularly in mathematical and logical domains. As a text-only model, it does not support vision or audio inputs. OrcaRouter provides seamless integration through a standard REST API, allowing developers to leverage GLM-4.5 without managing infrastructure.
| Input / 1M tokens | $0.600 |
|---|---|
| Output / 1M tokens | $2.20 |
| Cache read / 1M | $0.110 |
| Currency | USD |
1.6M input × $0.6/M + 400K output × $2.2/M
Prompt caching assumes half of the input tokens are read from cache at $0.11/M.
Estimate based on list price
| Scenario | Input / output tokens | Per request | Per 1,000 requests |
|---|---|---|---|
| Chat reply | 200 / 300 | $0.0008 | $0.780 |
| Summarize a long doc | 30K / 1K | $0.020 | $20.20 |
| Code review | 8K / 2K | $0.0092 | $9.20 |
Estimate only — actual token counts depend on the provider's tokenizer.
Use an OpenAI-compatible SDK or send an HTTP request. Get API key
export ORCAROUTER_API_KEY=…https://api.orcarouter.ai/v1import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.orcarouter.ai/v1",
api_key=os.environ["ORCAROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="z-ai/glm-4.5",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content){
"id": "chatcmpl-…",
"object": "chat.completion",
"created": 1763280000,
"model": "z-ai/glm-4.5",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 10,
"total_tokens": 19
}
}choices[0].message.content — the model's answer.finish_reason — "stop" means the answer is complete; "length" means it was cut off at max_tokens.usage — the input and output tokens this call is billed for.An HTTP 200 with finish_reason "stop" means the call succeeded.
| Parameter | What it does |
|---|---|
max_tokens | Upper limit on the number of tokens the model generates. |
temperature | Sampling randomness: lower is more focused, higher is more varied. |
tools | Functions the model may call, described as JSON Schema. |
response_format | Force JSON output, optionally matching a JSON Schema. |
top_p | Nucleus sampling: only consider tokens within this cumulative probability. |
stop | Sequences where the model stops generating. |
tool_choice | Whether the model must, may or must not call a tool. |
reasoning | Configure the model's reasoning: effort, token budget, or off. |
include_reasoning | Return the model's reasoning text along with the answer. |
stream | Send the answer as server-sent events while it is generated. |
do_sample | |
request_id | |
thinking | |
tool_stream | |
user_id |
Human preference and real-world tasks
Embed this badge
@misc{orcarouter_glm_4_5,
title = {GLM 4.5 API},
author = {Z.ai},
year = {2025},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/z-ai/glm-4.5}
}Z.ai. (2025). GLM 4.5 API. OrcaRouter. https://www.orcarouter.ai/models/z-ai/glm-4.5