reasoning_content field, distinct from the final response.
Supported models
DeepSeek V4 Pro, Inkling, OpenAI GPT 120B, and GLM 5.2 also support
reasoning_effort. For Inkling, reasoning_effort is the only reasoning control: chat_template_args: {"enable_thinking": false} doesn’t disable its thinking; reasoning_effort: "none" does.
Models not listed here don’t support reasoning.
Enable thinking
For models marked opt-in in the table above, enable thinking by passingchat_template_args.
- Python
- JavaScript
- cURL
Pass
chat_template_args through extra_body since it extends the standard OpenAI API:enable_thinking.py
Control reasoning depth
Thereasoning_effort parameter controls how thoroughly the model reasons through a problem. DeepSeek V4 Pro, Inkling, OpenAI GPT 120B, and GLM 5.2 support this parameter. Supported values vary by model:
Lower values return faster responses with less thorough reasoning; higher values reason longer and cost more output tokens.
none disables reasoning entirely. GLM 5.2 returns a 400 error for values outside its set.
Some model templates also read reasoning_effort from inside chat_template_args (GLM 5.2 honors both placements). Use the top-level parameter: the API validates it and returns a 400 for invalid values, but doesn’t validate chat_template_args contents, so mistakes there fail silently.
- DeepSeek V4 Pro
- OpenAI GPT 120B
- GLM 5.2
- Python
- JavaScript
- cURL
Pass
reasoning_effort through extra_body since it extends the standard OpenAI API:reasoning_effort.py
reasoning_effort to low.
Parse the response
The model’s thinking process appears inreasoning_content, separate from the final answer in content. Both fields are returned on the message object.
- Python
- JavaScript
- cURL
Read
reasoning_content and content directly off the message object:parse_reasoning.py
Response
completion_tokens and count toward your total usage and billing.
Next steps
Model APIs overview
Supported models, pricing, and the feature support matrix
Structured outputs
Constrain reasoning models to a JSON schema