Reasoning Configuration
Configure reasoning behavior using thereasoning parameter:
Reasoning Effort Levels
Theeffort parameter controls how much computational effort the model puts into reasoning:
To change effort partway through a conversation without invalidating the prompt cache, add a
configuration_update input item before the user message it should apply to. The item is interchangeable with the Chat Completions and Anthropic Messages API forms. See Changing Effort Mid-Conversation for the request shape, placement rules, and supported models.
Complex Reasoning Example
For complex mathematical or logical problems:Reasoning in Conversation Context
Include reasoning in multi-turn conversations:Streaming Reasoning
Enable streaming to see reasoning develop in real-time:Response with Reasoning
When reasoning is enabled, the response includes reasoning information:Best Practices
- Choose appropriate effort levels: Use
highfor complex problems,lowfor simple tasks - Consider token usage: Reasoning increases token consumption
- Use streaming: For long reasoning chains, streaming provides better user experience
- Include context: Provide sufficient context for the model to reason effectively
Next Steps
- Explore Tool Calling with reasoning
- Learn about Web Search integration
- Review Basic Usage fundamentals