How to adjust the modelβs thinking level with reasoning_effort
The reasoning_effort parameter controls how much effort the model puts into reasoning and planning its response.
- Higher effort β more thoughtful, step-by-step, or structured answers
- Lower effort β faster, simpler replies
Allowed values:
π‘ Tips:
- Use
"low"when you want short, direct responses. - Use
"high"for tasks like explanations, problem solving, reasoning. "medium"works well for most everyday interactions.
Note:
- Setting higher reasoning effort may increase response time slightly, since the model is thinking more.
First, install the SDK:
Then use the following Python code: