What is generative AI?
Most older AI tells things apart — spam or not, cat or dog. Generative AI does something new: it creates content — text, images, audio, code — that resembles what it learned from. Learn the difference, the modalities, and how it actually generates, right here on the page.
01Two jobs: telling apart vs. creating
Picture two jobs at a bakery: one worker sorts pastries into boxes labeled "croissant" or "muffin," while the other actually bakes a brand-new pastry from a recipe. Older AI mostly does the first job — sorting — and that sorting kind is called discriminative AI: it takes an input and predicts a label (is this email spam or not? is this photo a cat or a dog?). Generative AI goes the other way: from a prompt, it produces brand-new content — a paragraph, an image, a snippet of audio or code — that resembles the data it learned from. Flip between the two below.
Discriminative AI sorts an input into a category. Example: given an email, it answers "spam" or "not spam."
- Discriminative answers a question about existing data: which category does this belong to?
- Generative answers a different question: what is a plausible new example that fits the pattern?
- Both learn from data — they just use what they learn for opposite purposes.
02What it can create: the modalities
"Content" covers a lot. Generative AI works across several modalities — different kinds of output, often powered by different model designs under the hood. Switch between them below.
Text — written language
Large language models (LLMs) generate sentences, summaries, answers, and translations by predicting plausible next words. This is the modality behind most chat assistants.
Image — pictures from a description
Image generators — often built on diffusion models — turn a text description into a new picture, starting from random noise and refining it toward the prompt.
Audio — voice, speech & music
Audio models synthesize spoken words from text, clone or create voices, and compose music. The output is generated sound, not a clip pulled from a library.
Code — programs & snippets
Code models write functions, fix bugs, and explain programs in many languages. Because code is just structured text, LLMs handle it as another kind of language.
03How it actually generates
Generative AI doesn't copy from a stored library. It learns the patterns in a large amount of training data, then samples from those patterns to build something new — piece by piece. Step through the idea.