Temperature
A setting that controls how creative or predictable an AI's responses are.
Definition
Temperature is a parameter that controls the randomness and creativity of an AI model's outputs. It typically ranges from 0 to 2, where: 0 = completely deterministic (the AI always picks the most likely next word), 0.7 = balanced (good for most tasks), and 1.0+ = highly creative and unpredictable.
Low temperature is ideal for factual tasks, code generation, and data analysis where you want consistent, reliable outputs. High temperature is better for creative writing, brainstorming, and generating diverse ideas where you want variety and surprise. Most AI interfaces default to around 0.7, which works well for general-purpose use.
Examples
Setting temperature to 0 for a code generation task ensures the AI produces the same reliable output each time
Setting temperature to 1.2 for a brainstorming session generates more diverse and unexpected ideas
Related Terms
Frequently Asked Questions
Can I control temperature in ChatGPT?
What temperature should I use?
Build prompts using this concept
Explore our prompt library and put temperature into practice with ready-to-use templates.
Build prompts using this concept