Prediction: The Core Mechanic
Next-word prediction game — see a sentence build one token at a time. Adjust temperature and watch how randomness changes the output.
Next-Word Prediction Game
Build a sentence one word at a time, just like an LLM does. Pick a starter, then choose the next word from the model's top predictions. Watch the sentence probability drop with each choice.
Sentence complete!
Your sentence had a probability of being generated.
Temperature Playground
Temperature controls how "random" a model's word choices are. Drag the slider to see how the same prompt produces wildly different outputs at different temperature values.
When to use each temperature: Use low temperatures (0.0–0.3) for factual tasks like data extraction, maths, and code where you want reliable, repeatable results. Use medium temperatures (0.5–0.8) for balanced writing tasks. Use high temperatures (1.0+) for brainstorming, creative fiction, or when you explicitly want surprising outputs. Most APIs default to around 0.7–1.0.