THREE MINUTE AIGet it free

Word of the Day

Temperature (LLM)

Temperature is a setting that controls randomness in AI output: low is focused and consistent, high is varied and creative.

Get it free

Temperature is a number (commonly 0 to 1, sometimes up to 2) that controls how much randomness the model uses when choosing each next word. Near 0, it picks the most likely words — deterministic, repeatable, good for extraction, code, and factual tasks. Higher values let it sample less-likely words — more varied and creative, better for brainstorming and copy.

It is a generation setting, not a prompt technique, and is usually exposed only through APIs or developer tools rather than consumer chat apps. If you need the same answer every time, set it low; if outputs feel repetitive, raise it.

What temperature actually changes

Before it writes each word, a language model scores every word that could come next. Temperature decides how strictly it follows those scores. Under the hood, the scores are divided by the temperature before they are turned into probabilities: below 1, the favourite becomes even more likely; at 1, the model uses its scores as they are; above 1, the odds even out and long shots get picked more often.

So temperature never teaches the model anything or makes it smarter. It only changes how often the model picks something other than its first choice.

The same prompt at two settings

Ask for a name for a weekly team update email. Run it five times near 0 and you will usually get the same plain answer, or something very close to it. Run it five times near 1 and you will get five different names, some of them better and some of them odd. Neither run is wrong. One is built for consistency and the other for range.

Which setting for which job

  • Pulling facts out of a document, classifying, filling a template, writing code: low, about 0 to 0.3.
  • Drafting emails, summaries and everyday writing: the middle, about 0.5 to 0.7.
  • Brainstorming names, angles and headlines: high, about 0.8 to 1.0.

Three things temperature does not do

  • It does not make answers more accurate. A low setting makes the model repeat its most likely answer, and if that answer is wrong it will be wrong every time. Check facts the same way at any setting.
  • A setting of 0 is repeatable in theory, not a promise in practice. Most services get very close, but small differences between runs can still happen.
  • It is not the only way to get variety. Asking for ten options, each from a different angle, usually beats raising the temperature, and you can do that in any chat app.

Where you can change it

In most consumer chat apps you cannot: the app chooses a setting for you. You will find it in API settings, developer playgrounds and some automation tools that call a model. If you only use a chat app, the prompt is your control instead: say whether you want one dependable answer or a spread of options.

Related: top p · token · hallucination

One of these most weekday mornings

Three minutes. One prompt, one word, one skill. You're now better at AI than you were yesterday.

Free. All terms