Model detail
GLM-4.5
GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of up to 128k tokens. GLM-4.5 delivers significantly enhanced capabilities in reasoning, code generation, and agent alignment. It supports a hybrid inference mode with two options, a "thinking mode" designed for complex reasoning and tool use, and a "non-thinking mode" optimized for instant responses. Users can control the reasoning behaviour with the `reasoning` `enabled` boolean. [Learn more in our docs](https://openrouter.ai/docs/use-cases/reasoning-tokens#enable-reasoning-with-default-config)
Model specs
- Model ID
-
glm-4.5
- Context length
- 131.072K
- Max output
- 98.304K
- I/O modalities
- Released
- 2025-07
02
API endpoints
One MixRoute gateway, OpenAI-compatible
-
OpenAI-compatible
/v1/chat/completionsPOST
03
Pricing
Flat rate, unit: /1M Tokens
Input
$0.6000 /1M Tokens
Completion
$2.2000 /1M Tokens
Cache read
$0.1100 /1M Tokens
05
Selection summary
Quickly judge whether it fits your workload
What is this model good for?
Our latest flagship foundation model, purpose-built for agent-based applications
GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of up to 128k tokens.
What should you check before using it?
131,072 context, 98,304 output tokens
GLM model that supports reasoning, tool calling, structured output, streaming, prompt caching and the OpenAI SDK. Knowledge cutoff: 2024-12-31. Released 2025-07-25.
Why use it through MixRoute?
Drop-in via OpenAI-compatible endpoint on MixRoute
Set the model parameter to "glm-4.5" and use your MixRoute API key. Compatible with OpenAI SDK and standard tool-calling patterns.
07
Capabilities & compatibility
Unconfirmed capabilities stay "Unknown," no guesses
Tool calling
GLM-4.5 supports function and tool calls.
tools definition; the response returns tool_calls to execute and feed results back.
Structured output
GLM-4.5 can produce JSON-formatted output on demand.
response_format: { type: "json_schema" } forces valid JSON output.
Streaming
GLM-4.5 supports streamed responses.
stream: true streams tokens incrementally, so chat UIs render as they arrive.
Prompt caching
GLM-4.5 supports prompt caching under supported routing conditions.
OpenAI SDK
Call GLM-4.5 through MixRoute's OpenAI-compatible endpoint.
base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.
08
Token cost estimator
Live estimate from this page's pricing, not an actual bill
Share of the same prefix read repeatedly, up to 100%
09
FAQ
GLM-4.5 supports context caching, which can significantly reduce latency and cost for repeated prefixes. Stable content such as system prompts and tool definitions benefits most.
One endpoint, a testable decision
Test this model and alternate routes with the same request format
Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.