Learn AI, Plainly How AI Works

Temperature

SAFEWILD

TLDR A setting that controls how predictable or adventurous an AI's word choices are.

You've seen it

The developer settings for both OpenAI's and Anthropic's models include a temperature dial. Anthropic's runs from 0 to 1, OpenAI's from 0 to 2. Chat apps choose a value for you, which is why the same question can get a differently worded answer each time.

Source: Anthropic API reference

Try it

Move the dial

“Our Q3 results were ”

1.0
  • strong43%
  • mixed24%
  • better than expected16%
  • disappointing12%
  • a rollercoaster5%
  • purpleunder 1%

The starting odds are illustrative. The way the dial reshapes them is the real formula models use.

Plainly

At each step, the model has odds for every possible next word. Temperature reshapes those odds. Turn it down and the model almost always takes its top choice, so answers are consistent and a bit flat. Turn it up and long shots get a real chance, so answers vary more and wander more.

A low temperature does not make the AI correct. It makes it consistently pick its best guess, which can still be wrong. Use low settings for extracting data or sorting tickets, higher ones for brainstorming.

Ask this

“Is our AI set for consistency or for creativity, and did anyone choose that on purpose?”

Last checked

. Facts in this field move fast, so every entry is rechecked when they do.

All AI, Plainly terms