Claude 4.7 Migration Guide
Migrate to Claude 4.7 Opus — sampling parameters removed, adaptive-only thinking, and new xhigh effort level
What’s New
Claude 4.7 Opus introduces three major changes:
- Sampling parameters removed —
temperature,top_p, andtop_kare no longer supported and will be ignored - Adaptive-only thinking —
thinking.budget_tokensis no longer supported;reasoning.effortandreasoning.max_tokensare ignored (adaptive thinking is used instead) - New
'xhigh'effort level — A new effort level between'high'and'max'viaverbosity/output_config.effort
Sampling Parameters Removed
Claude 4.7 Opus no longer accepts temperature, top_p, or top_k. If you pass these parameters, they will be silently ignored — your request will still succeed, but the parameters will have no effect.
Adaptive-Only Thinking
Claude 4.7 Opus uses adaptive thinking exclusively. The model determines how much to think based on task complexity — you cannot set a fixed token budget.
This means:
reasoning.max_tokensis ignored (adaptive used) — budget-based thinking is not availablereasoning.effortis ignored (adaptive used) — the model decides its own reasoning depth- The raw Anthropic
thinking.budget_tokensparameter is not supported
To control overall response effort, use verbosity instead (see below).
New 'xhigh' Effort Level
A new 'xhigh' effort level is available between 'high' and 'max' via the verbosity parameter. This maps to Anthropic’s output_config.effort.
The full effort scale is now: low → medium → high → xhigh → max
'xhigh' is only supported on Claude 4.7 Opus. 'max' is supported on Claude 4.6+. For older models, both automatically fall back to 'high'.
Verbosity Is Now the Primary Control
Since sampling parameters and reasoning budgets are removed, verbosity (which maps to output_config.effort) is the main way to influence Claude 4.7 Opus behavior: