ChatGPT_Python_API_Using Python 3.8.6 openai 0.27.8 Using chatGPT with python You must register and get a key at https://chat.openai.com/auth/login. Paste the key you received into the api.key file.