An AI storm has swept across the world.

The release of OpenAI’s ChatGPT has sent developers and curious users into a frenzy.

What Is GPT-3?

A close up of a computer screen with OpenAI’s ChatGPT website

OpenAI’s GPT-3is the third-generation Generative Pre-trained Transformer.

It is a Machine Learning model with over 175 billion parameters, almost the entire internet.

Open AI has developed a Python module that contains pre-defined compatible classes to interact with its APIs.

View API Key of OpenAI website

Generating the API Key

To use GPT-3 with Python you oughta generate an API key.

Start building the program by importing the OpenAI module.

Define a function,askGPT(),that takestextas an input argument.

Create Secret API Screen of OpenAI website

The text will contain the query you are going to ask GPT-3.

Copy the API key you generated earlier and initialize it.

Ask the user to enter a question and pass it to theaskGpt()function.

Output of using GPT3 with Python

Put it all together and use Artificial Intelligence to answer your questions.

You use it as a chatbot that will give you fresh realistic answers on every prompt.

On the flip side, the API is cloud-hosted, paid, and needs more fine-tuning.