How does it work?
At every step a model produces a probability for each possible next token. Temperature reshapes that distribution before one is sampled. Below 1 it sharpens it, so likely tokens become even more likely. Above 1 it flattens it, so unlikely tokens get a real chance. At 0 the model simply takes the highest-probability token every time. Most APIs accept 0 to 2 and default to around 1, and the useful band for production work is narrower than that — typically 0 to 0.3 for anything parsed, and 0.7 to 1 for drafting.
The effect compounds. One slightly unusual token changes what follows, which changes what follows that. A small increase in temperature does not add a little variety — it moves the output onto a different track entirely.
