Build and Deploy your own chatGPT app in 10 minutes with chatGPT API. 🚀

Praneeth Kandula
3 min readMar 17, 2023
Robot Typing (Generated using StableDiffusion)

In this article we will Create our own chatGPT Application using the chatGPT API and Streamlit library in Python. Below you can see the app in action.

Preview of the Final App you will build.

1. Create an Open AI Account and obtain an API Key.

Create an openai account by signing up here and then go to the API Keys page to get your API Key. Click on Create New Secret Key. This will generate a new secret key. You won’t be able to see the key in it’s entirety in your Open AI account — so make sure you copy this and store it in a secure place. This is what we will use to authenticate with the API from our local system.

If you are creating a new account you might get Free Credits to try the API, See Usage to check your usage and Free Credits. If you don’t have any free credits left in your account — You do need to upgrade to a paid account here. Also remember to set Usage limits here so you don’t have any billing surprises at the end of the month. See pricing for more details on how much you will be paying and…

--

--