OpenAI
Official website https://openai.com
OpenAI is an artificial intelligence research organization that aims to develop and promote friendly AI that benefits humanity. It has produced several AI models, including GPT-4, arguably the world's most advanced natural language processing model.
Connect your OpenAI Account
- Log in with your OpenAI account (or create a new account)
 - Go to the API Keys page on OpenAI.
 - Click the button labeled 
Create a new secret key - A new dialog window containing a text box with your API key will appear.
 - Go to VSCode and 
Select Your AI - Select 
OpenAIasProviderand a model - Paste the API Key here, and click on 
Connectand Organization ID 
To remove your API Key from CodeGPT, click on the provider box and Disconnect.
OpenAI API
You must have credits loaded into your OpenAI account to use this extension. This extension uses the Official OpenAI API, a paid API.
If you do not have credits, the extension will show the following OpenAI API error: You exceeded your current quota; please check your plan and billing details
To review your account and the credits you have available, you must log in with your account at https://openai.com/api/
In the menu, select Manage Account. Then, in the Usage section, you will see the amount of credits available and used.

In this image, $13 USD has been used out of $18.

API Errors
If you are getting API errors, check the following link: OpenAI API Errors
Typical OpenAI errors
- Error Code 404: The model: gpt-4 does not exist
 - Error Code 429 - Rate limit reached for requests
 - Error Code 429 - You exceeded your current quota, please check your plan and billing details.
 - Error Code 429 - The engine is currently overloaded. Please try again later.
 - Error Code 401 - Invalid Authentication