Temperature is a sampling setting that controls how much randomness the model uses when choosing each next token.
Lower values make outputs more predictable, higher values more varied. Even at zero, results are not guaranteed to be identical between runs, and some model families do not let you change the setting at all.
Low temperature suits extraction and classification, where you want the most likely answer. Higher values help with brainstorming and varied phrasing. Temperature changes how output is sampled. It does not make the model know more or reason better.
Common mistake. Setting temperature to zero and assuming the system is deterministic, so a test needs no repeats.
In practice. Measure run-to-run spread on your eval, and set pass thresholds wider than that spread. For noisy tasks, run each case several times and take the majority.
An eval is a repeatable test for software that uses a model. It has a set of inputs, a way to run your feature on them and a grader that scores each output, and it returns a rate instead of a pass or fail. Run it on every change to a prompt, model or retrieval setting.
Structured output means getting a model to return data in a fixed shape, usually JSON that matches a schema, instead of free prose. Some providers can constrain generation to a schema. In every case you should still validate the result in code, because a valid shape does not mean correct values.
Cite this page
Eldan Abdrashim. "Temperature." Eldan.ai, 23 November 2026. https://eldan.ai/glossary/temperature.
The date you read it is added when you copy.
BibTeX
@online{abdrashim2026temperature,
author = {Eldan Abdrashim},
title = {Temperature},
organization = {Eldan.ai},
date = {2026-11-23},
year = {2026},
month = nov,
url = {https://eldan.ai/glossary/temperature},
langid = {english}
}