Temperature is a setting that controls how random a language model's output is. The model builds text one token at a time and gives each possible next token a likelihood. A low temperature favours the most likely tokens, so answers are predictable and repetitive. A high temperature flattens the odds, so less likely tokens are picked more often and answers get more varied. Users mostly meet it as an API parameter. On OpenAI and Gemini it ranges from 0.0 to 2.0, and on Anthropic from 0.0 to 1.0. The default is 1.0 on all three. source: https://www.vellum.ai/llm-parameters/temperature