A language model predicts the next token from the ones before it. This tiny model counts word sequences in the text you paste, then samples a continuation from those counts; the temperature and top-k knobs are the same ones you meet in real tools. Everything runs in this page: nothing you type, paste, or generate leaves your browser.
What to notice: a low temperature with a short context tends to repeat phrases straight out of the source text; a high temperature with top-k off wanders into word salad; top-k 1 always takes the single most likely word, so the result no longer depends on the seed.