Home/Blog/What is generative AI? The complete guide

What is generative AI? The complete guide

Generative AI is the technology behind the chatbots, image makers, and video tools of the last few years, and it is usually explained as if each were a separate trick. Underneath, they share one idea: learn the probability distribution of some kind of data, then sample from it to make new examples. This guide explains what generative AI is, how it works, the model families, and where it really falls short.

Generative AI is the technology behind almost everything that made AI feel suddenly world-changing in the mid-2020s: the chatbots that write essays, the tools that turn a sentence into a photorealistic image, the systems that generate video, music, and working code from a prompt. It is usually explained as a collection of separate marvels, a text one, an image one, a video one, each treated as its own kind of magic. That framing hides the most useful fact about the whole field, which is that underneath the different outputs, generative AI rests on a single idea. Every generative model, whatever it produces, works by learning the probability distribution of some kind of data and then sampling from that learned distribution to create new examples that resemble the originals without copying them.

This guide is a complete, honest tour of generative AI built around that idea. It explains what generative AI is and how it differs from the AI that came before, the one principle that unites all of it, the main families of models and how each one implements that principle differently, how these systems are built and what they can do across text, images, video, audio, and code, and, just as importantly, where they really fall short. The goal is to leave you understanding not just what generative AI does but why it works the way it does, so that the chatbot and the image generator stop looking like two unrelated tricks and start looking like two applications of the same deep idea.

Generative versus discriminative: what the "generative" means

To understand generative AI, it helps to know what kind of AI it is not, because the contrast is the whole point. Most of the machine learning that existed before the generative boom was discriminative. A discriminative model looks at existing data and makes a judgment about it: is this email spam or not, what object is in this photo, will this customer churn, what number is this handwritten digit. Its job is to take an input and produce a label or a prediction. It draws boundaries between categories of things that already exist.

A generative model does something fundamentally different and considerably harder: it creates data that did not exist before. Instead of labelling an image, it produces a new image. Instead of classifying a sentence, it writes one. The distinction is not just about output; it reflects a deep difference in what the model has to learn. A discriminative model only needs to learn the boundary between classes, which is enough to sort inputs into buckets. A generative model has to learn the shape of the data itself, a far richer and more demanding thing, because to produce a convincing new face or a coherent new paragraph, it must have internalised what faces or paragraphs are actually like, in full. This is why generative AI arrived later and required far more scale: modelling the whole distribution of a kind of data is much harder than merely dividing it into categories.

The one idea underneath all of it: learn a distribution, then sample

Here is the principle that unifies the entire field, and the single most valuable thing to carry away. Every kind of data, text, images, audio, has a hidden structure, a probability distribution that describes which examples are likely and which are not. Real photographs occupy a tiny, structured corner of the space of all possible pixel arrangements; almost every random arrangement of pixels is noise, and the ones that look like real scenes are vanishingly rare and highly patterned. The same is true of grammatical, meaningful sentences among all possible strings of words. A generative model's job is to learn that distribution, to build an internal model of what real examples of its data type look like, and then to sample from it: to draw new points that fall within the region of realistic examples.

This single framing explains the two properties that make generative AI remarkable. It explains why the outputs are novel rather than copied: sampling from a learned distribution produces new points in the space, combinations that were never in the training data but are consistent with its patterns, which is why a model can generate a face of a person who does not exist or a sentence no one has ever written. And it explains why the outputs are coherent rather than random: because they are drawn from the learned distribution of real data, they inherit its structure, its grammar, its visual logic. Every generative model is doing this. What differs between them is the strategy they use to learn the distribution and to sample from it, and those strategies are what define the families of generative models.

The families of generative models

There are several distinct architectures for learning a data distribution and generating from it, each with its own strengths, and the modern field has largely consolidated around two of them while retaining the others for specific uses. Understanding the families is understanding the toolkit.

Autoregressive models: generating one piece at a time

The dominant approach for text, and the one behind every large language model, is autoregressive generation. An autoregressive model breaks the problem of generating a whole sequence into a chain of small predictions: it generates one element at a time, and each new element is predicted based on all the elements that came before it. For text, the element is a token, and the model repeatedly predicts the next token given everything so far, appending it and continuing. Mathematically, this factors the distribution of a whole sequence into a product of conditional probabilities, one per position, which is a tractable way to model something as complex as language.

This is why a chatbot writes the way it does, one token after another, and why it can be steered by what has come before. The transformer architecture made autoregressive text generation work at scale by letting the model attend to all previous tokens in parallel during training, and the final generation step, choosing each next token from the predicted distribution, is governed by sampling settings like temperature. Autoregressive generation gives fine control and coherence over long sequences, which is why it dominates text and code, though generating one element at a time makes it inherently sequential and therefore slower for long outputs.

Diffusion models: sculpting signal out of noise

The dominant approach for images and video is completely different and, at first, counterintuitive. A diffusion model learns to generate by learning to remove noise. During training, it takes real images and progressively adds random noise until they become pure static, then learns to reverse that process step by step, predicting how to denoise slightly at each stage. Once trained, it can start from a screen of pure random noise and, through many small denoising steps, gradually sculpt that noise into a coherent, detailed image that never existed. As covered in the piece on how AI generates images, this iterative refinement is why diffusion models produce such high-quality, varied results, and the same principle extends to video generation, where the model denoises across time as well as space.

Diffusion learns the data distribution implicitly, through the denoising task, and samples from it by running the denoising process from a fresh random starting point, which is why two runs from different noise produce different images. It has become the leading method for visual generation, surpassing the earlier approaches in quality and stability, and increasingly it is being integrated directly into multimodal systems.

GANs: generation as a contest

Before diffusion took over images, the leading approach was the generative adversarial network, or GAN, and its design is worth knowing both historically and because the idea is instructive. A GAN pits two neural networks against each other. A generator tries to produce realistic fake data, and a discriminator tries to tell the generator's fakes from real examples. They train in competition: the generator gets better at fooling the discriminator, the discriminator gets better at catching fakes, and through this arms race the generator learns to produce outputs that are increasingly indistinguishable from real data. GANs learn the distribution implicitly, never writing it down, only learning to sample convincingly from it via the adversarial game.

GANs produced the first strikingly realistic synthetic faces and drove a wave of progress, but they are notoriously difficult to train, prone to instability and to collapsing onto a narrow range of outputs, which is part of why diffusion, being more stable, has largely displaced them for the highest-quality work.

VAEs and the others

The variational autoencoder, or VAE, takes yet another route: it learns to compress data into a smooth, continuous latent space, a compact internal representation, and to decode points from that space back into data. Generating new examples means sampling a point in the latent space and decoding it. VAEs give unusually controllable and interpretable representations, since moving around the latent space changes the output in structured ways, but their outputs tend to be blurrier than those of diffusion models or GANs. They remain foundational, and their latent-space idea underpins parts of modern systems, including the latent spaces that diffusion models often operate in. Other approaches, such as flow-based models, round out the toolkit, and in practice modern systems frequently combine ideas from several families rather than using one in isolation.

How generative models are built

Whatever the family, generative models are built through the same broad process, and it is worth seeing the shared pipeline. First comes an enormous amount of data: text scraped from the web, images with captions, video, audio. Then comes training, in which the model adjusts its internal parameters to capture the distribution of that data, whether by learning to predict the next token, to denoise, or to win an adversarial game. This is where the immense compute cost of generative AI lives, and it is governed by the scaling laws that make bigger models trained on more data predictably more capable. For the most capable systems, especially language models, initial training on raw data is followed by additional stages that shape the model's behaviour, teaching it to follow instructions and to be helpful, which is what turns a raw distribution-modeller into a usable assistant.

The result of all this is a model that has, in effect, absorbed the statistical structure of a vast slice of human-created data, and can generate new examples from it on demand. The differences in output, a paragraph here, an image there, come down to what data the model was trained on and which generation strategy it uses, but the underlying achievement is the same in every case: a learned distribution you can sample from.

A short history: how generative AI arrived

Generative AI did not appear all at once, and knowing the sequence helps make sense of the current landscape. The modern era began in the mid-2010s with two ideas for generating images. Variational autoencoders showed you could learn a smooth latent space and decode new samples from it, and generative adversarial networks, introduced in 2014, produced the first strikingly realistic synthetic faces through their generator-versus-discriminator contest. For several years, GANs were the face of generative AI, and the phrase mostly meant images.

Text generation was the harder problem, and it was unlocked by a different advance. The transformer architecture, introduced in 2017, made it possible to train autoregressive language models on enormous amounts of text efficiently, and a series of increasingly large models built on it demonstrated that scaling up produced steadily more capable text generation. This line of work culminated in the public arrival of capable chatbots in late 2022, which is the moment generative AI entered mainstream awareness and the term came to mean, for most people, systems you could talk to.

Around the same time, images went through a changing of the guard. Diffusion models, which generate by learning to reverse a noising process, overtook GANs by producing higher-quality and more controllable results with far more stable training, and text-to-image systems built on them put photorealistic image generation in anyone's hands. Video generation followed as diffusion methods were extended across time, reaching near-cinematic quality by the mid-2020s. The most recent shift has been consolidation: rather than a separate model for each medium, the frontier moved toward large multimodal systems that handle text, images, audio, and more within a single model, which is the direction the field is heading now. Each step in this history is a case of the same underlying idea, learning a distribution and sampling from it, being applied to a new kind of data or made to work at a larger scale.

What generative AI can do, by modality

The reach of generative AI is best understood modality by modality, because each has its dominant approach and its own frontier. In text, autoregressive language models write, summarise, translate, answer questions, and increasingly reason through problems, and they have become the general-purpose interface to much of the technology. In images, diffusion models generate and edit pictures from text descriptions at a quality often indistinguishable from photographs or professional art. In video, diffusion-based systems have reached striking, near-cinematic quality, generating coherent motion and, increasingly, synchronised audio. In audio, generative models produce speech that is hard to distinguish from a real voice, along with music and sound. In code, autoregressive models generate, complete, and explain programs, reshaping software development. And increasingly, all of these are converging into multimodal systems that handle several kinds of data in one model, taking in an image and text and producing an answer, or generating across modalities from a single prompt. The direction of the field in this era is toward these unified multimodal models as the default, rather than a separate tool for each medium.

Where generative AI falls short

An honest guide has to be as clear about the limits as the capabilities, because the failure modes of generative AI follow directly from how it works, and understanding them is what separates informed use from disappointment. The most fundamental limitation is that a generative model has no built-in notion of truth. It samples what is plausible according to its learned distribution, not what is correct, which is why language models hallucinate, producing fluent, confident statements that are simply false. The same mechanism that lets the model generate novel, coherent text is the one that lets it generate novel, coherent falsehoods, and there is no internal signal reliably separating the two.

A second limitation is that a model can only learn the distribution of its training data, which means it inherits that data's biases, gaps, and errors, and cannot straightforwardly exceed it. If the training data over-represents some groups, viewpoints, or styles, the model's outputs will too, and this is a persistent source of concern in real deployments. A third is reliability and control: because generation is probabilistic, outputs vary and can drift, and getting a model to do exactly what you want, in the right format, reliably, remains genuine work rather than a given. And there are consequences beyond the technical, including the ease of producing convincing misinformation and deepfakes, unresolved questions about the copyright and provenance of both training data and outputs, and the difficulty of knowing whether a given piece of content was made by a human or a machine.

Is it really creating, or just remixing?

This leads to the question that hangs over the whole field and that reasonable people disagree about: when a generative model produces something, is it creating, or is it just sophisticated remixing of its training data? The framing of this guide gives a precise way to think about it. The model learns a distribution of human-made data and samples from it, so its outputs are new points in the space defined by that data, not copies of any single example, but also not departures from the space the data describes. That is neither pure copying nor human-style originality. It is the generation of novel combinations within the territory mapped by the training data.

Whether that counts as genuine creativity is partly a question about words. The outputs are demonstrably novel, in that specific images and sentences are produced that never existed before, and they can be surprising and useful. But they are bounded by the distribution the model learned, which is built from human creativity, so the model is in a real sense recombining and extending human work rather than inventing from nothing. Both the enthusiastic view, that this is a new kind of creativity, and the skeptical view, that it is elaborate interpolation, capture something true. The honest position is that generative AI produces genuine novelty of a particular, bounded kind, and that arguing about whether to call it creativity often reveals more about our definitions than about the technology. What is not in doubt is that the outputs are new, and that this newness comes from sampling a learned distribution rather than from retrieving stored examples.

The short version

Generative AI is the branch of AI that creates new content, text, images, video, audio, and code, rather than merely classifying or predicting from existing data as older discriminative AI does. Underneath its many forms lies a single principle: every generative model learns the probability distribution of a kind of data and then samples from that learned distribution to produce new examples that resemble the training data without copying it, which is why the outputs are both novel and coherent. The families of models are different strategies for doing this: autoregressive models, including language models, generate one element at a time and dominate text and code; diffusion models generate by iteratively removing noise and dominate images and video; GANs generate through a contest between two networks; and VAEs generate by sampling a compressed latent space. All are built by training on enormous data at great compute cost, following scaling laws. And all share the same core limitation: they model plausibility, not truth, so they hallucinate, inherit their data's biases, and generate novelty only within the space their training data defines.

The idea to hold onto is that generative AI is not a collection of separate tricks but a single deep idea applied to different data: learn the distribution of real examples, then draw new samples from it, which is why these systems can produce endless novel, coherent output and also why they confidently produce plausible nonsense, since sampling a learned distribution is the same operation whether the result happens to be true or false. Once you see the chatbot and the image generator as two ways of sampling a learned distribution, the whole field stops being magic and starts being understandable.

Common questions

What is generative AI? Generative AI is a type of artificial intelligence that creates new content, such as text, images, video, audio, or code, rather than only analysing or classifying existing data. It works by learning the underlying probability distribution of a kind of data from a large training set, then sampling from that learned distribution to produce new examples that resemble the training data without copying it. This is what powers chatbots, image and video generators, and coding assistants. It differs from earlier AI, which mostly made judgments about existing data, in that it produces new data that did not exist before.

How does generative AI work? At its core, every generative AI model learns the probability distribution of its training data, an internal sense of what real examples look like, and then generates new content by sampling from that distribution. Different families do this differently: autoregressive models like language models generate one token at a time, each based on the previous ones; diffusion models start from random noise and iteratively remove it to form an image; GANs use two competing networks; and VAEs sample from a compressed latent space. All are trained on massive datasets at great computational cost. The shared result is a model that can produce novel, coherent outputs on demand by drawing new samples from what it learned.

What is the difference between generative and discriminative AI? Discriminative AI makes judgments about existing data, classifying an email as spam, identifying an object in an image, or predicting a value. It learns the boundaries between categories. Generative AI instead creates new data that did not exist before, writing a sentence or producing an image. The technical difference is deep: a discriminative model only needs to learn where the boundaries between classes lie, while a generative model must learn the full structure of the data itself, which is far harder. This is why generative AI required much more scale and arrived later, since modelling an entire data distribution is more demanding than dividing data into categories.

What are the main types of generative AI models? The main families are autoregressive models, diffusion models, GANs, and VAEs. Autoregressive models, including large language models, generate content one element at a time and dominate text and code. Diffusion models generate by starting with random noise and iteratively denoising it into a coherent result, and dominate image and video generation. GANs generate through a competition between a generator and a discriminator network, and were pivotal for early realistic images. VAEs generate by sampling a smooth, compressed latent space, offering control at some cost to sharpness. Modern systems have largely consolidated on autoregressive models for text and diffusion for visuals, often combined in multimodal models.

How is generative AI different from ChatGPT? ChatGPT is a specific product built on generative AI, not a synonym for it. Generative AI is the broad field of models that create new content across many modalities, text, images, video, audio, and code. ChatGPT is one application of that field: a chatbot built on a large language model, which is one family of generative AI (the autoregressive type) specialised for text. Image generators, video generators, music models, and coding assistants are all generative AI too, using different model families. So ChatGPT is a well-known example of generative AI applied to conversation, while generative AI as a whole is much wider.

What are the limitations of generative AI? The most fundamental is that generative models produce what is plausible according to their training data, not what is true, so they hallucinate, generating fluent but false content with no reliable internal signal separating fact from fabrication. They also inherit the biases, gaps, and errors of their training data and cannot easily exceed it. Because generation is probabilistic, outputs vary and can be hard to control precisely. And there are broader concerns: the ease of producing misinformation and deepfakes, unresolved copyright and provenance questions around training data and outputs, and the difficulty of telling human-made content from machine-made.

Is generative AI actually creative, or does it just copy? Neither, exactly. A generative model learns a distribution built from human-made data and samples new points from it, so its outputs are novel, specific images or sentences that never existed, rather than copies of any single training example. But they are bounded by the space the training data defines, so the model recombines and extends human work rather than inventing from nothing. This means it produces real novelty of a particular, bounded kind. Whether to call that creativity is largely a question about definitions; what is clear is that the outputs are new and arise from sampling a learned distribution, not from retrieving stored examples.

Sources & further reading

The primary literature behind the claims above, drawn from the concept entries this post links to, so a claim carries the same source here as it does there.

  • Ho, Jain & Abbeel (2020), Denoising Diffusion Probabilistic Models — the paper that made diffusion work. Diffusion Model
  • Rombach et al. (2022), High-Resolution Image Synthesis with Latent Diffusion Models — Stable Diffusion, and the move to latent space that made it runnable on consumer hardware. Diffusion Model
  • Song, Meng & Ermon (2020), Denoising Diffusion Implicit Models — fewer steps, and the speed/quality trade-off you actually tune. Diffusion Model
  • Goodfellow et al. (2014), Generative Adversarial Nets — the original, and unusually readable. GAN (Generative Adversarial Network)
  • Karras et al. (2018), A Style-Based Generator Architecture for Generative Adversarial Networks — StyleGAN, the peak of GAN image quality. GAN (Generative Adversarial Network)
  • Arjovsky, Chintala & Bottou (2017), Wasserstein GAN — the most influential attempt to make training stable, and a clear account of why it wasn't. GAN (Generative Adversarial Network)
  • Kingma & Welling (2014), Auto-Encoding Variational Bayes — the paper; the ELBO and the reparameterisation trick. Variational Autoencoder
  • Higgins et al. (2017), β-VAE: Learning Basic Visual Concepts with a Constrained Variational Framework — the disentanglement dial, and its cost. Variational Autoencoder

Learn the concepts

← All posts