A dial that controls how random vs. predictable a model's output is.
A generation setting that influences how predictable or varied a model's responses are.
💡 Asking someone for a standard answer versus encouraging a creative answer.
const res = await openai.chat.completions.create({
model: "gpt-4o",
temperature: 0.2, // low = predictable, high = creative
messages: [{ role: "user", content: "Summarize this article" }],
});It helps control response variation; lower values generally produce more predictable outputs and higher values encourage more variation.
Higher temperature is not 'more correct' — it just makes output more random and creative.
with tapaScript
By clicking Sign Up you re confirming that you agree with our Terms and Conditions.
