Junior Codes
The Creator Lighthouse

How Does Generative AI Work? Explained for Kids

Generative AI builds text one likely piece at a time.

Start Wonderwild free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

This mission is part of full access. The first missions are free to try.

Generation & probability, explained simply

Generative AI makes new things: stories, pictures, music. A text generator works by predicting what piece should come next, again and again.

After "Once upon a", the word "time" is very likely. The model has learned these likelihoods, called probabilities, from huge amounts of example text. It picks a next token, adds it, and predicts again.

It does not always pick the most likely option. A little randomness makes answers varied and creative, which is why the same prompt can give different results. It also means the model can produce things that sound right but are not true.

Example: Guessing the next word

  • "The cat sat on the …"
  • Likely next words: mat (common), sofa, roof, moon (rare).
  • Pick "sofa" and carry on: "The cat sat on the sofa and …"
  • Choosing differently each time is how one prompt can grow many stories.

Try this

  • Play a story game where each person adds one word. Notice how the likely words keep the story sensible.
  • Write the three most likely next words after "Happy birthday to …" and one surprising one.
  • Ask why a generator that always picked the most likely word might be boring.

Practise it in Wonderwild

“The remixing story garden”

Discovery 21 in The Creator Lighthouse, one of 24 AI discoveries in Wonderwild.

Your child trains, tests and questions a small model in the browser with Pip. No coding needed. For ages 7+.

Start Wonderwild free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

This mission is part of full access. The first missions are free to try.

Questions parents and kids ask

Does generative AI copy from the internet?+

It usually does not look things up and paste them. It generates new text from patterns it learned, which can sometimes closely echo its training data.

Why does AI give different answers to the same question?+

Because it chooses among likely next pieces with some randomness. That variety is useful for creativity but a reason to double-check facts.

Prefer learning with a teacher?

Our live AI Explorers course teaches these ideas in small online classes led by a software engineer, with projects and feedback. Every live course also includes 12 months of full Wonderwild access for practice.

See the AI Explorers course