Skip to main content
How To Get Your API Key For OpenAI
Promptitude Team avatar
Written by Promptitude Team
Updated over a week ago

Promptitude connects directly with your AI providers to generate texts based on your prompts. Getting started with OpenAI services on Promptitude, whether or not you have a ChatGPT plan, requires an API key. This key is a unique identifier that enables you to access and interact with the OpenAI platform.

In this article, you’ll learn how to get the API key for your OpenAI account.

Once you got the API key, you can create an AI Connection within Promptitude and start generating prompts.

1️⃣ Log in to OpenAI

Go to https://platform.openai.com and log in with your email address and password.

Don’t have an OpenAI account yet? Click here to create one

Once you’re logged in, you should see the default Docs space:

2️⃣ Create Your First API Key

OpenAI offers two types of API keys: User API Key and Project API Key.

Here’s how to understand and create them:

🔹 User API Key

This key is unique to your account and allows you to access OpenAI services. It is used for making API calls that are directly tied to your user account.

Keep this key secret. If compromised, you can revoke it and generate a new one.

To create an API key:

  • Go to the Settings icon in the upper right corner.

  • Click on Your Profile.

  • Locate the User API Keys tab.

Don’t worry if you don’t see any API keys - this just means you’ve never created one.

Click the Create new secret key button.

🔹 Project API Key

This key is used for a specific project and can be shared among multiple users or applications within that project. Ideal for collaborative environments where several users need to interact with the OpenAI API.

Must be protected and managed, especially in collaborative settings.

To create an API key:

  • Go to the Dashboard button in the upper right corner.

  • Click on API Keys.

Don’t worry if you don’t see any API keys - this just means you’ve never created one.

Click the Create new secret key button.

3️⃣ Configure API key

After clicking on Create new secret API Key: This action will lead you to a configuration popup where you can choose from two distinct paths, depending on your needs and role within the organization.

Project API Key

  1. (You) Owner API Key: This API Key is linked directly to your OpenAI user account. If your account is part of an organization, the key aligns with that scope. If the OpenAI user is deleted, the API Key will also be removed.

    • Configuration:

      • Add a name for easy identification.

      • Define the project associated with this API Key.

      • Set the necessary permissions.

  2. Service Account: Acts as pseudo-users, facilitating systems and applications in accessing the OpenAI API without linking to an individual's user account. Ideal for production environments where programmatic access is continuous and essential.

    • Configuration:

      • Create an identifier for the service.

      • Select the associated project.

        • Initially, all permissions are granted, but you can modify these settings along with the API Key's name through the Edit API Key option.


🔹 Recommendation from Promptitude:

Service Accounts vs. Owner API Keys: It is recommended to use service accounts rather than personal API keys. They ensure uninterrupted access, even if individual users depart from the organization. Service accounts provide robust access controls which can be customized to match project-specific requirements.

User API Key

Includes basic steps where you only need to add a name and configure the necessary permissions for the API Key.


Important Notes

📌 Before closing the popup, copy the API Key.

OpenAI will NEVER show you the API key again, so make sure to save it to your computer. This is also the API key you need to enter in Promptitude when adding your AI Connection.

Now, OpenAI only shows you a tiny fragment of the original API key, but not the entire API key - that’s why you’ve saved it on your computer before. 😉

  • Always keep your API keys confidential to prevent unauthorized access.

  • If you suspect that your API key has been compromised, revoke it immediately and create a new one.

🆘 Help! I can’t find my old API key.

No worries. If you don’t have access to your existing API keys (we mean the entire long API key, not the abbreviated version that OpenAI shows on their page), you can simply create another API key - no strings attached.


By carefully selecting and configuring the appropriate API Key type for your project or user needs, you can secure and streamline your integration with Promptitude’s platform. This ensures both operational continuity and security in accessing the necessary resources.

Now that you got your brand-new API key, head back to Promptitude’s AI Connections and add OpenAI:

  • Click the New Connection button at the top right.

  • Name your AI Connection, for example, “OpenAI”.

  • Simply paste your API key into the corresponding field.

  • Click Save.

Now that you’ve added your connection to OpenAI to promptitude, the next step is to add your first prompts and use them via the API.

Did this answer your question?