Fix OpenAI "Unsupported value: 'temperature'" (reasoning)
OpenAI 400 Unsupported value: 'temperature' means a reasoning model only accepts the default 1. Remove temperature, top_p and top_logprobs from the request.
Unsupported value: 'temperature' does not support 0.0 with this model. Only the default (1) value is supported.You sent a temperature other than 1 to a model that is reasoning, and it answers 400. Remove temperature (and top_p, top_logprobs) from the request. It may be accepted at reasoning effort none, but no official sentence confirms that (step 4).
[1] Tell the two variants apart. Responses quoted in public issues show the same cause in two shapes.
| Message | code | Meaning |
|---|---|---|
Unsupported value: 'temperature' does not support 0.0 with this model. Only the default (1) value is supported. | unsupported_value | The key is accepted, but only the value 1 |
Unsupported parameter: 'temperature' is not supported with this model. | unsupported_parameter | The key itself is rejected (reported for o3-mini in 2025) |
In both, param is temperature and type is invalid_request_error. The number in the message (0.0, 0.1, 0.299...999) is whatever value you sent.
{'error': {'message': "Unsupported value: 'temperature' does not support 0.0 with this model. Only the default (1) value is supported.", 'type': 'invalid_request_error', 'param': 'temperature', 'code': 'unsupported_value'}}[2] Remove the sampling parameters from the request. The official latest-model guide says that for the GPT-6 family, when reasoning effort is not none, you remove temperature, top_p and top_logprobs; in Chat Completions also logprobs, and in Responses message.output_text.logprobs from include. Remove them together, or the next key fails right after.
{ "model": "gpt-6.1-terra", "messages": [{"role": "user", "content": "..."}]}Sending temperature: null is not a safe fix either. On the official forum a user reported that passing None through the Python SDK still raised the error; not sending the key at all is the reliable route. Another user on the same forum noted that 1 passes, but 1 is the default, so sending it does nothing.
[3] If you never set reasoning effort, suspect the default. Without reasoning_effort the model uses its default, and per the guide GPT-6.1 Terra and GPT-6.1 Sol default to medium. So a request with no effort and temperature: 0 gets this 400. The guide did not show the defaults for the other GPT-6 models.
[4] If you really need temperature, try a model that accepts none and send reasoning_effort: "none" with it. The guide says GPT-6.1 Terra, GPT-6 Sol and GPT-6 Luna support none, while GPT-6 Astra and GPT-6.1 Sol do not. By that rule, there is no way to use temperature on Astra or 6.1 Sol. Switching the model without setting the effort is not enough: supporting none does not mean none is the default, and a public issue (2026-10) shows this exact temperature 0.0 error on GPT-6 Luna.
{ "model": "gpt-6.1-terra", "reasoning_effort": "none", "temperature": 0.2, "messages": [{"role": "user", "content": "..."}]}[5] If your code relied on temperature: 0 for repeatable output, move that job elsewhere. For classification or extraction, pin the format with Structured Outputs and validate the result in code. That still does not guarantee identical wording each time. The docs offer no official way to control sampling randomness on reasoning models.
[6] Check whether a library or tool adds the value. Frameworks and plugins often send a default such as temperature: 0.7. Clear that setting, or upgrade to a version that drops the key by model. One public repository changed its code to omit temperature whenever the model name is o plus a digit or gpt-5 and later. Model-name rules like that need updating whenever a new model ships.
If the same request rejects max_tokens, see Fix OpenAI "Unsupported parameter: 'max_tokens'". If the key itself is rejected, see Fix OpenAI API 401 "Incorrect API key provided".