{
    "title": "Temperature (LLM)",
    "description": "Temperature is the LLM setting that controls how random word choices are. Low sticks to likely words; high varies more. Why it matters for AI visibility.",
    "url": "https://ursy.com/wiki/temperature-llm/",
    "canonical": "https://ursy.com/wiki/temperature-llm/",
    "markdown": "https://ursy.com/wiki/temperature-llm/index.md",
    "json": "https://ursy.com/wiki/temperature-llm/index.json",
    "published": "2026-11-25T02:01:25+00:00",
    "updated": "2026-11-25T02:01:25+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/temperature-llm/",
    "headings": [
        {
            "level": 2,
            "text": "What is temperature in an LLM?",
            "id": "what-is-temperature-in-an-llm",
            "url": "https://ursy.com/wiki/temperature-llm/#what-is-temperature-in-an-llm"
        },
        {
            "level": 2,
            "text": "How does it work?",
            "id": "how-does-it-work",
            "url": "https://ursy.com/wiki/temperature-llm/#how-does-it-work"
        },
        {
            "level": 2,
            "text": "What are the usual settings?",
            "id": "what-are-the-usual-settings",
            "url": "https://ursy.com/wiki/temperature-llm/#what-are-the-usual-settings"
        },
        {
            "level": 2,
            "text": "Why does it matter for AI answers?",
            "id": "why-does-it-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/temperature-llm/#why-does-it-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "Why does it matter for search?",
            "id": "why-does-it-matter-for-search",
            "url": "https://ursy.com/wiki/temperature-llm/#why-does-it-matter-for-search"
        },
        {
            "level": 2,
            "text": "Which temperature should a business use?",
            "id": "which-temperature-should-a-business-use",
            "url": "https://ursy.com/wiki/temperature-llm/#which-temperature-should-a-business-use"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/temperature-llm/#common-mistakes"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/temperature-llm/#a-worked-example"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/temperature-llm/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/temperature-llm/#questions"
        },
        {
            "level": 3,
            "text": "Can I change the temperature in ChatGPT or Gemini apps?",
            "id": "can-i-change-the-temperature-in-chatgpt-or-gemini-apps",
            "url": "https://ursy.com/wiki/temperature-llm/#can-i-change-the-temperature-in-chatgpt-or-gemini-apps"
        },
        {
            "level": 3,
            "text": "Is a higher temperature more creative?",
            "id": "is-a-higher-temperature-more-creative",
            "url": "https://ursy.com/wiki/temperature-llm/#is-a-higher-temperature-more-creative"
        },
        {
            "level": 3,
            "text": "Does temperature affect cost?",
            "id": "does-temperature-affect-cost",
            "url": "https://ursy.com/wiki/temperature-llm/#does-temperature-affect-cost"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/temperature-llm/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/temperature-llm/#sources"
        }
    ],
    "links": [
        {
            "text": "AI visibility",
            "url": "https://ursy.com/wiki/ai-visibility/",
            "internal": true
        },
        {
            "text": "large language model",
            "url": "https://ursy.com/wiki/large-language-model/",
            "internal": true
        },
        {
            "text": "tokens",
            "url": "https://ursy.com/wiki/ai-tokens/",
            "internal": true
        },
        {
            "text": "glossary",
            "url": "https://platform.claude.com/docs/en/about-claude/glossary",
            "internal": false
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "machine learning glossary",
            "url": "https://developers.google.com/machine-learning/glossary",
            "internal": false
        },
        {
            "text": "adjusting parameter values",
            "url": "https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/adjust-parameter-values",
            "internal": false
        },
        {
            "text": "Chat API reference",
            "url": "https://developers.openai.com/api/reference/resources/chat",
            "internal": false
        },
        {
            "text": "Gemini text generation guide",
            "url": "https://aistudio.google.com/docs/text-generation",
            "internal": false
        },
        {
            "text": "non-determinism in AI answers",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/",
            "internal": true
        },
        {
            "text": "prompt",
            "url": "https://ursy.com/wiki/prompt/",
            "internal": true
        },
        {
            "text": "prompt tracking",
            "url": "https://ursy.com/wiki/prompt-tracking/",
            "internal": true
        },
        {
            "text": "AI hallucination",
            "url": "https://ursy.com/wiki/ai-hallucination/",
            "internal": true
        },
        {
            "text": "AI Overview",
            "url": "https://ursy.com/wiki/ai-overview/",
            "internal": true
        },
        {
            "text": "rank tracking",
            "url": "https://ursy.com/wiki/rank-tracking/",
            "internal": true
        },
        {
            "text": "bot",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "retrieval-augmented generation",
            "url": "https://ursy.com/wiki/retrieval-augmented-generation/",
            "internal": true
        },
        {
            "text": "Grounding",
            "url": "https://ursy.com/wiki/grounding/",
            "internal": true
        },
        {
            "text": "system prompt",
            "url": "https://ursy.com/wiki/system-prompt/",
            "internal": true
        },
        {
            "text": "prompt builder",
            "url": "https://ursy.com/webmaster-tools/prompt-builder/",
            "internal": true
        },
        {
            "text": "AI answer comparer",
            "url": "https://ursy.com/webmaster-tools/ai-answer-comparer/",
            "internal": true
        },
        {
            "text": "AI Consistency Checker",
            "url": "https://ursy.com/ai-consistency-checker/",
            "internal": true
        },
        {
            "text": "Proof Checker",
            "url": "https://ursy.com/proof-checker/",
            "internal": true
        },
        {
            "text": "AI Readiness Checker",
            "url": "https://ursy.com/ai-readiness-checker/",
            "internal": true
        },
        {
            "text": "RAG chunk previewer",
            "url": "https://ursy.com/webmaster-tools/rag-chunk-previewer/",
            "internal": true
        },
        {
            "text": "AI token cost estimator",
            "url": "https://ursy.com/webmaster-tools/ai-token-cost-estimator/",
            "internal": true
        },
        {
            "text": "Prompt tracker",
            "url": "https://ursy.com/pro/prompt-tracker/",
            "internal": true
        },
        {
            "text": "AI fact accuracy monitor",
            "url": "https://ursy.com/pro/ai-fact-accuracy-monitor/",
            "internal": true
        },
        {
            "text": "AI inference",
            "url": "https://ursy.com/wiki/ai-inference/",
            "internal": true
        },
        {
            "text": "Prompt engineering",
            "url": "https://ursy.com/wiki/prompt-engineering/",
            "internal": true
        },
        {
            "text": "Reasoning models",
            "url": "https://ursy.com/wiki/reasoning-models/",
            "internal": true
        }
    ],
    "words": 1068,
    "text": "Temperature (LLM) is a setting that controls how random a large language model’s word choices are: low values make it stick to the most likely words, high values let it pick less likely ones. It is the main reason the same question can get a different answer twice. For anyone measuring AI visibility, it explains why one test run is never enough. What is temperature in an LLM? A large language model writes one small piece of text at a time. Those pieces are tokens. At each step the model scores every possible next token and turns the scores into chances. It then has to choose one. Temperature decides how strictly it follows the chances. Anthropic’s glossary puts it simply: temperature controls the randomness of a model’s predictions. Higher temperatures give more creative and varied output. Lower temperatures give more conservative output that sticks to the most probable wording and answers. Google’s machine learning glossary calls it a hyperparameter that controls the degree of randomness in a model’s output. How does it work? Google Cloud’s guide to adjusting parameter values describes the steps for its Gemini models on Vertex AI: Top-K keeps only the K most likely tokens. A top-K of 1 always takes the single most likely token. Top-P then keeps tokens from most to least likely until their chances add up to the top-P value. Temperature makes the final pick from what is left. The same guide says a temperature of 0 means the highest-probability tokens are always selected. Answers are then mostly the same each time, but a small amount of variation is still possible. What are the usual settings? Provider What its docs say OpenAI The Chat API reference gives a range of 0 to 2, default 1. Around 0.8 makes output more random; around 0.2 makes it more focused. It suggests changing temperature or top_p, not both. Anthropic The glossary warns that even at 0 the results will not be fully deterministic. Google The Gemini text generation guide says Gemini 4 and Gemini 3.6+ models ignore custom temperature, top_p and top_k values, and asks developers to remove them. So the dial is not the same everywhere. Some newer models fix it themselves. Always read the current docs for the model you use. Why does it matter for AI answers? Temperature is one cause of non-determinism in AI answers. Ask an assistant the same prompt 5 times and you may see your shop named in 3 of them. That is not a bug in your measuring; it is how sampling works. It changes how you should read results: Run each prompt several times. Report a share (“named in 6 of 10 runs”), not a yes or no. Keep everything else fixed. Same wording, same engine, same location, same day where you can. See prompt tracking. Do not chase one bad answer. One run that leaves you out is weak evidence. A pattern across many runs is strong evidence. Make your facts easy to repeat. When your page states a fact once, clearly, the likely wording is your wording. Fewer gaps leave less room for an AI hallucination on prices or opening hours. OpenAI’s API reference also has a seed option. It says the system will make a best effort to sample the same way each time, but it does not promise identical results. Why does it matter for search? AI features on search pages generate text with language models, so their wording can vary for the same query. Treat AI Overview checks the way you treat chat checks: repeat them and count. Your normal rank tracking stays as it is. Which temperature should a business use? Only if you build with an API: for example a product finder, an answer bot on your site using retrieval-augmented generation, or a tool that writes descriptions. Facts, prices, policies, extraction: low. You want the same answer each time. Drafts, headlines, ideas: the default or a little higher, then edit by hand. Never rely on temperature alone to stop wrong answers. Grounding in your own facts and a clear system prompt matter more. Common mistakes Thinking 0 means identical. Anthropic and Google both say small differences can remain. Changing temperature and top_p together. OpenAI advises one or the other. Setting it on a model that ignores it. Some Gemini models now discard it. Judging visibility on one run. See above. High temperature for facts. More variety means more chances to be wrong. A worked example A model must finish: “The kettle body is made of ___”. These chances are made up to show the idea. Next word Low temperature Default High temperature steel picked almost every time picked most often picked often glass rare sometimes often plastic very rare now and then sometimes copper almost never rare now and then If the kettle really is glass and your page says so clearly, retrieval can put your words in front of the model, and “glass” becomes far more likely. Clear facts matter more than the dial. How to check it Build steady test prompts with our prompt builder and compare answers with the AI answer comparer. Check that what your site says is the same everywhere with the AI Consistency Checker, and that each fact has a source with the Proof Checker. See how readable your pages are to AI with the AI Readiness Checker, and how a page splits into chunks with the RAG chunk previewer. Estimate the cost of many repeat runs with the AI token cost estimator. In URSY Pro, being built: the Prompt tracker (Pro) repeats prompts for you, and AI fact accuracy monitor (Pro) checks the facts in answers. Questions Can I change the temperature in ChatGPT or Gemini apps? The docs we checked describe temperature as an API setting for developers. They do not describe a control in the consumer apps. Is a higher temperature more creative? More varied, yes. Whether that is better depends on the job. Does temperature affect cost? Not directly. Cost follows tokens, but repeat runs for testing multiply it. Related words Non-determinism in AI answers Large language model AI inference Prompt engineering Reasoning models Sources Claude Developer Platform: Glossary (Temperature), checked 25 November 2026 OpenAI API reference: Chat completions (temperature, top_p, seed), checked 25 November 2026 Google Cloud: Adjust parameter values (Vertex AI), checked 25 November 2026 Google AI Studio: Gemini text generation, checked 25 November 2026 Google for Developers: Machine Learning Glossary (temperature), checked 25 November 2026 Updated 25 November 2026 by URSY.",
    "source": "https://ursy.com/wiki/temperature-llm/"
}