From the course: Hands-On AI: Building LLM-Powered Apps

Obtaining an OpenAI token - Python Tutorial

From the course: Hands-On AI: Building LLM-Powered Apps

Obtaining an OpenAI token

- [Instructor] In order for us to access OpenAI's large language models, we need to obtain an API key. So to acquire an API key, that's navigate to platform.openai.com. Sign up for an OpenAI account, login and hover over the icon to the left. There is a lock icon that says API Keys. And when you press on this, it will show up and we can click on create a new secret key, provided a name, and click on create secret key. And this key will show up, copy, paste, and store this in a very secure place. A leaked API key is a security hazard and it might cause you to lose substantial amount of money. So make sure this is stored safely. I will delete this, and that's it. Now we have an API key, we can add large language models to our chat app so we can have our own basic version of ChatGPT.

Contents