Generative AI — Machines That Create
What you'll learn
- What "generative" means (creating vs classifying)
- How image and text generation work, simply
- Prompt engineering — the real skill you can monetize now
- Where the paid opportunities are today
From judging to creating 🎨
Earlier models were discriminative — they judge: "spam or not?", "cat or dog?". Generative models create new things: text (ChatGPT), images (Midjourney, DALL·E), code (GitHub Copilot), music, video.
How does an image model create a picture from "a cat astronaut"? Through a process called diffusion. Imagine starting with pure TV static (random noise), then removing a tiny bit of noise at a time, at each step nudging the pixels toward "more cat-astronaut-like," guided by your text. After ~50 steps of denoising, a clear image emerges. It learned to do this by watching millions of images get progressively noisier during training — then it runs that process in reverse.
Text generation you already understand from the NLP lesson: predict the next token, over and over, steered by your prompt.
The skill worth money right now: prompt engineering. The same model gives wildly different results depending on how you ask. Good prompting means:
- Be specific: "Write a poem" vs "Write a 4-line playful poem about coffee, rhyming, for a café menu."
- Give context and a role: "You are a senior lawyer. Explain this contract clause simply."
- Show examples of the output you want (called few-shot prompting).
- Iterate: treat it as a conversation, refining.
Where the money is (today, for a beginner): businesses need people who can integrate AI — build a customer-support bot, automate content, wire an LLM into an app via its API, or offer prompt-engineering/AI-consulting as a freelance service. You don't need to train models to earn from AI; you need to apply them well. That skill is in shortage right now.
⚠️ Use it responsibly: verify facts (hallucinations!), respect copyright, disclose AI-generated content where it matters, and never use it to deceive.
Two families of creators: GANs and diffusion 🥊
Before diffusion models became dominant, the star of generative image AI was the GAN (Generative Adversarial Network) — a clever trick built on competition rather than denoising. A GAN pits two neural networks against each other:
- The generator tries to create fake images that look real.
- The discriminator tries to catch which images are fake vs. real.
They train together: the generator gets better at fooling the discriminator, and the discriminator gets better at catching fakes, pushing each other to improve — like a forger and an art detective locked in an escalating rivalry. Given enough rounds, the generator produces images realistic enough to fool even careful human inspection. GANs were behind some of the earliest viral "this person does not exist"-style photorealistic face generators.
Diffusion models (from the previous section) largely overtook GANs for state-of-the-art image generation because they tend to train more stably and produce a wider variety of outputs — a GAN's two-network competition can be finicky and sometimes collapses into generating only a narrow range of similar images. Both approaches, though, share the same core lesson from this track: a model that starts by judging (the discriminator, or the denoising step deciding "does this look more cat-like?") can be repurposed as the engine for creating.
Whichever architecture is under the hood, the output is still a statistical guess shaped by training data — not understanding. That's why generated images can get small details wrong (hands, text, reflections) even when the overall picture looks convincing, and it's exactly why the "use it responsibly" advice from this lesson matters.
Build a tiny text generator using the same "predict what's likely next" idea as an LLM, radically simplified. Given a dictionary mapping each word to the list of words that followed it in some training text, write generate(start_word, transitions, length) that:
- Starts with
start_word - For each next step, picks the first word in
transitions[current_word](a simplified stand-in for "most likely next word") - Stops once the output has
lengthwords, or if the current word has no entry intransitions
Example: transitions = {"i": ["love"], "love": ["ai"]}, generate("i", transitions, 3) → ["i", "love", "ai"]
Real-world case study: the launch that made generative AI a household topic 🔍
Text generation research had been progressing for years inside AI labs, but for most of the public, generative AI became real in late 2022, when OpenAI released ChatGPT as a free, simple chat interface on top of an existing large language model. Nothing about the underlying next-token-prediction technology was brand new that week — what changed was that anyone with a web browser could now type a question and get a fluent, useful answer in seconds, no technical skill required.
The reaction was immediate and enormous: it became one of the fastest-growing consumer applications in history, reaching tens of millions of users within just weeks, driven almost entirely by word of mouth. Schools debated banning it over cheating concerns, companies scrambled to figure out policies for employees using it, and rival companies accelerated their own generative AI releases practically overnight.
The core lesson for anyone learning AI today: the technology behind these breakthroughs (transformers, next-token prediction, diffusion, GANs) had mostly existed for a few years already. What actually changed the world almost overnight was making it accessible through a simple, well-designed interface. That's a pattern worth remembering as you think about where the real opportunities are — sometimes the biggest impact doesn't come from inventing new AI, but from making existing AI usable by ordinary people.
Question 1 of 6
What's the difference between discriminative and generative models?
Question 2 of 6
How do diffusion image models create pictures?
Question 3 of 6
What is prompt engineering?
Question 4 of 6
For a beginner, where's the realistic AI income today?
Question 5 of 6
In a GAN, what do the generator and discriminator do?
Question 6 of 6
What made ChatGPT's late-2022 launch such a turning point?
Track complete! 🎓
Your AI foundation is built:
- Python + the math intuition (weights, gradient descent)
- Machine learning, deep learning, and neural networks
- NLP/LLMs, computer vision, MLOps, and generative AI (diffusion and GANs, plus a mini text generator you built yourself)
- Case study: ChatGPT's 2022 launch showed that making AI accessible can matter more than the underlying breakthrough
Path to paid work: the fastest route today is applying AI — learn one framework (start with scikit-learn, then PyTorch), master prompt engineering, and build 2–3 real projects (a chatbot, an image classifier, an LLM-powered app) on your GitHub. Combine that with the freelance/job skills from the Frontend track's "Getting Paid" lesson, and you're positioned for one of the most in-demand fields on earth. Build responsibly!
Practice
Reading is not learning until you run something. Pick one.