Skip to contentOceanToken

Glossary term

What is Temperature?

A setting that makes a model's replies more predictable or more varied.

Definition

Temperature is a sampling setting that controls how predictable a model's output is. At low values the model almost always picks its most likely next token, so answers are focused and repeatable; at higher values it picks less likely tokens more often, so replies become more varied and creative.

Why it matters

The right temperature depends on the task: low for extraction, code and facts, higher for brainstorming and writing. It changes behavior without changing the model or the cost.

How it works on OceanToken

On OceanToken, temperature, top_p and seed pass through in the OpenAI format on models that accept them; a model that does not take one drops it and the request still runs, and the x-oceantoken-dropped-params header names it. See the model list.