Introducing Miniloop Agents: AI agents that connect to your appsRead more

How to Find Your OpenAI API Key

Last updated April 1, 2026

Where to find your OpenAI API key

Your OpenAI API key is located in the OpenAI platform dashboard. Follow these steps to find it:

Step 1: Log in to OpenAI

Go to platform.openai.com and sign in with your OpenAI account.

Step 2: Navigate to API Keys

Click on your profile icon in the top-right corner, then select API keys from the dropdown menu. Or go directly to platform.openai.com/api-keys.

Step 3: Create or copy your key

If you already have a key, click the copy icon next to it. If you need a new key, click Create new secret key, give it a name, and copy the key immediately. You will not be able to see the full key again.

Important notes

  • Keep your API key secret. Do not share it publicly or commit it to version control.
  • If you suspect your key has been compromised, revoke it immediately and create a new one.
  • OpenAI charges based on API usage, so monitor your usage in the dashboard.

Frequently Asked Questions

Is there a free tier for the OpenAI API?

OpenAI offers free credits for new accounts, but the API is generally pay-as-you-go. Check your usage and billing at platform.openai.com to monitor costs.

Can I use the same API key for multiple apps?

Yes, but it's better to create separate keys for each application. This makes it easier to track usage and revoke access for specific apps without affecting others.

What if I lost my API key?

You cannot retrieve an existing key after creation. Simply create a new secret key from the API keys page and update it in Miniloop.

How do I set usage limits?

Go to platform.openai.com, navigate to Settings > Limits, and set monthly spending limits to control costs.