Model Details
GLM-5.2 Fast Preview runs the GLM-5.2 weights on higher-throughput infrastructure for latency-sensitive work. In back-to-back testing it ran **consistently faster than the standard tier, by roughly 20–30%** — a steady gain, not a step change, and it varies with load. You send `messages`, you get a chat completion.
**This is the more expensive tier, not the cheaper one.** It bills **twice** the standard `z-ai/glm-5.2` row per token — same weights, same answers, so you pay double for about a quarter more throughput. Worth it only when wall-clock latency is your binding constraint; otherwise use `z-ai/glm-5.2`.
Quality is GLM-5.2's own: the brand publishes **62.1 on SWE-Bench Pro** and **81.0 on Terminal-Bench 2.1** for these open-weight, MIT-licensed weights. Those are the model's published results, not a measurement of this serving tier.
Thinking is tunable through `reasoning_effort` across **seven** levels — `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max` — with **`max` as the default**, the strongest and most expensive, since thinking bills as output. The context window is 1M tokens and a single reply can run to 131,072 tokens.
## Best for - Low-latency coding assistants where a developer waits on every completion - Agent loops whose wall-clock time is dominated by many sequential calls - Real-time chat products that stream tokens straight to the user - Tool-calling agents that plan, edit and re-check their own work over many turns - Reading a whole repository or document set in one prompt instead of chunking it
## Choose another model when - Cost matters more than speed — `z-ai/glm-5.2` runs the same weights for the same answers at half the token price - You need the family's most stable id — this one is a preview, with capabilities and specifications subject to change - Your input includes images, audio or video — this is a text-only model - A single reply has to exceed 131,072 tokens, which thinking also counts against
## Tips - Structured output works in non-thinking mode only — pair `response_format` with `reasoning_effort: "none"` - Budget `max_tokens` generously — at `max` effort most of it goes to thinking, and too small a budget returns an empty reply you still pay for
Served through the OpenAI-compatible chat completions API:
``` POST https://queue.modelrunner.run/z-ai/glm-5.2-fast-preview/chat/completions ```
Point any OpenAI SDK at `base_url = https://queue.modelrunner.run/z-ai/glm-5.2-fast-preview` with your ModelRunner API key; streaming, tool calling and JSON mode all work.
```js import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.MODELRUNNER_API_KEY, baseURL: "https://queue.modelrunner.run/z-ai/glm-5.2-fast-preview", });
const result = await client.chat.completions.create({ model: "z-ai/glm-5.2-fast-preview", messages: [ { role: "user", content: "Find every bug in this function, explain each one, then rewrite it with a complexity analysis." }, ], reasoning_effort: "high", max_tokens: 4096, }); ```
