Claude, Gemini, and GPT have each started restricting how much control a developer has over temperature, top_p, and top_k, but none of the three did it the same way or on the same timeline. Anthropic rejects the parameters outright with a 400 error as of API version 2026-10-21. Google’s Gemini 4 and Gemini 3.6+ models silently ignore the values while sending back a deprecation warning. OpenAI’s reasoning-focused models reject the parameter with an explicit error, while its non-reasoning chat models still accept it normally as of this writing.
temperature, top_p, and top_k are the three parameters that have historically let a developer control how predictable a model’s next-token choice is. A low temperature biases the model toward its highest-probability tokens, which tends to produce more repeatable output across identical calls; a higher value spreads probability across more candidates, which tends to read as more varied or creative. top_p and top_k cut the candidate pool in different ways before that sampling happens. None of this is new, which is exactly why providers quietly removing the ability to tune it is worth tracking — a lot of production systems set these values without anyone on the team remembering why, and that code is what breaks first.
Photo: PattayaPatrol / Wikimedia Commons, licensed CC BY-SA 4.0.
Claude: a hard rejection, no partial credit
Anthropic’s approach is the strictest of the three. Its own migration guide states the parameters are removed and that sending any of them “returns 400, even at default values.” We covered the mechanics in detail in our walkthrough of the 2026-10-21 breaking change, but the short version is that there’s no silent fallback and no warning header — the request simply fails, and the only way to keep setting these values is to stay on the older 2023-06-01 version header for those specific calls.
Gemini: ignored, with a warning, not rejected
Google takes a softer path for its newest models. Gemini’s own text generation documentation states plainly that “Gemini 4 and Gemini 3.6+ models ignore custom values for temperature, top_p, and top_k,” and that these models return a deprecation warning header when such values are sent rather than an error. The request still succeeds; the sampling values just don’t do anything. That’s a meaningfully different failure mode from Claude’s: a Claude integration finds out immediately, in the form of a failed request, while a Gemini integration can run for weeks with code that silently has no effect, unless someone is specifically watching response headers for the deprecation warning.
Google’s own documentation page is internally inconsistent about this, which is worth flagging if you go read it yourself: the REST example directly below that note still sends "temperature": 1.0 inside generation_config for a gemini-3.8-flash request — a model that falls inside the “Gemini 3.6+” range the note just described as ignoring the field. The documentation doesn’t explain the conflict, which makes a direct test against your specific model version worth doing before you trust either the prose or the example literally.
OpenAI: it depends which model answers your request
OpenAI hasn’t published a migration guide comparable to Anthropic’s or a documentation note comparable to Google’s, so the clearest evidence of its behavior comes from developers hitting the error directly and reporting it on OpenAI’s own community forum. Multiple threads, including one specifically about GPT-5 models, describe the API returning “Unsupported parameter: ‘temperature’ is not supported with this model” for reasoning-oriented models, while sending the literal default value of 1 succeeds and any other value fails validation. Reports in that same thread conflict on exactly which GPT-5 variants are affected — some users found gpt-5-mini and gpt-5-nano rejected it, others didn’t reproduce that — which is itself informative: OpenAI’s support surface for this parameter isn’t uniform across a single model family the way Anthropic’s or Google’s decisions are, so testing your exact model string directly is the only reliable way to know.
Side-by-side comparison
| Provider | What happens if you send temperature | Failure mode | Source |
|---|---|---|---|
| Claude (API version 2026-10-21) | Request rejected | 400 invalid_request_error, loud and immediate | Anthropic migration guide |
| Claude (API version 2023-06-01) | Value applied normally | No change — still supported on the older version | Anthropic migration guide |
| Gemini 4 and 3.6+ | Value silently ignored | Deprecation warning header only, request succeeds | Gemini text generation docs |
| Gemini, earlier models | Value applied normally | No change noted in the documentation | Gemini text generation docs |
| GPT-5 reasoning variants | Request rejected for most variants, per user reports | “Unsupported parameter” validation error | OpenAI developer community (not an official doc) |
| GPT-5 non-reasoning / chat variants | Value applied, per user reports | No change reported | OpenAI developer community (not an official doc) |
The three providers also differ in how precisely they date the change, which matters if you’re trying to figure out whether a bug report from your team predates or postdates it. Anthropic is the most precise: 2026-10-21 is a literal version string, so there’s no ambiguity about when the new behavior applies. Google’s documentation carries no change date on the note itself, only a “last updated” stamp on the page as a whole, so you can’t tell from the docs alone whether the ignore-and-warn behavior shipped last week or months ago for a given model. OpenAI is the least documented of the three here: the behavior is confirmed only through developer reports going back to shortly after GPT-5’s reasoning-model variants launched, with no changelog entry or blog post from OpenAI itself pinning a date.
What none of the three providers explain
None of the three providers’ documentation states an engineering reason for walking back sampling control. The pattern worth noticing instead of a stated reason: in all three cases, the restriction lands specifically on newer, reasoning-oriented models — Claude’s latest API version, Gemini 4 and 3.6+, and OpenAI’s GPT-5 reasoning variants — while older or non-reasoning models in the same families keep accepting the parameters. These are the same models that expose a separate reasoning-depth control instead — thinking budgets on Claude, reasoning_effort on OpenAI, and comparable settings on Gemini, which we compared directly in our piece on how each provider lets you dial reasoning depth. That correlation doesn’t prove a cause, and none of the three companies has said publicly that a fixed sampling strategy is required for their newer reasoning pipelines to behave consistently. It’s a reasonable pattern to notice, not a documented fact, so treat it as context rather than something to cite as confirmed.
What to check before you build a cross-provider prompt layer
- Don’t assume a sampling parameter that works against one provider’s model will even be accepted by another — test each provider and each specific model string separately, not just each provider’s API as a whole.
- For Gemini, add a check for the deprecation warning header rather than trusting that a 200 response means your sampling values had any effect.
- For OpenAI, log the exact model string alongside any parameter-related error, since support appears to vary within the GPT-5 family itself rather than being consistent across it.
- For Claude, pin the specific calls that still need sampling control to
anthropic-version: 2023-06-01rather than assuming the whole integration has to move together — see our checklist for the 2026-10-21 migration for the mechanics. - If your code picks a model dynamically — through a router or a shared abstraction layer — sampling parameters are exactly the kind of field that silently breaks when the router switches providers, since the three failure modes above (reject, ignore, sometimes-reject) aren’t interchangeable.
- Audit any third-party SDK or framework in your stack that sets a default
temperatureon your behalf — several popular wrapper libraries do this even when your own code never mentions the parameter, and that default is exactly what will start failing silently or loudly depending on which provider sits behind it.
If you were using temperature as a proxy for output format
A lot of sampling-parameter usage in production systems was never really about creativity — it was an indirect way to get more predictable output shape. If that was the actual goal, structured output modes across these same three providers do that job more directly and survive this entire category of breaking change, since none of the three vendors has touched schema-constrained output the way they’ve touched sampling. It’s also worth checking how each provider reports a response that got cut short for a different reason entirely — we compared stop_reason and finish_reason handling across the same three APIs, which is a separate but related place where the three providers don’t agree on a shared convention.
FAQ
Will OpenAI’s non-reasoning models eventually lose temperature support too? There’s no official statement either way. The pattern across all three providers has so far tracked reasoning-oriented models specifically, but extrapolating that forward to non-reasoning models is a guess, not something any of the three companies has committed to.
Does sending the default value (1.0 for Claude and OpenAI) ever help avoid the error? No, for Claude and the affected OpenAI models specifically: Anthropic’s guide states the parameter is rejected “even at default values,” and OpenAI community reports describe the literal default value of 1 succeeding in some cases, but that behavior isn’t documented as guaranteed. The safer fix in both cases is to remove the key entirely rather than set it to the default.
Does this affect older models like Claude Sonnet 4.6 or GPT-4.1 directly? Not based on current documentation. Anthropic’s restriction is tied to the API version header rather than the model, so an older model called on 2023-06-01 still accepts sampling parameters; Google’s note names Gemini 4 and 3.6+ specifically, leaving earlier Gemini models unaffected; and OpenAI’s reports are specific to reasoning-oriented GPT-5 variants, not the broader GPT-4.x line.



