A generative model learns patterns in old data to make new text, images, video, and code
In the examples shown, a short typed prompt can return a race history, an alien octopus picture, a swimming teddy bear video, and a working program.

Google for Developers · What is Machine Learning?A generative model learns patterns in old data to make new, similar text, images, video, and code.
In the examples shown, the input is a short typed sentence. Ask which group started the Le Mans race. The answer, generated by Bard, a Google text generator, names the Automobile Club de l'Ouest, a French car club. It says the club was formed in 1906. It says the first race ran on May 26 and 27, 1923, on a 13.426-kilometre road circuit near Le Mans, France.
The sample prompts show how it works: type in "An alien octopus floats through a portal while reading a newspaper," and you get the picture. Type in "A photorealistic teddy bear is swimming in the ocean at San Francisco," and you get video of it swimming among colorful fishes. Type a request for code, and you get a working program that repeats steps to find prime numbers, numbers divisible only by one and themselves.
Questions people ask
How is a generative model different from other machine learning?
Most machine learning predicts something about data you give it, like a price or a category. A generative model goes one step further and creates new data that looks like what it was trained on, whether that is a paragraph, a picture, or a clip.
What is the Python code for prime numbers actually doing?
Python is a widely used programming language, and a loop repeats an action for each item in a list. In this example, the code checks each number to see if any smaller number divides into it evenly, and prints it only if none do, which is the definition of a prime number.
Should I trust the history answer about Le Mans?
Treat it as a starting point, not a final source. Generative text systems can state facts fluently but can also invent details, so important dates, names, and distances should be checked against a reliable reference like an official race history or encyclopedia.