How to get Open AI API Keys? 0 0

Last updated on Oct 24, 2023 11:06 PM in Setup API Keys
Posted ByRovbots

1. Create an OpenAI account‍

If you don't already have an OpenAI account, navigate to the OpenAI website.

Here, you will see a "Sign Up" button at the top right corner of the website. Click on it and fill in your details to create an account.

OpenAI Home Page

2. Verify your account‍

After signing up, you'll receive an email from OpenAI to confirm your account. Open this email and click on the verification link. This step helps to ensure the security of your account.

3. Log into your account‍

Now that your account is verified, return to the OpenAI website and click on the "Log In" button. Enter the username and password you used to sign up.

OpenAI Login Screen

4. Navigate to the API section

After logging in, in the top right corner of your screen you'll see an icon with your account name. Click it to open the dropdown menu then click "View API keys".

OpenAI Dashboard Main Screen

5. Generate a new API key

Now you're in the API keys section, you should see a button "Create new secret key". Click on that button to generate a new API key.

A box will pop up, asking you to name your secret API key. It's good idea to have different keys for different apps and sites so make sure you name it something that will you will remember what it's for when you look at it one day in the future.

After you enter a name for your key, click the "Create secret key" button.

6. Save your API key

Next, you will see your secret key that has been generated. Make sure to copy your secret key and paste it into whatever application you need it for.

It's very important that you copy this key and save it somewhere secure, as you won't be able to retrieve it again for security reasons. You'll need this key to authenticate your applications with OpenAI's services.

7. Set up billing

OpenAI charges for use of its API on a usage basis, so, if you haven't already set up a payment method for billing, you'll need to do so. Otherwise, the API Key you just created won't work.

To set up billing, click Billing on the left menu then click Payment methods.

Next, you'll see the payment methods screen. Click Add payment method.

A box will pop up where you can enter your credit card and billing details. Click Submit once you've entered your information.

8. Set usage limits

Now you've set up billing, it makes sense to set usage limits so you can control how much you spend each month on the API.

Simply click Usage limits on the left menu, then enter figures for hard and soft usage limits. Then click Save.

9. Ensure you follow OpenAI's usage guidelines‍

As a final note, be sure to familiarize yourself with OpenAI's use case policy and terms of use. These rules help to ensure that the technology is used responsibly.

And there you go! You're all set to start using OpenAI's powerful machine learning services. Remember to keep your API key secure.

** The time is base on PRC timezone