What is temperature in AI models?
Temperature is a setting that controls how random an AI model's output is. Low temperature makes answers more focused and repeatable; high temperature makes them more varied and creative.
When a model writes, it picks each next token from a range of likely options. Temperature adjusts how adventurous that pick is.
Rules of thumb
- Low (near 0): extraction, classification, code, anything where you want the same answer each time.
- Medium: general assistants and writing help.
- High: brainstorming, naming, creative variations.
What it does not do
- A temperature of zero does not guarantee identical output every time, and it does not stop hallucinations. A model can be consistently wrong.
- It is not a quality dial. If outputs are poor, look first at the prompt and the context.
Some newer models limit or fix this setting, so check the provider's documentation. Whatever you choose, lock it in alongside the prompt and re-run your evals when you change it.