Anthropic: Claude Opus 4.6 to 4.7
Use this guide when moving fromanthropic/claude-opus-4.6 to anthropic/claude-opus-4.7.
Claude Opus 4.7 introduces request-shape changes that can hard-fail old 4.6 patterns if left unchanged.
What changed
- New effort level:
xhigh(Messages API) - Extended thinking budgets were removed for Opus 4.7 (
thinking: { type: "enabled", budget_tokens: ... }now fails) - Sampling params are no longer supported on this model when set to non-default values (
temperature,top_p,top_k) - Thinking content is omitted by default unless you explicitly opt in
- Updated tokenizer behavior can increase token usage vs Opus 4.6
AI Stats gateway compatibility behavior
To reduce migration breakage, AI Stats accepts legacy Opus 4.6 fields for Opus 4.7 and normalizes them before sending upstream:temperature,top_p, andtop_kare accepted but stripped- legacy thinking budgets are not forwarded
- Opus 4.7 thinking is always sent as
thinking: { "type": "adaptive", "display": "summarized" } reasoning.effortis still honored and mapped tooutput_config.effort(xhighsupported)
What to change in your integration
1. Update model ID
Move from:anthropic/claude-opus-4.6
anthropic/claude-opus-4.7
2. Move to adaptive thinking with summarized display
For Opus 4.7, use:thinking: { "type": "adaptive", "display": "summarized" }
3. Remove sampling controls
Do not send:temperaturetop_ptop_k
4. Rebaseline effort controls
If you use reasoning controls, retest with:output_config.effort = "high"as baselineoutput_config.effort = "xhigh"for hardest coding/agentic paths
reasoning.effort maps to this same output_config.effort value for Opus 4.7.
5. Recheck token ceilings
Because tokenization changed, audit:max_tokens/max_output_tokens- timeout budgets
- cost controls and alerts
What to test
- strict schema output pass rate with your production prompts
- long-running tool workflows (tool call count, completion rate, latency)
- response quality deltas at
highvsxhigh - token-cost deltas on your highest-volume prompt classes
Safe rollout
- Deploy request-shape changes before shifting traffic.
- Shadow Opus 4.7 on your production eval suite.
- Canary with rollback to Opus 4.6.
- Promote once quality, latency, and cost deltas are within target.