To create an AI-generated image, a machine learning model scans the Internet for millions of images and the text associated with them. The algorithm will spot trends in the images and text and eventually start guessing which images and text fit together. Once the models can predict what the image will look like based on the given text, they can create a completely new image from scratch based on a new set of descriptive text that the user enters into the application.