Back to Glossary
Infrastructure

Temperature

A setting that controls how creative or predictable an AI's responses are.

Share

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

1

Setting temperature to 0 for a code generation task ensures the AI produces the same reliable output each time

2

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?
The ChatGPT web interface doesn't expose temperature controls directly. You can control it through the API or by using prompts like "Be creative and think outside the box" (high temperature effect) or "Be precise and factual" (low temperature effect).
What temperature should I use?
For factual tasks, code, and analysis: 0-0.3. For general conversation and writing: 0.5-0.7. For creative writing and brainstorming: 0.8-1.2. Start at 0.7 and adjust based on results.

Build prompts using this concept

Explore our prompt library and put temperature into practice with ready-to-use templates.

Build prompts using this concept