# Extended thinking

> Extended thinking gives Claude a token budget to reason before it answers. How budget_tokens works, why Claude 4.7 and later reject it, and the OpenAI equivalent.

Canonical: https://scaplet.com/glossary/extended-thinking

Glossary Glossary · AI search

Extended thinking gives Claude a token budget to reason before it answers. How budget_tokens works, why Claude 4.7 and later reject it, and the OpenAI equivalent.

2 min

read

3

sources

Oct 30, 2026

updated

Scaplet Editorial Team

author

In one line

Extended thinking is Claude's manual reasoning mode: you set `thinking: {type: "enabled", budget_tokens: N}` and Claude reasons against that budget before it answers. Anthropic now calls it deprecated. Claude 4.7 and later models reject it with a 400 error and use adaptive thinking, where `effort` sets the depth.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fextended-thinking%20(%22Extended%20thinking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fextended-thinking%20(%22Extended%20thinking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fextended-thinking%20(%22Extended%20thinking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fextended-thinking%20(%22Extended%20thinking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

thinking.type: enabled with budget_tokens

Parameter

1,024 tokens

Minimum budget

Output tokens

Billed as

400 error; use adaptive thinking

Claude 4.7 and later

_01_At a glance

## Anatomy of a manual-thinking request

Field

### `thinking.type`

Rule from the docs

`enabled` turns on manual mode

Field

### `budget_tokens`

Rule from the docs

At least 1,024 and less than `max_tokens`. It is a target, not a strict cap.

Field

### `max_tokens`

Rule from the docs

The hard ceiling on total output. Thinking [tokens](/glossary/tokenization) count toward it.

Field

### Response `thinking` blocks

Rule from the docs

Contain a summary of the reasoning, followed by `text` blocks with the answer

Field

### `usage.output_tokens_details.thinking_tokens`

Rule from the docs

How many billed output tokens were reasoning

From Anthropic's extended thinking docs

```
{ "model": "claude-sonnet-4-6", "max_tokens": 16000, "thinking": { "type": "enabled", "budget_tokens": 10000 }, "messages": [ { "role": "user", "content": "Are there an infinite number of prime numbers such that n mod 4 == 3?" } ] }
```

The exception to the budget-below-`max_tokens` rule is interleaved thinking in manual mode, where the budget spans all thinking blocks in one assistant turn. Anthropic also advises batch processing for budgets above 32k to avoid timeouts.

_02_At a glance

## Manual versus adaptive

### Request

Extended thinking (manual)

`thinking: {type: "enabled", budget_tokens: N}`

Adaptive thinking

`thinking: {type: "adaptive"}` plus `output_config: {effort: ...}`

### Who decides

Extended thinking (manual)

[Claude](/ai-search/anthropic/ads) thinks on every request

Adaptive thinking

Claude decides whether and how much to think; at lower effort it may skip thinking on easy inputs

### Claude 4.5 family and earlier

Extended thinking (manual)

Supported

Adaptive thinking

`type: "adaptive"` returns a 400 error

### Claude Opus 4.6 and Sonnet 4.6

Extended thinking (manual)

Deprecated

Adaptive thinking

Supported

### Claude 4.7 and later

Extended thinking (manual)

`type: "enabled"` returns a 400 error

Adaptive thinking

Use this

The migration Anthropic shows, after

```
{ "model": "claude-sonnet-4-6", "max_tokens": 16000, "thinking": { "type": "adaptive" }, "output_config": { "effort": "high" } }
```

_03_At a glance

## Cost and visibility, Claude and OpenAI

Question

### Billing

Anthropic

Thinking tokens are billed as output tokens, even if the text is not returned

OpenAI reasoning models

Reasoning tokens are billed as output tokens

Question

### What you can read

Anthropic

A summary, never the raw chain of thought; `display` can be `summarized` or `omitted`

OpenAI reasoning models

Raw reasoning stays hidden; set `reasoning.summary` to `auto` for a summary

Question

### Depth control

Anthropic

`budget_tokens`, or `effort` in adaptive mode

OpenAI reasoning models

`reasoning.effort`, for example `low`, `medium`, `high`

Question

### Cap interaction

Anthropic

Thinking counts toward `max_tokens`

OpenAI reasoning models

`max_output_tokens` includes reasoning; hitting it can leave no visible text but still bill you

[OpenAI](/ai-search/chatgpt/how-it-finds-sources) recommends reserving at least 25,000 tokens for reasoning and output combined when you start out. Reasoning also takes up space in the [context window](/glossary/context-window).

_04_How it works

## Decide and verify

Stay on manual thinking when
- You are on a Claude 4.5 model, where adaptive is not available.
- You need predictable latency or precise control over thinking cost, which Anthropic says manual mode still suits.

Move to adaptive when
- You use Claude Opus 4.6 or Sonnet 4.6, where `budget_tokens` is deprecated.
- You use Claude 4.7 or later, where `type: "enabled"` returns a 400 error.

**Changing the budget costs you the cache**Anthropic ran a three-request test on Claude Sonnet 4.6 with message-level caching. Changing `budget_tokens` from 4,000 to 8,000 on the third request produced a cache miss and a rewrite of 1,370 cached tokens. Pick a budget and hold it for the life of a cached conversation. See [prompt caching](/glossary/prompt-caching).

1. 01

### Read `thinking_tokens`

Check `usage.output_tokens_details.thinking_tokens` to see what a budget really costs.
2. 02

### Check `max_tokens`

If replies are empty or cut short, the budget plus the answer may exceed it.
3. 03

### Grep for `budget_tokens`

Any request builder that still sends it will fail on Claude 4.7 and later models.

Questions

## Asked a lot.

1 questions people ask next, answered from the sources on this page.

_01_ Does extended thinking work on Claude Sonnet 5.5?

No. Anthropic lists Claude Sonnet 5.5 among the 4.7-or-later models where `thinking: {type: "enabled"}` returns a 400 error. Use `thinking: {type: "adaptive"}` and set depth with `effort`.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- claude.com
- openai.com

1. 01 [Extended thinking (Claude docs)](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) platform.claude.com · checked 2026-11-01
2. 02 [Thinking (Claude docs)](https://platform.claude.com/docs/en/build-with-claude/thinking) platform.claude.com · checked 2026-11-01
3. 03 [Reasoning models (OpenAI developer docs)](https://developers.openai.com/api/docs/guides/reasoning) developers.openai.com · checked 2026-11-01

## Keep learning

[All glossary](/glossary)

[Learn Prompt caching AI search](/glossary/prompt-caching) [Related AI Agents AI search](/glossary/ai-agents) [Read next Temperature AI search](/glossary/temperature) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Evergreen Content](/glossary/evergreen-content) [Expired domain](/glossary/expired-domain) [External links](/glossary/external-links) [Faceted navigation](/glossary/faceted-navigation)

More in AI search
[AI detection](/glossary/ai-detection) [AI Hallucination](/glossary/ai-hallucination) [AI Mode](/glossary/ai-mode) [AI Overviews](/glossary/ai-overviews) [AI search](/glossary/ai-search) [AI visibility](/glossary/ai-visibility) [Answer engine optimization](/glossary/answer-engine-optimization) [ChatGPT search](/glossary/chatgpt-search) [Chunking](/glossary/chunking) [Context window](/glossary/context-window) [Conversational AI](/glossary/conversational-ai) [Embeddings](/glossary/embeddings) [Extended thinking](/glossary/extended-thinking) [Fine-tuning](/glossary/fine-tuning) [Generative engine optimization](/glossary/generative-engine-optimization) [Grounding](/glossary/grounding) [Knowledge cutoff](/glossary/knowledge-cutoff) [Large Language Model](/glossary/large-language-model) [Model Context Protocol](/glossary/model-context-protocol) [Multimodal AI](/glossary/multimodal-ai) [Prompt caching](/glossary/prompt-caching) [Prompt engineering](/glossary/prompt-engineering) [Prompt tracking](/glossary/prompt-tracking) [Reranking](/glossary/reranking)

Terms on this page
[Tokenization](/glossary/tokenization) [Context window](/glossary/context-window) [Prompt caching](/glossary/prompt-caching)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
