Anthropic Deprecates Temperature, Top_P, and Top_K on Newer Opus Models

Key facts
Date13 Jun 2026

Anthropic has officially deprecated the use of custom temperature, top_p, and top_k values on Claude Opus 4.7 and later models, including Opus 4.8.

Starting with these newer versions, setting any of these sampling parameters to non-default values now returns a 400 error. The change is part of Anthropic’s broader effort to simplify model behavior and push developers toward prompt-based control.

Key Details

  • Affected models: Claude Opus 4.7 and all subsequent Opus versions (including the current claude-opus-4-8)
  • What happens: Requests that include non-default values for temperature, top_p, or top_k will fail with a 400 error
  • Recommended approach: Omit these parameters entirely from API requests and control output behavior through prompting instead

Official Guidance

From Anthropic’s Model Deprecations page:

temperature, top_p, top_k — Deprecated (Claude Opus 4.7 and later)
Returns 400 error if set to non-default value on Claude Opus 4.7 and later (including 4.8).
Recommended: Omit and use prompt engineering.

From the Migration Guide:

“Setting temperature, top_p, or top_k to any non-default value on Claude Opus 4.7 returns a 400 error. The safest migration path is to omit these parameters entirely from request payloads.”

Official sources:

  • Model Deprecations page: https://platform.claude.com/docs/en/about-claude/model-deprecations
  • Migration Guide: https://platform.claude.com/docs/en/about-claude/models/migration-guide

What Developers Should Do

Teams migrating to Opus 4.7 or Opus 4.8 should remove these three parameters from their API calls. Anthropic states that the safest and cleanest approach is to rely on well-crafted system prompts and user instructions to guide model behavior instead of traditional sampling tweaks.

This change aligns with other recent updates (such as the shift to adaptive thinking and the new effort parameter) that give Anthropic more direct control over how the model reasons and responds.

Developers still using older Opus versions should plan to update their code as part of any migration to the current 4.8 generation.

Everything on record: Anthropic
Narracomm · The Record

Anthropic

Everything Narracomm has filed on Anthropic.

Updated 11 Oct 2026 · Links open our coverage; primaries are cited there
Headline DateCoverage
Anthropic Commits $150 Million Over Three Years to Genesis Mission for Claude Access 10 Oct 2026 Read More →
Anthropic Commits $100 Million to Claude Frontier Academy Training 10,000 Frontier Deployed Engineers by End of 2027 5 Oct 2026 Read More →
Barclays scales Claude Code to 50% of developers by end-2026, majority in 2027 1 Oct 2026 Read More →
TeraWulf Announces 20-Year Lease With Anthropic At Justified Data Campus 7 Jul 2026 Read More →
Nobel Laureate John Jumper Departs Google DeepMind for Anthropic 22 Jun 2026 Read More →
U.S. Commerce Department Orders Anthropic to Seek Approval for Foreign National Access to Fable 5 and Mythos 5 Models 19 Jun 2026 Read More →
Anthropic Enforces Hard Retirement for Two Claude 4 Models Today — Sonnet-4-20250514 and Opus-4-20250514 Cut Off June 15, 2026 15 Jun 2026 Read More →
Anthropic Lands OpenAI Custom Chip Engineer Clive Chan 13 Jun 2026 Read More →
Anthropic Deprecates Temperature, Top_P, and Top_K on Newer Opus Models 13 Jun 2026 Read More →
claude-mythos-preview to Retire June 30, Migrate to claude-mythos-5 13 Jun 2026 Read More →
Claude Opus 4 and Sonnet 4 Retirement Deadline Hits This Weekend 13 Jun 2026 Read More →
Anthropic Sets Retirement Dates for Multiple Claude Models 13 Jun 2026 Read More →
Last updated 4 Oct 2026 · Narracomm · The Record · every figure cites its primary above.
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x