4.2 Adaptive Thinking, Effort Controls & Sampling Parameters

Key Takeaways

  • Adaptive thinking selects reasoning depth dynamically; supported legacy manual thinking uses budget_tokens instead.

  • On the Messages API, supported output_config.effort levels are low, medium, high, xhigh and max; support and defaults depend on the model.

  • Changing top-level effort can invalidate message caches and, for some models, tools/system prefixes; supported per-message effort can preserve a prior cached prefix.

  • Current API versions and model families may reject legacy sampling parameters; even supported temperature=0 does not guarantee deterministic output.

  • Generated reasoning tokens count as output tokens for billing, max_tokens, and applicable output rate limits even when thinking text is hidden.

Last updated: December 2026

Adaptive Thinking, Effort Controls & Sampling Parameters

Reasoning configuration matters alongside model choice. The goal is not maximum thinking on every request; rather, choose a configuration that meets the task's quality requirements within its latency and token budget. Test configurations with actual output and usage metrics, not just visible text length.

Adaptive thinking versus legacy manual thinking

On models supporting legacy extended thinking, a request can specify a numeric budget_tokens for thinking. It is a budget, not a guarantee of exactly that many generated tokens. A fixed manual allocation may not fit the varied tasks in a production workload. Adaptive thinking can instead vary the depth of reasoning according to the task and the effort setting. Use the supported thinking configuration for the selected model and API version.

As of December 3, 2026, Claude Fable 5.2 and Opus 5.5 use adaptive thinking that cannot be switched off. Sonnet 5.5 and Haiku 5.5 have their own thinking-mode constraints, so check the mode and effort combination rather than assuming that thinking can always be disabled. For example, Haiku 5.5 supports thinking: {"type": "disabled"} at high effort or below, but not at xhigh or max. Current adaptive-only models do not accept the old manual extended-thinking configuration.

Effort as a behavior control

On the Messages API set effort inside output_config, e.g. output_config: {"effort": "medium"}. The supported levels are model-dependent. The four latest broadly available models in the preceding section support all five levels. Fable 5.2 and Sonnet 5.5 default to high, while Opus 5.5 and Haiku 5.5 default to medium.

Effort levelTypical trade-offCandidate workload
lowMore conservative token usageSimple bounded extraction or latency-sensitive routing
mediumBalance capability, duration and spendEveryday multi-step tasks
highMore thorough work where neededDifficult analysis or multi-step synthesis
xhighExtended effort where supportedLong-horizon work with measured quality gains
maxPrioritizes capability over token economyRare tasks where additional effort demonstrably matters

Effort steers text generation, tool use and reasoning, not just thinking blocks. It is not a numeric token limit or a guaranteed latency target. A low-effort model can still reason on difficult tasks, and higher effort is not proof of higher accuracy for a particular input. Tune using representative evaluations: for a hypothetical workload, if medium meets the target and high consumes twice as many tokens without measurable quality gains, choose medium. If a difficult subset fails at medium, test higher effort for that subset rather than increasing every request.

Thinking tokens, output budgets and latency

Reasoning text may be omitted or summarized in the response. This does not eliminate the underlying thinking-token cost. Generated thinking tokens bill at output rates and count against the current response's hard max_tokens limit, and actual generated output contributes to the applicable OTPM rate limit. Thinking can occur before visible text or between tool calls. Measure time to first visible answer separately from initial streaming events.

Consider an example in which a short JSON result requires 50 ordinary response tokens and 8,000 generated thinking tokens. The output-token usage is 8,050 (161 times the visible count), so capacity sizing based only on visible text is incorrect. The figures are hypothetical, not a predicted usage level for any effort. If max_tokens is too small, generation may stop before the required response is complete. Check the stop reason and perform a controlled recovery where appropriate.

Effort changes and the prompt cache

Caching relies on a matching prefix, including tools, system and messages. Changing a request's top-level thinking configuration or output_config.effort can invalidate message caches; tools and system caches can be affected too, depending on the model. Sending the default effort explicitly is equivalent to omitting it. Do not assume a full 90,000-token cold cache on every effort change.

Current supported models and surfaces offer a beta per-message effort change using an appended system-role message with output_config.effort. On compatible thinking modes this preserves the unchanged prefix rather than rewriting the earlier request. Support is model-, feature-, and platform-dependent. A team needs to check the actual setting and API version, preserve the stable prefix, and inspect cache_read_input_tokens, cache_creation_input_tokens and input_tokens to verify behavior. Where the required mechanism is unavailable, compare a separately scoped request against the cost of a cache miss; do not fragment a task solely to maintain a cache if it loses needed context.

Sampling and regression tests

Older Claude model/API combinations may accept temperature, top_p and top_k. Temperature affects variation in sampling; nucleus sampling limits the candidate distribution. Lower temperature on compatible models can reduce variation, but it does not promise identical output. Newer models and the current Claude API version 2026-10-21 do not provide the same sampling controls; for example, Haiku 5.5 guidance explicitly says to omit those fields. Use documented parameters rather than adding legacy sampling values to newer requests.

When supported, custom stop_sequences can end generation when a matching string occurs; the response reports a corresponding stop reason. This is not a way to enforce the truth or completeness of an answer. In production, inspect the finish state and parse the intended structured output instead of trusting delimiter text.

For regression testing, validate the fields, their types, semantic correctness, and task success. Two JSON objects may have equivalent values but different whitespace or field ordering, so a raw string hash can report a false regression. Even for a model/API with temperature zero, do not assume byte-identical output or that generated text is a security signature. Pin configurations and versioned datasets, run repeated trials when necessary, and compare output behavior against explicit acceptance thresholds.

Official references

Test Your Knowledge

A compatible Claude model has cached a long repository context. The application changes the request-level output_config.effort from medium to high on the next call instead of using the supported beta per-message effort mechanism. What should the architect expect and measure?

A

Claude ignores the effort change until a new session ID is generated, preserving the cache

B

Only the newly appended user message is uncached; the 90,000-token prefix remains a cache hit

C

Changing top-level effort can invalidate the message cache and may also affect tools/system cache depending on model; inspect usage fields rather than assuming a full miss.

D

The API automatically lowers max_tokens by 50% to offset the increased reasoning effort

Test Your Knowledge

An engineering team moves from a supported legacy manual extended-thinking model to a newer adaptive-thinking model that uses medium effort. The workload includes simple FAQ lookups and multi-step analysis. What is the primary benefit of adaptive thinking?

A

It varies reasoning depth with the task and chosen effort instead of requiring a fixed manual thinking budget.

B

It guarantees byte-identical responses across repeated calls regardless of distributed hardware batching

C

It excludes internal thinking tokens from both billing and Output Tokens Per Minute (OTPM) rate limits

D

It locks Time-To-First-Token under 200ms even when the model executes deep multi-step reasoning

Test Your Knowledge

A real-time autocomplete endpoint on a model supporting max effort has a 350ms p95 target and 30-token visible completions. Usage telemetry shows high generated thinking-token counts and OTPM throttling at that configuration. Which explains the evidence?

A

effort: "max" disables HTTP keep-alive connections and forces synchronous TLS handshakes per token

B

effort: "max" sets temperature=1.0, causing the model to loop endlessly on short completions

C

effort: "max" rejects prompts shorter than 10,000 tokens unless batched asynchronously

D

Generated thinking tokens can delay visible output and count toward actual output-token usage and OTPM even if the visible completion is short.

Test Your Knowledge

A QA team builds regression tests for an invoice-extraction service on an older model/API combination that supports temperature=0, by setting that value and asserting exact SHA-256 hash equality between today's JSON string output and a golden baseline recorded last month. Occasionally a test fails even though the extracted fields and values are identical. Why does this happen?

A

temperature=0 only applies to system prompts and leaves user messages at temperature=1.0

B

Even when supported, temperature zero does not guarantee byte-identical output; equivalent JSON may have different serialization.

C

JSON keys are randomized on every API call unless stop_sequences contains a closing brace

D

Adaptive thinking ignores temperature=0 and injects random whitespace tokens into JSON output

Sections you finish are checked off in the contents.