Are you excited about ChatGPT?

A little recap: ChatGPT is an AI-powered chatbot that helps users with tasks and answers their queries in a conversational way. It uses Natural Language Processing (NLP) to understand and respond to user questions.

OpenAI has recently launched ChatGPT API for developers. This API enables developers to effortlessly integrate GPT's capabilities into their applications, systems, or platforms. They can generate various features like text generation, language understanding, and more using this API.

Developers require an API key to utilize ChatGPT API. They can generate this key by logging in to OpenAI's website and selecting "View API Keys". Here is the step-by-step guide,

Account creation

To use ChatGPT through API, you must create a free account and generate keys. Fortunately, it is pretty straightforward.

1. Sign up here You can use your Google or Microsoft account to sign up if you don't want to create using an email/password combination. You may need a valid mobile number to verify your account.

2. Now, visit your OpenAI key page or click the menu item "View API keys"

3. Create a new key by clicking the "Create new secret key" button. See the image for reference.

That's all. You can use this key in your applications. 

Remember, the key created has access to both GPT-4 and ChatGPT models. You don't need separate API keys.


Please note that you will be charged based on your monthly usage. The cost structure is as follows: 750 words (aka 1000 tokens). Below is a table representing the cost per 1000 tokens:

Model                                                          Cost (Input)

GPT-3.5 Turbo (4k  context)                 $0.0015 (13x cheaper than GPT-3 Davinci)

GPT-3.5 Turbo (16k context )               $0.003

GPT-3.5 Turbo is the current ChatGPT default model.

For example, if you use 10,000 tokens per day of GPT-3 Turbo for 20 days a month, you will be charged 400 cents per month, i.e. 0.002 * 10 * 20.

Setting limits

OpenAI gives $18 free credits (for a limited set of users), which you can consume within the first 3 months. This is a great way to test the service.

If you plan to use it regularly, you need to add your credit card information here

You can also set up a usage limit if you have a paid set up, say, $10/month at

· · ·

Check out Elephas, which makes it easy to use ChatGPT features on your Mac. Chat with your documents, such as PDF, Word, Notion, and Obsidian, right on your Mac.

You can use it as an AI writing tool, as a smart keyboard on your iPhone, and even as your AI powered second brain.

It's one of the best AI productivity apps for the Mac.

Common errors

As with other OpenAI endpoints, the ChatGPT API can fail due to various reasons,

Quota error

You exceeded your current quota, please check your plan and billing details

You may have reached your monthly spending limit (hard limit), which can be checked in the account billing section. Alternatively, you may not have established a paid account with OpenAI. Free credits are available from OpenAI, but not to all users. Therefore, you need to review your billing page to determine your account status.

Server Overload

 The engine is currently overloaded, please try again later

ChatGPT servers might be overloaded; please try your request again after waiting for a short while.

Rate limit

Rate limit reached for requests

You are making requests at a rapid pace. Please slow down and refer to the Rate limit guide.

You exceeded your current quota, please check your plan and billing