Temperature does not change what your prompt says. It changes how tightly the model sticks to the reading your prompt makes most likely. Low values sharpen the next-token probability distribution toward the likeliest tokens. High values flatten it, so less likely tokens get a chance.
That is why the two interact. A specific, well-constrained prompt already narrows the distribution, so it stays on task at a higher temperature. A vague prompt at 1.0 drifts.
Typical settings, where the API accepts one:
- Extraction and classification, JSON and tool calls:
0to0.2. - Summaries and support replies:
0.3to0.7. - Brainstorming and drafting varied copy:
0.7to1.0.
Temperature 0 is near-deterministic, not guaranteed. Tune either temperature or top_p, not both.
Some newer models take the choice away. The newest Claude models reject a non-default temperature with a 400 error, and Google advises keeping Gemini 3 at its default. There, steer variety through the prompt itself.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
The diagram below the answer is the concept . Jump to it ↓