Learn how to Fetch your OpenAI API Key
OpenAI API keys are the gateway to unlocking powerful AI capabilities for your organization in your personal/team instance. By setting up and integrating these keys, you can leverage OpenAI’s advanced language and image models to enhance workflows, improve productivity, and meet the specific needs of your projects. This guide will walk you through the step-by-step process of creating an OpenAI account, generating API keys, and preparing your organization to seamlessly integrate OpenAI’s cutting-edge technology into your Innoslate environment. Whether you’re looking to enable Chat AI, Image AI, or both, this tutorial ensures you have everything you need to get started.
Fetch an API Key from OpenAI
To begin, navigate to the OpenAI platform and log in with your credentials. If you’re new to OpenAI, click Sign Up to create a new account.
Figure 1: OpenAI Authentication
Access the API Key Setup
Once logged in, you’ll see a banner prompting you to Get your API keys. Click the Start building button to begin the API key setup process.
Figure 2: "Get your API keys" banner
Invite Team Members (Optional)
You can choose to invite your team members to your OpenAI organization. Enter their email addresses to allow them access to your API settings. If you prefer to skip this step, click I’ll invite my team later.
Figure 3: Invite Team Members
Configure Your API Key Name & Project Name
Define a name for your API key and assign a project name. These identifiers help you track usage and manage access across your projects. Once you’ve filled in the fields, click Generate API Key to proceed.
Figure 4: API Key name & Project name
Copy Test API Key
Your Test API key will be generated and displayed on the screen. This key is provided as a test to ensure connectivity from your account to external sources.
Figure 5: Test API Key
Final Organization Setup
You’ll be prompted to create an organization name and select your level of technical expertise. Fill in these details to complete your initial setup. Once done, your OpenAI organization is ready to generate your API Key.
Figure 6: Organization Name & Technical Expertise
Navigate to the API Keys Tab
To proceed with creating a new secret key, navigate to the API Keys tab under the “Project” section in the OpenAI settings.
Figure 7: API Keys Tab under Project section
Create a New Secret Key
In the API Keys tab, click the green "+ Create new secret key" button located on the top-right corner of the screen.
Figure 8: "Create new secret key" button
Configure the Secret Key
Once the Create new secret key button is clicked, a pop-up modal will appear. You can configure:
- Owned by: Select who will own the API key (your user or a service account).
- Name: Provide an optional name for your secret key for easy identification.
- Project: Assign the key to a specific project from the dropdown list.
- Permissions: Define the permission levels for the key by selecting All, Restricted, or Read Only.
Figure 9: Create new secret key modal
Define Permissions
If you choose Restricted permissions, another section will expand, allowing you to set granular permissions for various resources such as models, model capabilities (e.g., chat, images), assistants, and files.
Figure 10: Permissions options and adjustments
Adjust to None, Read, or Write access as required for each resource. Ensure you configure these settings according to your organization’s policies and intended usage.
Generate the Secret Key
Once the configuration is finalized, click the Create secret key button. The system will generate the new secret key and display it on the screen. Copy the key to your clipboard using the Copy button.
Note: Make sure to document it securely, as you will not be able to view it again once the window is closed to ensure security.
Figure 11: Save your Key prompt
With this step complete, you’ve successfully created and configured your OpenAI API key!
To continue learning about Organization Preferences, Click Here.
(Next Article: AskSage API Key)