Claude API: Why Is Thinking Empty? Effort vs Thinking, Measured
▶ Watch on YouTube & subscribe to The Stack Underflow
You call the Claude API, and content[0] is a thinking block with thinking=''. Empty. But the usage says you paid for thinking tokens. On Sonnet 5.5 the thinking display defaults to omitted: the work happened, the text is hidden, and thinking is billed as output either way.
The one-line version: thinking is controlled by
output_configeffort, billed as output whether you see it or not, and sharesmax_tokenswith the answer.
Tested: 15 November 2026 (claude-sonnet-5-5; Python SDK anthropic 2.8.0, API version 2026-10-21; in Docker). Newer versions may behave differently.
The words first
- Thinking block: the part of the reply where the model works before answering. It can be shown, summarized or omitted.
- Effort: a setting (
output_configeffort) that nudges how much the model thinks: low, medium or high. - max_tokens: the cap on everything the model writes, thinking and answer together.
What one call showed
One call, max_tokens 1000, no thinking field:
content[0]is a thinking block withthinking=''and a signature;content[1]is the answer.- usage: input 30, output 952, of which thinking 347, so about 605 answer tokens.
- With display summarized: a 729-character summary, 288 thinking tokens.
Effort, measured
3 runs per level, same question:
| Effort | Thinking tokens | Cost per reply |
|---|---|---|
| low | no thinking block at all, in all 3 runs | 0.70-0.77 cents |
| medium | 188-356 | - |
| high (the default when not set) | 278-359 | 0.92-1.01 cents |
Medium and high overlap: effort is a nudge, not a fixed number. At low the visible answer was a bit longer, not shorter.
The old line gets a 400
thinking={"type": "enabled", "budget_tokens": 2000} gets error 400 on Sonnet 5.5:
"thinking.type.enabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.
The fix: output_config effort, here medium. The docs say "disabled" is also a 400; the lowest setting is between_tools (filmed at low effort: no thinking block came back).
max_tokens caps both
At max_tokens 300: stop_reason max_tokens, 300 tokens of thinking, no text block at all (a second try: 299). Fixes: raise max_tokens, or lower effort.
Follow-up turns
The API keeps no memory between calls; your code sends the whole conversation again. In a two-turn run, turn 2’s input was 1,042 tokens, just above turn 1’s 1,019 (question + reply, thinking block included). Send thinking blocks back exactly as you got them; never edit or drop them.
What it cost
At list price ($2 / $10 per million input / output tokens, 15 Nov 2026): this reply cost 0.958 cents, the hidden thinking 36 percent of it. The whole lab: $0.16 (21 calls + 1 error).
Your turn
Output 600, thinking 450, max_tokens 600, stop_reason max_tokens. How much answer did you get, and what are two fixes? Reply in the video’s pinned comment.
The series
Sources
Read 15 November 2026:
- Claude docs: Extended thinking
- Claude docs: Thinking, steering and cost
- Claude docs: Effort
- Claude docs: Pricing
- Claude API: Create a message
- Claude docs: Python SDK
Change notes
- 20 Nov 2026: first published, from the lab results of 15 Nov 2026.
Not affiliated with or endorsed by Anthropic. Found a mistake? Tell us in the video’s comments and we’ll correct this page.
Found this useful? The deep version lives on YouTube — new breakdowns of how AI dev tools actually work, weekly.
Subscribe on YouTube →Prefer email? Get the free newsletter: one failure, traced step by step, about once a week.