aifree.dev

Does it plan what it's going to say?

Next-token prediction · Beginner · 3 min · sampling, llm · after Tokens

A language model writes one piece at a time: it produces odds for the next piece, draws one, appends it, and starts over. There is no plan for the sentence, only the next piece, every time.

Before you start: could you explain this to a friend?

1 = not at all · 5 = easily

  1. 1 Guess first

    When it writes a paragraph, what does it decide first?
  2. 2 Look

    One piece at a time

    1 / 2

    The cat sat on the ___

    mat60%
    sofa20%
    floor16%
    moon3%

    temperature 1.0

    odds illustrative

    Draw. The piece lands at the end of the sentence, and the whole trip runs again for the next one — with new odds.

    Every Draw appends a piece and the odds for the next one change: the sentence is built, not retrieved.

  3. Loop: read everything so far → odds for the next piece → draw one → append it → repeat until a stop piece comes up. Long, coherent answers come from the odds being very good, not from a plan.

  4. 4 You are the model

    You go first: pick the next piece. Then Draw to see what the wheel rolled. Three rounds.

    The cat sat on the ___

    mat60%
    sofa20%
    floor16%
    moon3%

    temperature 1.0

    You first: pick the next piece.
  5. 5 Check

    After a piece is drawn, what happens?
  6. 6 Say it back

  7. 7 Mission · 2 min

    Give a free chatbot half a sentence — "The best thing about living in Hanoi is" — and press send five times, starting fresh each time. Count how many different endings you get.

Three quick ones

Drawn at random from this lesson's pool; different next time.

Done?

Now: could you explain this to a friend?

1 = not at all · 5 = easily

Answer the three quick ones first.

Sources

Published Oct 20, 2026 · updated Oct 20, 2026

Embed this

Paste this into a blog post or course page: the lesson's main picture in an iframe, with a link back to the full lesson.

<iframe src="https://aifree.dev/embed/explain/next-token" width="100%" height="620" style="border:0;max-width:720px" title="Does it plan what it's going to say? (aifree.dev Explain)" loading="lazy"></iframe>
<p><a href="https://aifree.dev/explain/next-token">Does it plan what it's going to say? Interactive lesson on aifree.dev</a></p>

Never miss new offers and news

New tools, credits, and AI news are added regularly. Pick how you want to hear about them.

Telegram channel
Join @aifree_dev and get new free AI offers and news right in your Telegram feed.
Browser notifications
Turn on push notifications and get an alert on this device whenever something new is posted. No account needed.
Email newsletter
A weekly digest of new, changed and expiring free AI offers. Double opt-in, one-click unsubscribe.

Unsubscribe anytime. Privacy

Frequently asked questions

What is aifree.dev?

aifree.dev helps everyone access AI through a curated directory of free AI tools, API credits, free tiers, and startup programs for coding, image, voice, video, and students - verified regularly.

How are offers presented?

Each offer includes its access details, free models when available, and expiration information when provided. Limited-time deals stay visible so they are easy to compare.

Do education and startup programs need verification?

Yes. Providers usually ask students to verify their status with a school email, student ID, or a program like the GitHub Student Pack, and ask startups to verify company details such as age, funding, or website. Check each offer’s claim page for the exact requirements.

What kinds of free AI offers are listed?

Free tiers and free trials from AI providers, free API credits, startup and student programs, and free tools for coding, image generation, voice, and video.

How can I suggest a tool or report a broken link?

Use the submit form: paste the offer page URL and a short note. A person checks every submission before anything is listed. Broken links and changed terms go through the same form.

+

Know a good one?

Tell us about an AI tool worth knowing. Found a broken link? We want to hear that too.

Submit an offer