Features
The Deep Thinking feature currently supports the latest models in the GLM-5.3, GLM-5.3-FLASH, GLM-5.2, GLM-5.1, GLM-5, GLM-4.5, GLM-4.6, GLM-4.7 series. By enabling deep thinking, the model can:- Multi-step Reasoning: Break down complex problems into multiple steps for gradual analysis and resolution
- Logical Analysis: Provide clear reasoning processes and logical chains
- Improved Accuracy: Reduce errors and improve answer quality through deep thinking
- Enhanced Interpretability: Display the thinking process to help users understand the model’s reasoning logic
- Intelligent Judgment: The model automatically determines whether deep thinking is needed to optimize response efficiency
Core Parameters
Note: GLM-5.3 and GLM-5.3-FLASH no longer support disabling thinking (an error will occur if thethinking.type parameter in the API request is set to disabled). Please ensure that thinking is enabled.
thinking.type: Controls the deep thinking modeenabled(default): Enable dynamic thinking. The model automatically determines whether to think:GLM-5.2,GLM-5.1,GLM-5,GLM-4.6, andGLM-4.5auto-decide whether to think, whileGLM-5.3,GLM-5.3-FLASH,GLM-4.7andGLM-4.5Vuse forced thinkingdisabled: Disable deep thinking, provide direct answers
reasoning_effort: Controls the degree of reasoning within the thought chain, and is only supported byGLM-5.2and above.- Available values:
max(default and recommended, deep inference),high(enhanced inference),low(mild inference, only supported by GLM-5.3 and GLM-5.3-FLASH) - In the API request:
-
- For GLM-5.3 and GLM-5.3-FLASH, only
max,highandloware supported. Any other input will result in an error.
- For GLM-5.3 and GLM-5.3-FLASH, only
-
- For GLM-5.2, the supported options are
max(default and recommended, for deep inference),xhigh,high(enhanced inference),medium,low,minimal, andnone. Among them,noneorminimalindicate that the model stops thinking;low/mediumare mapped tohigh;xhighis mapped tomax.
- For GLM-5.2, the supported options are
- In the Coding Plan request:
-
- For GLM-5.3 and GLM-5.3-FLASH,
none,minimal, andloware mapped tolow;medium,highare mapped tohigh;xhighandmaxare mapped tomax.
- For GLM-5.3 and GLM-5.3-FLASH,
-
- For GLM-5.2,
noneorminimalindicate that the model stops thinking;low/mediumare mapped tohigh;xhighis mapped tomax.
- For GLM-5.2,
- Available values:
model: A model that enables deep thinking, supported byGLM-4.5and above versions.
Code Examples
- cURL
- Python SDK
Basic Call (Enable Deep Thinking)Streaming Call (Deep Thinking + Streaming Output)Control Reasoning Effort (reasoning_effort)Disable deep thinking (GLM-5.3 is no longer supported, only GLM-5.2 supports it)
Response Example
Response format with deep thinking enabled:Best Practices
Recommended scenarios to enable:- Complex problem analysis and solving
- Multi-step reasoning tasks
- Technical solution design
- Strategy planning and decision
- Academic research and analysis
- Creative writing and content creation
- Simple fact query
- Basic translation tasks
- Simple classification judgment
- Quick question and answer requirements
Application scenarios
Academic Research
- Research method design
- Data analysis and explanation
- Theory deduction and proof
Technology Consulting
- System architecture design
- Technological scheme evaluation
- Problem diagnosis and solution
Business Analysis
- Market trends analysis
- Business model design
- Investment decision support
Education Training
- Complex concept explanation
- Learning path planning
- Knowledge system building
Notes
- Response time:Different reasoning effort levels will increase response time, particularly for complex tasks
- Token consumption:Thinking process will consume extra tokens, please manage your tokens
- Model support:Ensure you’re using models that support deep thinking
- Task matching:Choose whether to enable deep thinking according to the task complexity
- Streaming output:Combine streaming output to see the thinking process, improving user experience