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,
To use ChatGPT through API, you must create a free account and generate keys. Fortunately, it is pretty straightforward.
1. Sign up here https://beta.openai.com/signup. 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 https://beta.openai.com/account/api-keys 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:
GPT-3.5 Turbo $0.002 (10x cheaper than GPT-3 Davinci)
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.
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 https://beta.openai.com/account/billing/payment-methods
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.
As with other OpenAI endpoints, the ChatGPT API can fail due to various reasons,
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.
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 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