AI glossary
Temperature
Temperature is a sampling control that changes how boldly a model picks less likely next tokens. In 2026 it is still one of the first knobs people reach for, and it is still easy to misuse. Lower values make output more repeatable. Higher values make it more varied, which can help a slogan and can hurt a legal extract.
What the number is doing
After the model scores possible next tokens, temperature rescales those scores before sampling. At a low setting, the most likely token usually wins. At a higher setting, lower-ranked tokens get more of a chance, so wording (and sometimes facts) wander.
Top-p is a related control that cuts the candidate list to a probability mass. Many production systems pick a low temperature and leave top-p at a default, rather than turning both up at once.
Practical settings
For extraction, classification, and anything you will parse, start near the low end, often at 0 if the API allows it, and use structured output. For brainstorming, a moderate raise can be useful, then a person should pick. Do not expect a high temperature to “add intelligence”; it adds randomness.
A concrete example
Example A legal clause extractor is run at a low temperature so the wording stays close to the source text.
FAQs about Temperature
Does temperature 0 make the model correct?
No. It makes the model more deterministic given the same prompt. A wrong but likely answer can still come back every time.
Why do two runs still differ at temperature 0?
Some hosts are not fully deterministic, because of batching or floating-point behaviour. Treat “low temperature” as “more stable,” not “bit-identical.”
Should I change temperature or the prompt first?
Change the prompt and the evidence first. Temperature cannot add a missing policy, and it cannot remove a confusing instruction.
Is a higher temperature better for reasoning models?
Follow the vendor’s advice for that model. Some reasoning modes use their own defaults, and extra randomness can break a careful multi-step answer.
