Skip to content

Term · How models work

Temperature (of a model)

A setting that controls how much risk a model takes when choosing its words: low gives more predictable answers; high, more varied and creative ones.

Also called
model temperature
Category
How models work

What it is

When generating text, the model works out which words fit best next. At low temperature it almost always picks the most likely one; at high temperature it gives others more of a chance, and answers tend to vary more.

In practice

It's mostly adjusted when using the GlossaryAPIapplication programming interfaceThe door two programs use to talk to each other and request data or actions, with no person stepping in. It is how AI models connect to other apps.More about API → or some developer tools. Low for extracting data, classifying or answering precisely; higher for brainstorming or creative writing.

Watch out for…

Raising it doesn't make the model smarter, only more varied, and at very high values mistakes and GlossaryHallucinationAn AI answer that sounds convincing but is false or not backed by any data: a made-up quote, a wrong figure or a source that doesn’t exist.More about Hallucination → increase. In regular chats you can't change it, and some GlossaryReasoning modelA language model that takes time to think step by step before answering: it breaks the problem down, tries different paths and checks its work. It’s slower, but more accurate on complex tasks like analysis, calculations or planning.More about Reasoning model → fix it.

Learn more at developers.google.com (opens in a new tab)

Actions