The Slider No One Explains
If you’ve used an AI tool through an API or a developer playground, you’ve probably seen a setting called “temperature” and skipped right past it, leaving it at whatever the default was. That single number, usually somewhere between 0 and 2, quietly controls one of the most noticeable aspects of how an AI model behaves: how predictable or how surprising its word choices are. It’s the reason the same question asked twice can come back with nearly identical answers, or wildly different ones, depending on how a product has configured its model behind the scenes.
How a Model Actually Picks Its Next Word
Under the hood, a language model doesn’t just “know” the next word in a sentence — it calculates a probability for every possible next word and then has to choose one. At temperature zero, it almost always picks the single highest-probability option, which makes output consistent and literal but also a little flat and repetitive. As temperature rises, the model becomes more willing to select lower-probability words that are still plausible, which produces more varied, creative, sometimes surprising phrasing. Push it too high, past around 1.5, and the selections become so loose that the output can turn incoherent or nonsensical, because the model starts choosing words that barely fit the context at all.
Why This Matters for What You Build or Ask
Different tasks genuinely need different temperatures, which is why there’s no universally “correct” setting. Extracting structured data from a document, writing code, or answering a factual question benefits from a low temperature, close to 0, because you want the same reliable answer every time and you want it grounded in what’s actually true rather than creatively embellished. Brainstorming marketing taglines, writing a poem, or generating varied practice dialogue benefits from a higher temperature, often between 0.7 and 1.1, because some unpredictability is the entire point — you want options you wouldn’t have thought of yourself. Many chat products quietly fix their temperature somewhere in the middle as a compromise, which is why a chatbot can feel reliable for facts but a little bland for creative requests, or vice versa.
A Setting Worth Knowing, Even If You Never Touch It
You don’t need to build anything with an API to benefit from understanding temperature. It explains why asking an AI the same question in two separate conversations can yield two different phrasings even when nothing else changed, and it reframes “creativity” in AI not as some mysterious spark but as an adjustable, deliberately engineered parameter. If you ever do get access to this setting — in a developer tool, a writing app, or an API console — treat it as a dial for how much you want the model to stick to the safest answer versus take a chance on something more original, and match it to whichever outcome the task actually calls for.