If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Does AI have creativity and imagination?

AI has the amazing capability to generate art, images and even complete video sequences but does it have actual creativity and imagination? And how does this type of AI work? Learn more about how AI is able to generate art including images we've never seen.

Featuring:
Cristóbal Valenzuela the creator of Runway
Mira Murati the CTO of OpenAI

Presented by: Code.org, ETS, ISTE, Khan Academy

Start learning at code.org today!

Stay in touch with us on social media:
• Twitter: https://twitter.com/codeorg
• Facebook: https://www.facebook.com/Code.org
• Instagram: https://instagram.com/codeorg
• TikTok: https://tiktok.com/@code.org
• LinkedIn: https://www.linkedin.com/company/code-org
• Medium: https://medium.com/@codeorg

Help make our work possible with a donation at http://code.org/donate!
Created by Code.org.

Want to join the conversation?

  • orange juice squid orange style avatar for user I like hockey 🏒🍌
    What if AI goes rogue?
    (4 votes)
    Default Khan Academy avatar avatar for user
    • aqualine ultimate style avatar for user CrazyBoy
      AI isn't something to be worried about! It can be used to help humans and will be fundamental for advancing technology in the future.

      If you're worried about AI taking control or fighting humans, this is something extremely unlikely to happen. In sci-fi media you'll often see artificial intelligences assert dominance over humans and fight back. The AIs we run today don't actually have moveable bodies, access to weaponry, or anything like that.

      AI right now is very safe, and as technology advances to the point of having physically AI robot, humans will create more systems to keep AIs under control. Remember, if you don't specifically program an AI to want to take over, it won't want to take over. The chance of an AI trying to attack humans is lower than the chance of a human trying to attack.
      (3 votes)
  • blobby green style avatar for user Uzziel Cuz Y Not?
    But won't ai technically be replacing writers? We already see what's happening with the writer strike.
    (4 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Mel Thompson
    I think there needs to be a section included here that covers some of the less positive implications of AI video and images in particular (It feels a little like an ad for these companies where these significant aspects are glossed over).

    E.g. mention that we are already at a point where AI generated video and images are being used to spread misinformation as news or facts.

    That peoples likenesses are being used to create AI content of them without their consent (this could imply they've taken part in activities they haven't/wouldn't).

    This technology is incredible, but it isn't just being used for aspirational or exciting things. That is a user problem, yes, but for now the AI has few limitations to prevent or mitigate unethical use.

    Edit: I see this is touched on in lesson three but still only quite lightly without actually naming these problems. Training an ethical AI is only half of the equation — how do we go about ensuring users USE them ethically?

    We need more tools to clearly flag AI generated content as being such. The average internet user does not have the skills to discern that for themselves - a problem that is only going to grow.
    (4 votes)
    Default Khan Academy avatar avatar for user
  • piceratops tree style avatar for user Gavenavičius
    If AI doing art from Artists then AI not creating art, there just pictures from artists art pixels code.
    (1 vote)
    Default Khan Academy avatar avatar for user
    • aqualine ultimate style avatar for user CrazyBoy
      Not really. AI art is generated by the AI itself. Every single pixel is "invented" by the AI and positioned where it wants it got go.

      An art-generation AI starts off learning with a normal image with just one or two pixels out of place. It is taught to "fix" those pixels based just on a prompt. For example, if you had a slightly broken picture of a dice and you told this baby AI "a picture of a dice," it would learn to fix the image into the desired result.

      As the AI learns further, it gets better at fixing more broken images. This has now advanced to a point where we can feed an AI just an image of random static, and it "fixes" it into the prompt we give it.

      So, when you ask an AI to generate an image based on a prompt, it's taking an image that nobody created (a random assortment of colours) and adjusting the pixels to fit your idea.
      (3 votes)
  • aqualine ultimate style avatar for user Jorge Gomez
    what if the AI started is own program to tack over the world.
    (2 votes)
    Default Khan Academy avatar avatar for user
    • aqualine ultimate style avatar for user CrazyBoy
      AI isn't something to be worried about! It can be used to help humans and will be fundamental for advancing technology in the future.

      If you're worried about AI taking control or fighting humans, this is something extremely unlikely to happen. In sci-fi media you'll often see artificial intelligences assert dominance over humans and fight back. The AIs we run today don't actually have moveable bodies, access to weaponry, or anything like that.

      AI right now is very safe, and as technology advances to the point of having physically AI robot, humans will create more systems to keep AIs under control. Remember, if you don't specifically program an AI to want to take over, it won't want to take over. The chance of an AI trying to attack humans is lower than the chance of a human trying to attack.
      (1 vote)
  • leaf green style avatar for user youandcorey@gmail
    I believe this is a true epiphany:
    In the very near future we are going to see time jumping capabilities in the movie industry.
    We’re going to see the best movies from the past rewritten with new endings because those actors from the past will be re-created with the help of AGI and CGI.
    New series based on old favorites will be the new norm.
    Favorite movies will have multiple endings. Viewers will have options to guide the movie through multiple layers.
    Some of this has already occurred we’re going to see it on a much bigger scale very soon. In fact I believe past popular movies will be re-created with your own face on the main characters or those of your favorite people. What do you think?
    (1 vote)
    Default Khan Academy avatar avatar for user
  • starky seedling style avatar for user Deicy Mainato Pallchizaca
    it help me lot
    (1 vote)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user genentertainmentllc
    I don't listen to Drake or any worly songs. But I knew right when I heard that voice. IT WAS DRAKE.
    (1 vote)
    Default Khan Academy avatar avatar for user
  • aqualine ultimate style avatar for user KingHarish
    whats the music video they showed at the end
    (1 vote)
    Default Khan Academy avatar avatar for user
  • blobby yellow style avatar for user ΣЖΞΜPLΛRΨ DNΛ
    But if AIs are now superhuman, that means they can beat a human at any task!
    (1 vote)
    Default Khan Academy avatar avatar for user

Video transcript

Hi, I'm Cristobal Valenzuela CEO and co-founder of Runway A company creating AI tools for video generation and storytelling. One of our most recent AI tools is an algorithm called Gen two allows you to turn text just language into video. I'm Mira Murati I'm the chief technology officer at Openai. The company that created ChatGPT. Computers were first invented to do math and solve hard problems. And despite all the advances in computer science, most people assume that computers can never have creativity and imagination. But is that still true? AI systems can not only write stories. They can create images that no one has ever seen before. A.I. is able to create award winning art like this. It can create social media influencers that don't exist in real life and even create complete video sequences with just a few words of instruction. But how does this AI work? And does it have true creativity and imagination? Let's dig in. Early projects that taught AI to create art used something called a generative adversarial neural network, which is a way of using 2 AI models to generate images. The way this works is that what one AI called a generator is trying to create images that are similar to the ones in the training set. A different adversarial AI trains to detect if those images are close to the originals or not. Both AIs train against each other until the adversarial can no longer detect what image is real and and what image was created artificially. At this point, the generative AI has learned to generate real looking imagery. Now, this is great, but computer scientists have come up with something even better called diffusion. Inspired by physics, Diffusion involves converting an image to an unrecognizable, blur or noise and training an AI to reverse this process. Take, for example, this image with all of its detail. We can introduce a little bit of randomness or noise to these pixels, which takes away some of the detail. If you repeat this gradually, 1000 times the image loses all details and becomes pure noise. Now, every step of this gradual transition is an opportunity to train AI to learn to reverse the process. An AI neural network can train by looking at the noisy image and then try to generate the slightly less noisy version because the noisy version of the image doesn't have all the details. The AI is learning to guess what the higher resolution details should be, and that's how it creates new images. Now to train an AI, we’ll repeat this with millions and millions of images, each of them labeled with their descriptions. If we do this enough times, the AI learns to take a text description and generate completely new images nobody has ever seen before or to alter existing images. The same approach can also be used for videos. Now this raises multiple questions. Is the AI really learning creativity and imagination? On the one hand, if you look at art and video created by AI it can be beautiful, original and amazing. On the other hand, the AI only learns this by doing math at the pixel level while studying creations made by people. Is that really creativity? Another question is the issue of copyright. AI learns by studying the creations of others, and the original creators may want to say in this. Of course, when humans learn to create, they also study creations made by others. So the legal questions here are not simple. We're still in the very early days of teaching AI how to create new types of media. Today, AI can generate photos and videos. Soon, it will also learn to create music and 3D worlds. This will have an incredible impact on all aspects of society, especially in entertainment, not just movies and music, but also games. We hope you learn more about how AI works and how to use it for your own creations. What will you create?