How Does DALL-E Work?

AI-generated art can be truly bizarre, but how does it work?

If someone told you to draw a person eating an apple, you can do that because your brain has learned what a person is, what an apple is, and what eating is. But can a computer produce those same drawings? With AI-based programs DALL-E and Craiyon (formerly called DALL-E Mini), computers can come pretty darn close to creating any image you can envision.

DALL-E, a program developed by OpenAI, can generate images from a prompt. Craiyon is a smaller free version, based on DALL-E and created by software engineer Boris Dayma, with some input from the AI community. Both are causing a buzz on the internet.

So, how do computers know how to draw things? Much like humans, PCs need to be “trained”—a lot. Researchersfeed them millions and millions of images with captions so the computer gets an understanding of what each “thing” looks like, and how to draw it. Then, when you ask the computer to draw “someone eating an apple,” the computer goes through all the stuff it has learned about people, apples, and the act of “eating,” and draws an image that matches those terms.

Sometimes it gets stuff wrong, which is where machine learning comes into play. The researchers can help guide the AI by telling it which images are good and which are bad. The AI can then learn from its errors and generate better images next time.

This technology also allows the AI to generate images that you never see in real life. For instance, if I told you to draw someone eating a basketball, you can likely picture it and draw it despite never having seen it happen (we hope). And when you tell the AI to do the same, it has to put together what it knows about people, basketballs, and how to eat things to generate its Images.

This technology goes much further than DALL-E. For example, the website “This Person Does Not Exist” generates a totally new human face after being trained on millions of examples, and it does a very good job with it!

Who knows; maybe in the future, we’ll have whole art galleries dedicated to AI-generated art. For now, however, it’s funny to see how a computer draws someone eating a basketball.

Learn More


DALL-E Mini by Craiyon

DALL-E Open AI Image Generator


DALL-E Art AI Generator


AI-Generated Picture Wins Art Prize

The Story Behind DALL-E Mini

Ten Best AI Text to Art Tools


What is DALL-E and How Does It Work


  • Simon Batt

    Simon Batt is a UK-based tech enthusiast and all-around geek. His favourite things are cups of tea, cats, and new gadgets, even though they never mix well.

Also In The December 2022 Issue

The electronic toys your parents may have grown up with!

Meet the point where your love of hiking and technology meet.

Learn how kids are falling in love with computer science in Africa

Move over Krabby Paddy, algae burger is coming through!

Show off your Minecraft fighting skills with these RAD mods

Take a bite out of this story on how technology is being used to help communities come together!

A collection of the Learn more links from the December 2022 issue, all in one place, just for you.

A collection of interesting stories about technology and STEM for December 2022

Interested but not ready to subscribe? Sign-up for our free monthly email newsletter with curated site content and a new issue email announcement that we send every two months.

No, thanks!