Skip to content

Temperature

LLM & Language Models

A setting that controls how random or creative an AI's responses are. Low temperature = predictable and focused. High temperature = diverse and creative.

Temperature is the most important generation parameter you can adjust. The scale differs between providers — 0 to 1 in some APIs, 0 to 2 in others — but the meaning is the same: it controls the randomness of the model's token selection. At temperature 0, the model always picks the highest-probability next token (deterministic). At higher temperatures, it considers lower-probability tokens too (creative but riskier).

Practical guidelines: use low temperature (0-0.3) for factual tasks, code generation, data extraction, and anything where consistency matters. Use medium temperature (0.5-0.7) for general writing and conversation. Use high temperature (0.8-1.2) for creative writing, brainstorming, and when you want surprising outputs.

Temperature interacts with other parameters like top_p (nucleus sampling) and frequency_penalty. Most AI applications set these behind the scenes, but understanding temperature helps you use AI tools with adjustable settings more effectively.

Real-World Example

Ask a model for a product tagline five times at temperature 0 and you get the same tagline five times. Ask at temperature 1 and you get five different ones — some better than the first, some worse.

Related Terms

Try AI Rewriter

Rewrite and improve any text while preserving meaning and adding a human touch.

Try Free

Put this concept to work

Once the definition is clear, the next useful move is to try a focused tool flow instead of bouncing through more glossary pages.

Open the rewriter route

FAQ

What is Temperature?

A setting that controls how random or creative an AI's responses are. Low temperature = predictable and focused. High temperature = diverse and creative.

How is Temperature used in practice?

Ask a model for a product tagline five times at temperature 0 and you get the same tagline five times. Ask at temperature 1 and you get five different ones — some better than the first, some worse.

What concepts are related to Temperature?

Key related concepts include Top-p (Nucleus Sampling), Token, Inference, LLM (Large Language Model). Understanding these together gives a more complete picture of how Temperature fits into the AI landscape.