From the course: Generative AI Imaging Tools for Developers

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

DALL-E API setup

DALL-E API setup

- [Instructor] The DALL-E API is great for image generation because it combines a very powerful model with the OpenAI ecosystem. In this one, we're going to set up the API for environment by first installing the OpenAI API library. Then we'll go ahead and configure our environment. And finally we'll test out image generation. So here I am in my terminal and the first thing I'm going to go ahead and do is install OpenAI. So if you have a virtual environment or a container, this is a good time to activate it, or go into the container. In this one, I'm just going to do Python3 -m pip install OpenAI, which is one word. I always like to double check package names. Great, now I'll clear my terminal. Next, head over to a browser and navigate to platform.openai.com. Now if you don't have a developer account, you'll want to create one at this point. Now it's important to keep in mind that while you may be able to get some free credits for development, this API is not a free API, especially if…

Contents