---
title: "Reasoning Controls: Turn Thinking Off or Up | Straitly Docs"
description: "Turn reasoning off with reasoning_effort none where a model allows it, or pick low, medium or high. Check reasoning tokens in usage on each call."
url: https://straitly.ai/docs/reasoning
updated: 2026-11-28
publisher: Straitly (https://straitly.ai)
---

Docs

API guides

# Reasoning controls

Copy docs

**On this page**

Set reasoning\_effort to "none" to ask a model not to reason, or to "low", "medium" or "high" to choose how much it may think before it answers. Some models keep reasoning anyway. Reasoning tokens are billed as output, so check usage.completion\_tokens\_details.reasoning\_tokens to see how many each request used.

### How do I turn reasoning off?

On /v1/chat/completions, send reasoning\_effort: "none". On models that honor it, the reply comes back with 0 reasoning tokens. The OpenRouter-style reasoning: {"enabled": false} is also accepted. Check reasoning\_tokens on your first call to see whether your model honored it.

Python curl

Python

Copy Copied Failed

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.straitly.ai/v1",
    api_key=os.environ["STRAITLY_API_KEY"],
)

response = client.chat.completions.create(
    model="claude-sonnet-5-5",
    reasoning_effort="none",
    messages=[{"role": "user", "content": "What is 17 * 23?"}],
)
print(response.choices[0].message.content)
print(response.usage.completion_tokens_details.reasoning_tokens)

### How do I set reasoning effort?

- Send reasoning\_effort as "low", "medium" or "high". Lower effort usually means fewer reasoning tokens, a lower bill, and a faster first token.
- Effort is an upper hint, not a fixed amount. A model may use 0 reasoning tokens on an easy prompt even at high effort, and more on a hard one.
- Leave reasoning\_effort out to use the model's default.
- On /v1/chat/completions, use reasoning\_effort or reasoning. The Anthropic thinking field belongs to /v1/messages.

### How do I turn thinking off on the Anthropic Messages API?

On /v1/messages, send thinking: {"type": "disabled"} to ask for a text answer with no thinking block, or thinking: {"type": "enabled", "budget\_tokens": 1024} to allow it. Some models still return a thinking block when it is disabled.

Python

Copy Copied Failed

import os
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.straitly.ai",
    api_key=os.environ["STRAITLY_API_KEY"],
)

response = client.messages.create(
    model="claude-sonnet-5-5",
    max_tokens=512,
    thinking={"type": "disabled"},
    messages=[{"role": "user", "content": "What is 17 * 23?"}],
)
print([block.type for block in response.content])

### Can every model turn reasoning off?

No. Some models keep reasoning and still report reasoning tokens when you send "none" or reasoning: {"enabled": false}. For those, try "low" and compare reasoning\_tokens; the cheapest setting differs by model.

The reasoning fields in GET /v1/models do not reliably tell you which models can turn it off. The only sure test is one short call with "none" and a look at usage.completion\_tokens\_details.reasoning\_tokens.

### Where is the reasoning text?

- When a model returns its reasoning, Chat Completions puts it in message.reasoning, message.reasoning\_content and message.reasoning\_details. The answer stays in message.content.
- On /v1/messages, reasoning arrives as thinking blocks before the text block.
- Do not show reasoning text to end users as if it were the answer. Some models return only a summary, and some return none.

### What do reasoning tokens cost?

Reasoning tokens are counted inside completion\_tokens and billed at the model's output rate. Hidden reasoning can be most of a reply's output, so a short answer can still cost more than its text suggests.

Set max\_tokens with room for reasoning. If reasoning uses the whole limit, the reply can end with finish\_reason "length" and little or no text.

[Models & pricing](https://straitly.ai/docs/models) [Logs & exports](https://straitly.ai/docs/logs) [Errors & limits](https://straitly.ai/docs/errors) [Prompt caching](https://straitly.ai/docs/caching)

[Structured outputs](https://straitly.ai/docs/structured-outputs) [Images & vision](https://straitly.ai/docs/vision)

---
Markdown version of https://straitly.ai/docs/reasoning.
