How to Get a ChatGPT (OpenAI) API Key – Full Guide
Not Affiliated with OpenAI, Edited: 21/5/2025Learn how to create an OpenAI account, generate your API key, add billing funds, set usage limits, and manage your API keys. A straightforward guide for beginners and developers.
Step 1: Create or Log In to an OpenAI Account
- Go to https://platform.openai.com/signup
- Sign up using your email, Google, or Microsoft account.
- Verify your email and phone number.
Step 2: Log Into the OpenAI Platform
Visit https://platform.openai.com and log in with your account credentials.
Step 3: Obtain Your API Key
- Navigate to the API Keys page.
- Click + Create new secret key.
- Optionally set a name and select a project, then click Create secret key.
- Copy and securely store the key immediately as it will not be shown again.
Step 4: Add Funds (Billing)
- To use the OpenAI API beyond the free trial, you need to add billing information.
- Go to Billing Overview to add credits to your account.
- To avoid repeated credit additions, go to the Billing Payment Methods page and add your payment method.
- Ensure your billing details are up to date to avoid interruptions.
Congratulations! You now have your API key. Below are some optional but useful tips to help you get the most out of the API.
Step 5: Set Usage Limits
- To control your spending, OpenAI allows you to set usage limits or hard caps on your account.
- Visit the Usage page in your dashboard.
- Monitor usage and set monthly limits to avoid unexpected charges.
- Once the limit is reached, API access will be restricted until the next billing cycle or you adjust the limit.
Step 6: Monitor Pricing and Usage
- Review detailed pricing information at openai.com/pricing.
- Regularly check your usage on the Usage page to stay within budget.
Step 7: Manage Your API Keys
- You can create multiple API keys and revoke or regenerate them as needed.
- Visit the API Keys page to manage your keys securely.
Use a custom domain email and get 10% off on the innovative AI-powered collaboration
platform.