How Temperature, Top-p and Top-k Reshape a Distribution
Watch sampling parameters change which tokens can actually be chosen, on a real softmax over logits you supply.
Temperature divides the logits before the softmax — below 1 sharpens the distribution, above 1 flattens it, and 0 becomes greedy decoding. Top-p keeps the smallest set of tokens summing to p, top-k keeps a fixed count, and min-p keeps anything above a fraction of the leading token. This visualiser applies them in the order real samplers do and shows exactly which tokens survive.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Should I change temperature or top-p?
Does temperature 0 guarantee identical output?
Why do some models reject these parameters now?
How to use the temperature & top-p visualizer
- 1Enter or paste your logits.
- 2Set the temperature.
- 3Set the top-p (nucleus).
- 4Set the top-k.
- 5Set the min-p.
- 6Set the repetition penalty.
- 7The result appears immediately — copy or download it.
Sources & specifications
Embed this tool
Put the working temperature & top-p visualizer on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
AI API Cost CalculatorWork out what a prompt costs per call, per day and per month, and compare the same workload across every major model.Context Window CalculatorPaste a document and see which models it fits inside, how much of each window it fills, and what is left for the reply.LLM Model ComparisonEvery current model side by side: price per million tokens, context window, max output, modalities and cache rates.LLM Stream ParserPaste a raw server-sent-event stream and get the reconstructed message, tool calls, usage and stop reason.LLM Token CounterCount tokens with the real BPE vocabulary, see every token coloured in place, and compare the count across models.Prompt Injection SanitizerStrip invisible carriers, neutralise instruction-like markup and fence untrusted content before you paste it into a prompt.
Last updated
More ai & llm tools