01What is Model Temperature Tester?
Temperature and top-p are two sliders most people tweak by feel. This tester lets you see what they actually do to a next-token distribution, without spending API credits. No model is called. Everything runs on a small, clearly labelled simulation in your browser. The tool starts with an invented vocabulary of 15 sentence-opening words, such as "The", "This", "It" and "However". Each has a made-up base probability. It takes the log of each probability as a logit and divides by your temperature. A temperature of 0 is treated as 0.01, which approximates greedy decoding without dividing by zero. A softmax turns the scaled logits back into probabilities. Then top-p, also called nucleus sampling, kicks in. The tool keeps the smallest set of most likely tokens whose combined probability reaches your threshold and renormalises them to 100%. This is the method described in the 2019 paper by Holtzman and colleagues that introduced nucleus sampling. The bar chart shows every token after both steps, with the ones cut by top-p greyed out. Four metrics sit above it: entropy in bits, diversity as entropy relative to the 15-token maximum, the probability of the top token, and how many tokens top-p kept. Underneath, you get three rows of five draws from the final distribution, made with a seeded pseudo-random generator (mulberry32). They are repeated picks for the same position, not generated sentences. Resample picks a new seed. Here is what that looks like in practice. At temperature 1.0 and top-p 1.0, "The" sits at 21.5% and entropy is 3.37 bits. Drop to the Code generation preset, temperature 0.1 with top-p 0.9, and only two tokens survive: "The" at 90.3% and "This" at 9.7%. Every draw in the first row comes out "The". A few honest limits. The vocabulary and its odds are invented, so the numbers teach the shape of the effect, not a real model's behaviour. Real models have vocabularies in the tens of thousands, and their distributions depend on the prompt. Providers also differ in which sampling settings they accept. The footnote points out that Anthropic's guide for Claude Opus 5.5 says to leave temperature, top_p and top_k out entirely.
Prompt engineers and ML students who want to see how temperature and top-p reshape a token distribution before tuning a real model. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Model Temperature Tester
- Move the Temperature slider between 0 and 2; the label shows a description such as Focused or Creative.
- Adjust Top-P (nucleus sampling) between 0.1 and 1.0.
- Compare the Entropy, Diversity, Top Token Prob and Tokens kept figures, and watch the probability bars change.
- Read the random draws and click Resample to draw new ones.
- Load the Creative writing, Code generation or Balanced example, or reset to the defaults.
03Worked examples
- Input:
Temperature 1.00, Top-P 1.00 - Result:
15 tokens kept; The 21.5%, This 17.2%, It 12.9%; entropy 3.37 bits - At temperature 1 the probabilities are the tool's made-up base distribution, renormalised to sum to 100%.
- Input:
Temperature 0.10, Top-P 0.90 (Code generation) - Result:
2 tokens kept; The 90.3%, This 9.7%; entropy 0.46 bits - Low temperature concentrates probability on the top token, so top-p only needs two tokens. With the default seed every draw in the first row is "The".
- Input:
Temperature 1.00, Top-P 0.50 - Result:
3 tokens kept; The 41.7%, This 33.3%, It 25.0%; entropy 1.55 bits - Top-p alone removes the long tail, even at a neutral temperature.
- Input:
Temperature 1.20, Top-P 0.95 (Creative writing) - Result:
13 tokens kept; The 19.3%, This 16.1%, It 12.6%; entropy 3.38 bits - Top-p 0.95 drops the two least likely tokens even at high temperature.
- Input:
Temperature 2.00, Top-P 1.00 - Result:
15 tokens kept; The 13.2%, This 11.8%, It 10.2%; entropy 3.76 bits - High temperature flattens the distribution toward equal odds.
- Input:
Temperature 0.00, Top-P 1.00 - Result:
1 token kept; The 100.0%; entropy 0.00 bits - Temperature 0 is treated as 0.01, which is effectively greedy. Only the top token survives top-p.
04Common use cases
- Explaining to a product team why a chatbot answers differently each time at temperature 1.0
- Choosing sampling settings for a code generation feature that needs repeatable output
- Teaching softmax temperature and nucleus sampling in an ML course or workshop
- Seeing how top-p cuts off the long tail before tuning sampling parameters on a model that accepts them
- Showing a teammate why top-p 0.5 can cut a 15-word list down to three candidates
- Checking what greedy decoding looks like before setting temperature to 0 in a classification prompt
05Tips
- Lowering top-p removes the long tail entirely, while lowering temperature only makes it less likely; compare the greyed-out bars with the probabilities to see the difference.
- Check your provider's docs before tuning: Claude API version 2026-10-21 rejects temperature, top_p and top_k on every model, so for Claude you steer with the prompt and the effort setting.
- Many providers suggest changing temperature or top-p, not both at once, so you can tell which one helped.
- Temperature 0 is close to greedy decoding, but real APIs can still vary slightly between runs.
- Treat the numbers as illustration; a real model's distribution depends heavily on the prompt.
06Related concepts
Temperature sampling, Top-p, Nucleus sampling, Softmax, Entropy, Logits.
Frequently Asked Questions
What is Model Temperature Tester?
Model Temperature Tester is a free, browser-based developer tool on AIDToolStack. Visualize temperature/top-p effects on output It requires no installation or sign-up and works entirely in your browser.
Is Model Temperature Tester free to use?
Yes. No sign-up, no fees and no usage cap.
Does Model Temperature Tester store my data?
No. It runs in your browser; nothing is uploaded.