# How to create OpenAI API keys
Author: Kamban S
Author URL: https://elephas.app/blog/author/kamban-s
Published: 2022-07-08
URL: https://elephas.app/blog/how-to-create-openai-api-keys-cl5c4f21d281431po7k8fgyol0

GPT-3 is a neural network model created by OpenAI that generates text. It is trained on a large corpus of text and can generate text in response to a prompt.

### Account creation

To use OpenAI 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](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](https://beta.openai.com/account/api-keys) or click the menu item "View API keys"

![](https://prod.superblogcdn.com/site_cuid_cl495vqej08071jpawt8inf39/images/cleanshot-2023-02-14-at-11-1676356137354-compressed.png)

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

![](https://prod.superblogcdn.com/site_cuid_cl495vqej08071jpawt8inf39/images/image-1657264719754-compressed.png)

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.

### Cost

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**

GPT-4 (8k Context)        $0.03

GPT-4 (32k Context)      $0.06

GPT-3 (Davinci)               $0.02

GPT-3.5 Turbo                 $0.002 (10x cheaper than GPT-3)

Whisper (Audio).             $0.006 / minute

For example, if you use 2500 tokens per day of GPT-3 Davinci for 20 days a month, you will be charged $1 per month, i.e. 0.02 \* 2.5 \* 20.

### Setting limits

OpenAI gives $18 free credits, 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](https://beta.openai.com/account/billing/payment-methods) ​

Otherwise, you will run into **usage limit errors.**

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

​ [https://beta.openai.com/account/billing/limits](https://beta.openai.com/account/billing/limits) ​

![](https://prod.superblogcdn.com/site_cuid_cl495vqej08071jpawt8inf39/images/screenshot-2022-07-14-at-11-1657778015029-compressed.png)

· · ·

Check out [Elephas](https://elephas.app), which makes it easy to use GPT-3 / GPT-4 features on your Mac. Write emails, documents, and blogs in seconds, and rewrite sentences to different tones without leaving your application. Now, it supports loading your own documents.

· · ·


---
This blog is powered by Superblog. Visit https://superblog.ai to know more.
---

