
GLM-5 / Chat
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models. With advanced agentic planning, deep backend reasoning, and iterative self-correction, GLM-5 moves beyond code generation to full-system construction and autonomous execution.
Press Enter to add, Backspace to remove
Playground Chat
Starten Sie eine Unterhaltung mit dem KI-Modell. Sie können alles fragen.
KI-generierte Antworten können in der Genauigkeit variieren.
GLM-5Toggleable Deep Thinking with Tools
GLM-5 is Zhipu’s thinking-capable chat model with thinking.type enable/disable, clear_thinking history cleanup, up to 128 function tools, and streaming chat completions on an OpenAI-compatible surface.

At a Glance
GLM-5 Thinking Stack
Deep reasoning when you need it — plain chat when you do not. One model, two cognitive gears.

Thinking Toggle
thinking.type switches between enabled and disabled so you can trade analytical depth for latency per request without swapping models.

Clear Thinking History
thinking.clear_thinking (default true) cleans historical reasoning_content so multi-turn context stays compact and free of stale intermediate traces.

Function Tools
Register up to 128 function tools with tool_choice auto for agent loops, structured actions, and grounded retrieval handoffs.

Sampling & Stop
Temperature [0,1] default 1, top_p [0.01,1] default 0.95, max_tokens up to 131072, and a single stop word for clean parser boundaries.
How It Works
From request to reasoned answer in four moves.
Set Thinking
Enable or disable thinking.type based on task complexity and latency budget.
Attach Tools
Register function tools (up to 128) with tool_choice auto for agent loops.
Stream Tokens
stream defaults to true and returns text/event-stream for progressive paint.
Shape Output
Tune temperature (0–1, default 1), top_p (0.01–1, default 0.95), and one stop word.
GLM-5 Domains
Where thinking depth is a product dial, not a model swap.
Complex Analysis
Thinking on for multi-hop technical reasoning.
Agent Workflows
Function tools with tool_choice auto.
Fast Chat UX
Thinking off for lightweight conversational turns.
Structured Output
Temperature 0–1 and single stop word for parsers.
Prompt Tips
Get better first-pass results from GLM-5.
Leave thinking enabled for proofs and multi-document work; disable it for simple labels and rewrites.
GLM-5 currently accepts a single stop word — design parsers around that limit.
Ask for JSON or numbered steps when you will parse output programmatically.
GLM-5 Quickstart
Thinking chat with function tools.
curl -X POST "https://api.powertokens.ai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5",
"messages": [
{"role": "user", "content": "Outline a careful multi-step plan to migrate a REST API to versioned endpoints."}
],
"stream": true,
"temperature": 0.7
}'Technical Specifications
Confirmed parameters and runtime execution protocols.
Preisdetails
Die tatsächliche Abrechnung für dieses Modell wird dynamisch basierend auf den spezifischen Parametern Ihrer API-Anfrage berechnet. Nachfolgend finden Sie die spezifischen Kombinationen und ihre entsprechenden Preise:
| Modalität | Eingabe-Guthaben | Ausgabe-Guthaben | Eingabepreis | Ausgabepreis | Impliziter Cache-Treffer | Expliziter Cache-Treffer | Cache-Erstellung |
|---|---|---|---|---|---|---|---|
| Standard | 970/ 1M Tokens | 3,104/ 1M Tokens | $0.970 | $3.104 | $0.194 194/ 1M Tokens | $0.194 194/ 1M Tokens | -- |
Models from the Same Channel
Explore complementary models and alternative versions from the same provider channel.


GLM-5.3
glm-5.3
Zhipu AI's flagship text model optimized for complex software engineering and long-horizon Agent tasks. Features a 1M-token context window with mandatory reasoning (3 levels: low/high/max). Coding capability improved 50% over GLM-5.2 on Z.ai Code Bench; scores SOTA on Terminal Bench 3.0. Excels in cybersecurity tasks (cyber vulnerability discovery)


GLM-5.2
glm-5.2
Flagship text model purpose-built for long-horizon agentic workflows. Features a 1M context window supporting project-level engineering in a single session. Excels at autonomous coding: can complete development, testing, and multi-platform deployment from a single prompt. Top open-weight model per Artificial Analysis; #1 globally on Code Arena. MIT-licensed and Day-0 optimized for domestic AI chips


GLM-5 Turbo
glm-5-turbo
GLM-5 Turbo is a new model from Z.ai designed for fast inference and strong performance in agent-driven environments such as OpenClaw scenarios. It is deeply optimized for real-world agent workflows involving long execution chains, with improved complex instruction decomposition, tool use, scheduled and persistent execution, and overall stability across extended tasks.


GLM-5.1
glm-5.1
High-performance text model delivering breakthrough coding and long-horizon task execution. Capable of autonomous, continuous work for 8+ hours per session—planning, executing, and iterating to deliver engineering-grade results. Coding capability aligns with Claude Opus 4.6; scores 58.4 on SWE-Bench Pro, surpassing GPT-5.4 and Opus 4.6. 200K context window. Optimized for Agentic Coding, MCP tool calling, and complex software engineering
Recommended Related Models
Explore complementary video and multimodal models with your unified API key.


Qwen3.8 Flash
qwen3.8-flash
Alibaba's cost-efficient multimodal reasoning model. Supports text, image, and video inputs with text output. Features a native 1M-token context window for long documents, codebases, and agentic workflows. Excels in coding assistance, desktop interaction, chart analysis, and long-video understanding. Compatible with OpenAI/Anthropic protocols for seamless integration


Qwen3 Max
qwen3-max
Compared with the September 23, 2025 version, the newly upgraded Qwen-3 Max seamlessly integrates thinking and non-thinking modes, bringing an all-round obvious performance boost. Its thinking mode supports web search, web content extraction and code interpreter. It can conduct in-depth logical reasoning and call external tools to solve intricate problems more precisely


MiniMax M3
MiniMax-M3
Flagship multimodal foundation model supporting text, image, and video inputs with text output. Features a 1M-token context window via MiniMax Sparse Attention (MSA), cutting per-token compute to ~1/20 of previous gen at full context. Excels at long-horizon agentic work, coding, and tool use. Native multimodal training from step zero ensures deep semantic alignment. Scores 59.0% on SWE-Bench Pro and 83.5 on BrowseComp, surpassing Opus 4.7


Qwen3 Coder Plus
qwen3-coder-plus
Powered by Qwen3, this is a powerful Coding Agent that excels in tool calling and environment interaction to achieve autonomous programming. It combines outstanding coding proficiency with versatile general-purpose abilities.
Frequently Asked Questions
Everything you need to know before integrating this model.
Start Building with GLM-5 Today
Create an account in seconds to receive 100 free credits and start generating immediately. No credit card or upfront contract required.