reasoning_effort parameter that controls how much the model thinks before answering. Valid values are “high” and “max” (“low” and “medium” are mapped to “high” server-side). It is left unset by default, so the API uses its own default (“high”). For demanding agent scenarios, DeepSeek recommends “max”.
reasoning_effort.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export your DeepSeek API key
4
Run the example
Save the code above as
reasoning_effort.py, then run: