# Temperature (in AI Models)

> Temperature controls how predictable or creative an AI model's answers are. Learn how the setting works, which values to try, and when you can't change it.

- URL: https://www.theaitelegraph.com/glossary/temperature/
- Section: AI Glossary (Glossary)
- Published: 2026-12-04
- Updated: 2026-12-04
- Author: The AI Telegraph Staff, The AI Telegraph
- Topics: llm, prompting, api, glossary

Temperature is a setting that controls how random or predictable an AI language model's output is. A low temperature makes the model stick to its most likely word choices, while a high temperature lets it take more chances, producing more varied and sometimes stranger text.

Most chat apps set it for you behind the scenes. Developers who use AI through an API can usually adjust it themselves.

## Key takeaways

- Low temperature suits facts, code and data extraction; higher temperature suits brainstorming and creative writing.
- Even at zero, answers are not always perfectly identical from run to run.
- Many reasoning models lock temperature at a fixed default.

## How does temperature work?

A language model writes one [token](https://www.theaitelegraph.com/glossary/token/), or word piece, at a time. At each step it scores every possible next token by how likely it is. Temperature reshapes those odds before one is picked.

At low settings, the gap between likely and unlikely choices widens, so the top option wins almost every time. At high settings, the odds flatten out, giving long-shot words a real chance. Push it too far and you get nonsense.

The allowed range differs by provider. Some APIs accept values from 0 to 2, others from 0 to 1. A related setting called top-p limits the pool of candidate words instead of reshaping their odds, and providers often suggest adjusting one or the other, not both.

## What is an example of temperature?

Ask a model to finish "The best thing about monsoon season is" five times. At a low temperature you might get "the cool weather" every time or nearly so. At a higher temperature you might get "the cool weather", "hot chai and pakoras", "the smell of wet earth", and a couple of surprises.

## Why does temperature show up in the news?

It comes up in debates about AI reliability. Higher randomness can raise the chance of [hallucinations](https://www.theaitelegraph.com/learn/what-are-ai-hallucinations/), and businesses that need repeatable answers often turn it down. It has also become a developer talking point because several reasoning models, including OpenAI's GPT-5 family, reject custom temperature values and only accept the default. Those models manage their own variety through their internal [chain of thought](https://www.theaitelegraph.com/glossary/chain-of-thought/).

## Why It Matters

A single number can decide whether an AI tool feels dependable or erratic. If you build tools for customers, invoices or code, a low setting helps keep answers consistent and trims some of the risk of made-up details. For brainstorming, a little more randomness can surface ideas you would not reach alone. Most users never touch it directly, but knowing it exists explains why the same question can get different answers, and why that variation is a design choice rather than a malfunction.

## FAQ

### Can I change the temperature in ChatGPT?

Not directly in the regular chat app. You can influence tone through your instructions, as covered in our guide to [writing better prompts](https://www.theaitelegraph.com/learn/how-to-write-better-prompts/). Developers can set temperature through the API on models that support it.

### What is a good temperature setting?

For factual tasks or code, start low, around 0 to 0.3. For general chat, the provider's default is usually fine. For creative work, try somewhat higher and see what you get.

---

Source: The AI Telegraph, https://www.theaitelegraph.com/glossary/temperature/. Please cite the title and link to the URL when using this article.
