Helicone's AI Gateway provides a unified interface for reasoning across providers. Use the same parameters regardless of provider - the Gateway handles the translation automatically.
Quick Start#
Configuration#
reasoning_effort#
| Level | Description |
|---|---|
low | Light reasoning for simple tasks |
medium | Balanced reasoning |
high | Deep reasoning for complex problems |
For Anthropic models, the default is 4096 max completion tokens with 2048 budget reasoning tokens.
reasoning_options.budget_tokens#
The budget_tokens parameter sets the maximum number of tokens the model can use for reasoning.
For Google (Gemini) models: reasoning_effort is required to enable thinking. Passing budget_tokens alone will not enable reasoning - you must also specify reasoning_effort.
Handling Responses#
Chat Completions#
When streaming, reasoning content arrives in chunks via the reasoning delta field, followed by content, and finally reasoning_details with the finish reason:
Non-streaming responses include the full reasoning in the message:
Responses API#
Streaming events follow the Responses API format:
Anthropic responses include encrypted_content for reasoning validation:
Anthropic models always return encrypted_content (signatures) in reasoning items. These signatures validate the reasoning chain and are required for multi-turn conversations. Other providers like OpenAI can optionally return signatures when configured.
Related#
- Responses API - Alternative API format with reasoning support
- Context Editing - Manage context in long reasoning sessions
