Skip to main content
Helicone OSS LLM Observability

Reasoning

Enable reasoning through a unified API on Helicone's AI Gateway
2 min read

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#

LevelDescription
lowLight reasoning for simple tasks
mediumBalanced reasoning
highDeep reasoning for complex problems
Note

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.

Warning

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:

Responses API#

Streaming events follow the Responses API format:

Note

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.