Skip to content
Finic
AI and agents

What is temperature in AI?

Temperature is a setting that controls how random a language model's output is. Low values make answers more focused and repeatable; high values make them more varied.

Also called: sampling temperature, model temperature

How it works

At each step, a model scores every possible next token. Temperature changes how those scores turn into choices. At a low temperature, the top choice wins almost every time. At a higher temperature, less likely tokens get picked more often, so the text becomes more creative and less predictable.

A temperature near zero makes output close to deterministic, but not always fully so. Hardware, batching and model updates can still cause small differences between runs of the same prompt.

Why it matters for risk decisions

Risk and compliance decisions should be repeatable. If the same case can get a different answer each time it is run, it is hard to audit, explain or defend. For classification, extraction and scoring tasks, teams usually set a low temperature.

Even then, a language model's output should not be the only record of a decision. Storing the inputs, the model version, the settings and the output lets teams reproduce and review what happened later.

Common settings by task

  • Labeling a dispute reason or extracting fields from a document: low temperature.
  • Writing a case summary for a reviewer: low to moderate.
  • Brainstorming possible fraud scenarios for a red-teaming exercise: higher.
  • Generating test data for rules: moderate, with checks on the output.

Example

A hypothetical team uses a model to decide whether a support ticket describes an account takeover. At a high temperature, the same ticket is labeled differently on repeat runs. Setting the temperature low and asking for a fixed set of labels makes the results stable enough to measure.

← All glossary terms

Ship fraud, bot and KYB checks in minutes.

Start with $5 of free credit, or copy a prompt and let your coding agent set Finic up.

Sign up See pricing