Reasoning
Control how much reasoning a model performs and inspect its reasoning output and token usage.
Reasoning models spend tokens working through a problem before answering. Higher effort can improve accuracy on hard tasks, at the cost of higher latency and more output tokens. Check the model catalog or look for reasoning_effort in supported_parameters from GET /v1/models.
Set reasoning effort
| Endpoint | Field |
|---|---|
| Chat Completions | reasoning_effort or reasoning.effort |
| Responses | reasoning.effort |
| Anthropic Messages | output_config.effort |
Values in increasing order are none, minimal, low, medium, high, xhigh, and max. Omit the field to use the model default.
curl https://api.outerlane.app/v1/chat/completions \
-H "Authorization: Bearer $OUTERLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-6.1-sol",
"reasoning_effort": "high",
"messages": [{ "role": "user", "content": "What is the sum of the prime numbers from 1 through 100?" }]
}'Unsupported effort levels
Supported levels vary by model. outerlane maps values so you can use the same code across models.
- An unsupported effort maps to the closest supported reasoning level. For example,
lowmaps tohighon a model that supportsnone,high, andxhigh. Usenoneexplicitly to turn reasoning off. - If a model requires reasoning, sending
nonereturns400 unsupported_feature. - Models without reasoning ignore this field.
- Check
x_outerlane.reasoning_effortin the response for the level sent upstream.
Read reasoning output
When a model returns reasoning output, look for it in the following fields.
| Endpoint | Response | Streaming |
|---|---|---|
| Chat Completions | choices[0].message.reasoning | delta.reasoning |
| Anthropic Messages | thinking content block | thinking_delta |
| Responses | Omitted | Omitted |
Anthropic Messages returns thinking blocks with an empty signature. You can resend prior responses as-is because outerlane strips these blocks before forwarding. Use output_config.effort to set the reasoning level. If you send thinking.type: "disabled" without an explicit effort, outerlane leaves the upstream effort field unset.
Reasoning token billing
Reasoning tokens count toward output and are billed at the output rate. Check these fields to see how many output tokens went to reasoning.
- Chat Completions:
usage.completion_tokens_details.reasoning_tokens - Responses:
usage.output_tokens_details.reasoning_tokens
Leave room in the output budget, such as max_tokens, when increasing effort. If reasoning uses the entire budget, the final answer may be empty or truncated.