What temperature is
Temperature is a setting that controls how predictable or varied an AI model's answers are. At a low temperature, the model gives steady, focused answers and repeats itself closely if asked the same thing twice. At a high temperature, it gives more varied and surprising answers, and asking twice gives two quite different results.
The name is borrowed loosely from physics, where higher temperature means more random movement of particles. In AI, it is simply a number, usually between 0 and 1 or 0 and 2 depending on the provider, that developers can set when they send a request to a model.
Why the setting exists
A language model writes one small piece of text at a time. These pieces are called tokens and are often a word or part of a word. For each new token, the model calculates how likely every possible next token is. After the words the cat sat on the, mat might be very likely, floor fairly likely, and piano unlikely but possible.
The model then has to pick one. If it always picks the most likely option, the text is safe but can become dull, repetitive and the same every time. If it picks more freely, the text becomes more varied and sometimes more creative, but also more likely to go off track.
Temperature is the dial that sets this balance. It exists because different tasks need different amounts of variety, and no single setting is right for everything.
How it works, step by step
Before the model picks a token, its likelihoods are adjusted by the temperature. A low temperature sharpens them: the most likely option becomes even more dominant, and unlikely ones almost disappear. At or near zero, the model nearly always picks the top option.
A high temperature flattens them: the gap between likely and unlikely options shrinks, so less common tokens are chosen more often. That is where the variety comes from.
The model then draws one token at random from the adjusted likelihoods, adds it to the text, and repeats the process for the next one. Because each choice affects all the following ones, a single unusual pick early on can send the whole answer in a different direction. Temperature is often used together with a related setting called top-p, which limits the draw to the most likely options.
Choosing a setting
Low temperature suits tasks where there is a right answer or a fixed format: pulling data from invoices, classifying emails, answering from a document, writing code, producing structured output for another system. Consistency matters more than variety here, and the same input should give the same result.
Medium settings suit everyday writing such as emails, summaries and explanations, where some natural variation is fine.
Higher temperature suits brainstorming: product names, slogans, campaign ideas, different angles on a problem. Here the goal is a wide range of options, and a person will pick the best ones anyway.
In practice, start with the provider's default, try a few settings on real examples and keep the one that gives the best results. Some newer reasoning models fix the temperature or ignore it, so check the documentation for the model you use.
Common misunderstandings
The most common misunderstanding is that low temperature makes a model more truthful. It does not. It makes the model more consistent. If a model does not know a fact, a low temperature only means it will give the same wrong answer every time instead of different wrong answers. Reducing made-up answers needs better information and instructions, not a lower setting.
Another is that zero temperature gives exactly the same output every time. It comes close, but small technical differences on the provider's side can still cause slight variations.
A third is that high temperature means more intelligent or creative thinking. It only means more random word choices. Beyond a certain point, the text becomes incoherent rather than original. Real creativity in an answer comes more from a good prompt with clear direction and examples than from turning up the dial.
What it means for a small business
For most people using chat tools such as ChatGPT, Claude or Gemini, temperature is set by the product and cannot be changed. If you want more variety, ask for it directly: give me ten very different ideas. If you want consistency, give clear instructions and examples of the format you expect.
The setting matters when a business builds its own AI solutions or uses tools that expose it. A customer service bot, an invoice reader or a report generator should usually run at a low temperature, so answers are stable and easy to test. A tool for marketing ideas can run higher.
If an AI-based process gives answers that vary too much from run to run, temperature is one of the first things to check, along with the instructions and the information the model is given.