What is a Temperature (AI)?
Temperature is a sampling parameter that controls how random or deterministic a language model's next-token choices are, with lower values favoring the highest-probability token and higher values spreading probability mass across more options.
Under the hood, a language model produces a probability distribution over its entire vocabulary for the next token. Temperature rescales that distribution before sampling: dividing the logits by a value below 1 sharpens the distribution toward the most likely tokens, producing more repeatable and conservative output, while a value above 1 flattens it, making less-likely tokens more competitive and output more varied. A temperature of 0 effectively becomes greedy decoding, always picking the top token.
Choosing temperature is a tradeoff between reliability and creativity. Low temperature suits tasks with a single correct answer, such as code generation, structured data extraction, or factual Q&A, where consistency matters more than variety. Higher temperature suits brainstorming or creative writing, where some randomness produces more useful variation across runs.
In practice with Neotask
Neotask's agent runtime keeps temperature low for tool-calling and data-extraction steps, so the same input reliably produces the same structured output, while creative tasks like drafting marketing copy or blog ideas run at a higher temperature to give the user several distinct options to choose from.
Related terms
- top-p-sampling
- tokens-ai
- tool-calling
- large-language-model
- prompt-engineering
Plans
Free
$0/mo
Download without a card and start for free.
Individual
$50/mo
The full personal agent platform for one person.
Business
$100/mo
One company workspace with room to add your team.
Enterprise
$200/mo
Multiple workspaces and capacity for larger teams.
Continue