Skip to main content
Some hosted models support extended thinking. The model generates reasoning tokens before its final answer and returns them in reasoning_content, separate from the final content.

Supported models

Models not listed here don’t support reasoning.

Enable thinking

For models marked opt-in in the table above, enable thinking by passing chat_template_args.
Pass chat_template_args through extra_body since it extends the standard OpenAI API:
enable_thinking.py

Control reasoning depth

Set the top-level reasoning_effort parameter to control how much reasoning a supported model performs. Only the models in this table apply the parameter. Lower values reduce reasoning-token usage and latency. Higher values use more output tokens for reasoning. Set reasoning_effort to none to request a direct answer. Thinking is always on for the GLM 5.3 family, so none does not turn it off. GLM 5.3 and GLM 5.3 Flash accept none and map it to low reasoning, which still returns reasoning_content for many prompts. GLM 5.3 Fast returns a 400 error instead. The enable_thinking and thinking controls follow the same split: a 400 on GLM 5.3 and GLM 5.3 Fast, silently ignored by GLM 5.3 Flash.
Pass reasoning_effort through extra_body since it extends the standard OpenAI API:
reasoning_effort.py
DeepSeek V4 Pro 0813 also requires thinking: {"type": "enabled"} when you set reasoning_effort. Use reasoning for mathematical calculations, multi-step logic, code generation with complex requirements, and analysis that requires several intermediate steps. For simple questions or text generation, reasoning adds latency and output tokens. Use a model without reasoning support or set reasoning_effort to low.

Parse the response

The message object returns reasoning in reasoning_content and the final answer in content.
Read reasoning_content and content directly off the message object:
parse_reasoning.py
The response body contains both fields on the assistant message:
Response
Baseten includes reasoning tokens in completion_tokens and counts them toward your total usage and billing.

Next steps

Model APIs overview

Review supported models, pricing, and features.

Structured outputs

Constrain reasoning model output to a JSON schema.