DALL-E and the Future of Art
Tags: agilewebandappdevelo
Published: 2023-04-21 12:55:50

---
title: DALL-E and the Future of Art
published: true
date: 2023-04-19 07:48:31 UTC
tags: Agilewebandappdevelo
canonical_url: https://apiumhub.com/tech-blog-barcelona/dall-e-and-the-future-of-art/
---

As we have seen in our [previous article](https://dev.to/apium_hub/gpt-3-playground-the-ai-that-can-write-for-you-4h45), artificial intelligence (AI) is transforming many aspects of our lives, including the world of art. With the help of machine learning algorithms and generative models (i.e., a machine “learns” a piece of information and uses it to generate a new image), AI can now create works of art that are often indistinguishable from those created by human artists.

AI-generated images are a type of art that is generated through algorithms that analyze patterns and styles in existing art and use this information to create new and original pieces. AI-generated art can take many forms, including paintings, sculptures, music, and even fashion.

One of the most fascinating aspects of this type of art is that it can produce completely unprecedented and often unexpected works. The algorithms used can generate unique patterns, colors, and textures that a human artist may not have considered. As a result, AI-generated art has the potential to push the boundaries of traditional art forms and create new experiences.

Despite the many possibilities afforded to us by this type of AI, it has also sparked debate about the role of technology in the creative process. Some argue that AI-generated art lacks the emotional depth and nuance of human-created art, while others see it as a new frontier for artistic expression.

Today we are going to talk about one of the most famous AI art generators of all, one that shares its beginnings with GPT-3 It is called DALL-E.

## What is DALL-E?

[DALL-E](https://openai.com/dall-e-2/)is an AI-based image generator created by OpenAI, a research organization focused on developing advanced technologies in artificial intelligence. Launched in January 2021, DALL-E is designed to create unique images from descriptions we provide in the form of text.

The name “DALL-E” is an acronym for “Dali” and “Eve,” in reference to the surrealist artist Salvador Dali and the character Eve from the Pixar movie WALL-E. The project builds on OpenAI’s previous work with GPT-3, a language model capable of generating human-like text.

DALL-E uses a combination of neural networks and deep learning techniques to create its images. The model was trained on a dataset of various images and text captions, allowing it to understand the relationships between different objects and concepts.

The development of DALL-E shows the potential of machine learning to create unique and imaginative visual art. The model has already been used to create a wide range of images, from landscapes, animals, and objects to even characters that could pass for protagonists in any story.

Overall, DALL-E represents a breakthrough in the field of generative AI, demonstrating the growing potential of machine learning to create authentic and imaginative visual art.

## How to use it?

To use this AI, the first thing to do is to register on their [website.](https://openai.com/dall-e-2/)

![aSX0FV2jdbarNpD9b z0Brzt5KROocE9H](https://lh6.googleusercontent.com/aSX0FV2jdbarNpD9b-z0Brzt5KROocE9H-JJZezamyyKR8xUmEDwXMykH85LRBr9zwB_yX9J72gkJydS0M6oqBv8nXv4s_LrbIMAbWFQNBQiFJgd1rewnkzjd76_bBjW7G5dgarbyPWpyOSSCj1tl2c "DALL-E and the Future of Art 13")

Once we have successfully registered, we appear in the DALL-E creation [laboratory](https://labs.openai.com/), where we can perform the tests we want.

![OGOnf93w3iwfH5EdSnc0egX5JspsEoeWsTfUgDVfRcrB8nhMkRo1sy](https://lh4.googleusercontent.com/OGOnf93w3iwfH5EdSnc0egX5JspsEoeWsTfUgDVfRcrB8nhMkRo1sy-0_NxYUuqsrra5ZRR3R6vfEd9yr05USMIhiFxQ0YtDXLPfs9Ja9loi0dCNpP2xcI3gioF0LPPyqxxX__WDnoevdbuR5ZMfml0 "DALL-E and the Future of Art 14")

As we can see, it is very similar to the **playground** we had for GPT-3.

The first thing that catches our attention are several examples of the first and most famous images that have been created with DALL-E. Then it offers us several options of functionalities, like uploading an image to edit it, telling it to surprise us with the **Surprise Me** button, or giving the AI an idea of what we want it to generate.

To show you the potential of this AI, we are going to ask it to draw a robot with a Disney-like style, and as if it were digital art, what is better than a robot when we are talking about an AI?

To start, we will click on the text box provided and write our **prompt** (if you have read our previous articles, you will know what I’m talking about, if not, I invite you to go through them). For this case, I have written the following:

_“a cute robot, Disney style, digital art”_

And the result we have obtained is as follows:

![](https://lh3.googleusercontent.com/Lbi1kXdsAQ2n9h21sdcHnyYMVEy2jsUyqwExdxqTxGpbOVP_M0DZv4AXJErCQS6etQYuov_Tfxk6CrNMIjyyTmlHxVZkF2tt3LsS66lGJWvClikLolZbvaE8ywGTMLlwkXTIzy8MmlXAyR1WSlyB7ik "DALL-E and the Future of Art 15")

The image that most caught my attention is the second result, so we will keep it because as we progress we will be testing our robot.

**Options within the image generation**

DALL-E has several options when generating images. Two of the most famous are **Edit** and **Outpainting.**

### Outpainting

This option is all about users being able to continue the artwork of an image beyond the edges and the original image. On [their blog](https://openai.com/blog/dall-e-introducing-outpainting/), we have an explanation of what it is and how it works, but we also have a great example of what can be done.

We are all familiar, either from art history or from the movie, with the painting entitled “The Girl with the Pearl”, a painting by Johannes Vermeer.

![cJwqV5FC5q40dY8viqF99NPMfiYVNhpxs1lnktMJmy8lJx6AQ5 VXb7BA47fIheESg0SP3FaJcCajL](https://lh3.googleusercontent.com/cJwqV5FC5q40dY8viqF99NPMfiYVNhpxs1lnktMJmy8lJx6AQ5_VXb7BA47fIheESg0SP3FaJcCajL-gXyylYYtrFcrYykh4bx_8C7iNJbxEbcQeCf0_7o_Fob2Yyeu7ukPpgdYbMQEhXZNlKDqCUJA "DALL-E and the Future of Art 16")

The fact is that another artist named August Kamp, thanks to this technology, represented what the enlarged margins of the painting could look like, and kept extending the work until he achieved the following result:

![KRrormOLG4fURERkRzrLc6GR92kfM2hTo5q0FLFEzv2v mYqxcRcQV9jWxN5Hjyo7GrPjTpRy3GQ S3KdSevTDrtFYJHVzo Al9JJGFl 5t tnnehbhNPmue GnsjAHcfyhmCJcBSq u 4QgB57F3Xs](https://lh5.googleusercontent.com/KRrormOLG4fURERkRzrLc6GR92kfM2hTo5q0FLFEzv2v_mYqxcRcQV9jWxN5Hjyo7GrPjTpRy3GQ_S3KdSevTDrtFYJHVzo_Al9JJGFl-5t_tnnehbhNPmue-GnsjAHcfyhmCJcBSq-u_4QgB57F3Xs "DALL-E and the Future of Art 17")

Little by little, he was telling the work what was around it, such as the kitchen, the windows, and the shelves… until he came up with what we are looking at right now. In his blog, you can see a video of the process.

Now we are going to do a test with the robot we did before. To do this, select the image in our results and click on the **Edit** option, which will open an editor.

![mgmzd7PIwMOOi36qTfZFmB 9m3al2jccrmPbWVwHbZ25zsdvrxLHgPGqCHRrMOGLnNsFuV9yZXKRrsqu0yMxDqNyxCz2snI8CCUKJ4FOxyGMPQPLYg1g X7HWzzyRgiQXT8 Cg LcW3lBjyeyT0mCGE](https://lh6.googleusercontent.com/mgmzd7PIwMOOi36qTfZFmB-9m3al2jccrmPbWVwHbZ25zsdvrxLHgPGqCHRrMOGLnNsFuV9yZXKRrsqu0yMxDqNyxCz2snI8CCUKJ4FOxyGMPQPLYg1g-X7HWzzyRgiQXT8_Cg_LcW3lBjyeyT0mCGE "DALL-E and the Future of Art 18")

Below the image we will have several tools and, for this case, we will **select** the first one called **Select**. With this, we will move the blue box to the area where we want to extend our image and we will tell DALL-E again what to draw. For this example, I have asked him to draw another robot next to him and we will click **Generate.**

![doLb Y5m ImNYHAnT5 Q7Sp71M9zBnILcZV1ZgpAehYgxL8tJntvAqAdspSB0SR1vgvXnE0tRNdtwLXmpT7jMwr AjZgC4EXq3KAbcEKuka51 4DGXErbip4 JKHgj7RR8c6qtTNEHYB IQFE2bS2zg](https://lh3.googleusercontent.com/doLb_Y5m_ImNYHAnT5_Q7Sp71M9zBnILcZV1ZgpAehYgxL8tJntvAqAdspSB0SR1vgvXnE0tRNdtwLXmpT7jMwr_AjZgC4EXq3KAbcEKuka51_4DGXErbip4-JKHgj7RR8c6qtTNEHYB_IQFE2bS2zg "DALL-E and the Future of Art 19")

As we can see in the result, he has stretched the image to the left, which is where we had indicated and has respected the background, the colors, and the light, and has drawn what we could say is an old version of our first robot.

### Edit

This feature consists of adding something to an image by giving a mask to the original. The masks on an image are a widespread concept in programs such as **Photoshop** and are another resource to create transparency in a layer. In this case, we can see that we have an image of an empty room in which we add a sofa just where we have selected the number **two.** If you want to see more examples, on his [web](https://openai.com/dall-e-2/) you can see some more.

![9g3WAGwcRuPlWklx wHyg6s5GViXDCLucJVaqVYNnJZnJQQDY H0jeVUnQnUL4XzE8LsvySj55InopVZCAxoqwjNXb4Hchg 8GIznI86hLl32vUzuBD8JgsunC7yb8wKXKy8q2jfiFOYzw9RlHMCMMA](https://lh5.googleusercontent.com/9g3WAGwcRuPlWklx_wHyg6s5GViXDCLucJVaqVYNnJZnJQQDY-H0jeVUnQnUL4XzE8LsvySj55InopVZCAxoqwjNXb4Hchg-8GIznI86hLl32vUzuBD8JgsunC7yb8wKXKy8q2jfiFOYzw9RlHMCMMA "DALL-E and the Future of Art 20")

We are going to do another test with our two robots. In the same editor, we will now select the Eraser option and erase an area of the image. I have decided to erase the area between the two robots.

![RHmxAlR](https://lh4.googleusercontent.com/RHmxAlR-AiSaFFVECkpY9uwvddI6doavfCjVWzvcVPLUJNP3TNWUSK3XQQH_yZ3nZvoNlTl75FskXOcUgEhuXb35hqiGrhpGlwOJxABcfBKrRUmPqP8dBYuFk0IVmXH1aE6suPSEdnWZaCNcibC30_g "DALL-E and the Future of Art 21")

And now I’m going to ask DALL-E to draw a heart between the two of them by writing in the text box the following:

_“Cute robots with a metallic heart in the middle, Disney style, digital art”._

The result is as follows:

![RkGxIixfvxHpLxHMLbHTfUMRiSdtulbx5dXfMXYjK 9KWffrjNlQ Iyy0Fx TP1OgiUCc 1eVQfjXjGDRrWUVLKiFupSH20SOelIR1LynhKzePuQyXle86hNbL6FBcDLnQfRnkN SyIcDLz3no9JS0Q](https://lh6.googleusercontent.com/RkGxIixfvxHpLxHMLbHTfUMRiSdtulbx5dXfMXYjK_9KWffrjNlQ_Iyy0Fx_TP1OgiUCc-1eVQfjXjGDRrWUVLKiFupSH20SOelIR1LynhKzePuQyXle86hNbL6FBcDLnQfRnkN_SyIcDLz3no9JS0Q "DALL-E and the Future of Art 22")

## How to do it with Python

If you have read our second article about GPT-3 and its use with **Python** , this is going to be very easy for you. We will follow the same steps, it consists of installing the **openIA** library, importing it, and adding our **API\_KEY** to the code.

In this case, we will indicate a **prompt** , the number of images to make, and the size of this. The result can be obtained in the form of bytes or by accessing a **URL** that hosts the generated image. An example of code would be the following:

![a0hpUIvX rBGvD Uas5EJw MUu0Cx9iS eoyT7WB8kDXDQjcIqAF2vJup1Mf 4bjW0Om2PzkPvlaE8N vLCnbz vQ0GOaMdiI4mLWHtEODMfyJpFKVR VATHlFNKN1VeylNog4eAl8iVKi UeIwY7fQ](https://lh5.googleusercontent.com/a0hpUIvX_rBGvD_Uas5EJw-MUu0Cx9iS_eoyT7WB8kDXDQjcIqAF2vJup1Mf_4bjW0Om2PzkPvlaE8N-vLCnbz_vQ0GOaMdiI4mLWHtEODMfyJpFKVR-VATHlFNKN1VeylNog4eAl8iVKi_UeIwY7fQ "DALL-E and the Future of Art 23")

If we would like to explore more about its **API** and know more parameters we can ask DALL-E, we have its documentation that will help us to expand our knowledge in this [link.](https://platform.openai.com/docs/api-reference/images)

## How much does it cost?

To test with DALL-E, we have a **free** option for new accounts in which we will receive 50 credits to use during the first month and then 15 credits monthly. Each credit is equivalent to each time we hit **Generate** regardless of whether we like the result or not.

If we would like to buy credits to have more generations of images, the price for buying 115 credits is 15 dollars. In your profile, you will be able to see the credits you have left, although DALL-E will warn you from time to time about the credits you have available in the form of alerts in its editor.

![vQEXISKbgaHAfsViUyB0dVtYiCKPE3dnF512eZfT5JRerqlaLVJwOq5Fv4nJ Z4HbiOzJ70eIb0eG1PO 9QF25NSXGEaeUkyYi5pd2z6JuUs3PrBGAgbGyiaTuUb9dCdy6tumO5teHDD3r8Orw3ewFM](https://lh6.googleusercontent.com/vQEXISKbgaHAfsViUyB0dVtYiCKPE3dnF512eZfT5JRerqlaLVJwOq5Fv4nJ-Z4HbiOzJ70eIb0eG1PO_9QF25NSXGEaeUkyYi5pd2z6JuUs3PrBGAgbGyiaTuUb9dCdy6tumO5teHDD3r8Orw3ewFM "DALL-E and the Future of Art 24")

## Conclusion

Artificial intelligence is poised to have a significant impact on the art world, and AI-generated art is fast becoming a legitimate and growing area of artistic practice. As technology evolves, it is likely to generate new and innovative approaches to creative expression and redefine what we consider art.

One of the main benefits of AI-generated art is the ability to quickly generate works based on existing patterns and styles. This provides a powerful tool for artists and designers to explore new creative directions and push the boundaries of traditional art practice.

However, the rise of this new technology has raised concerns about the role of the artist in the creative process. Despite these concerns, the impact of AI on the art world is inevitable. This world will continue to evolve and gradually become more accessible, and with it, we will see an increase in the use of AI-generated art in a wide range of contexts, from commercial design to fine art.

Regardless of how the relationship between AI and artists develops, it is clear that the art world is on the cusp of a major transformation, especially in the way we think about and create art.

In the following article we will explain one of my favorite AIs called **MidJourney** and, with it, open the debate of whether or not AI-generated images can win an art competition.