Generate a Standard API Key
Standard API keys provide access to most OpenAI API features including models, completions, embeddings, and more.
Access API Keys Page
1. Log in to your OpenAI account at https://platform.openai.com
2. Click “API keys” in the left sidebar
3. Or directly visit https://platform.openai.com/api-keys
Create a New API Key
Click the “Create new secret key” button to generate a new API key. The dialog shows fields in this order: Name, Project, Permissions.
- Enter a descriptive name (e.g., “StackOne Integration”)
- Select a Project (required — the Create button stays disabled until a project is selected)
- Select permissions: Choose ‘All’ for full access or customize based on your needs
- Click “Create secret key”
Generate an Admin API Key (Optional)
Admin API keys are required for organization and project management actions. Only organization owners and admins can create these keys. They are created from a separate Admin keys page (not the standard API keys page).
Verify Admin Permissions
Ensure you have admin or owner role in your organization. You can check this in Organization settings → People (accessible via the bottom-left user menu — the section was previously called “Team”).
Access Admin Keys Page
1. Click your profile icon in the bottom-left menu and choose “Organization settings” (or “Profile settings”)
2. Click “Admin keys” in the left sidebar
Create Admin API Key
Click the ”+ Create new Admin key” button. The dialog has fields: Name, Expiration, and Permissions (no Project dropdown).
- The key must be created by an organization admin or owner
- Enter an optional Name (e.g., “StackOne Admin Integration”)
- Choose an Expiration (dropdown, default ‘Never’)
- Select Permissions: ‘All’, ‘Restricted’, or ‘Read only’ — include organization management permissions
- Click “Create admin key”
- This key will have elevated privileges - handle with extra care
API Key Best Practices
Follow these security best practices to protect your API keys.
Security Recommendations
Implement these security measures to protect your API keys.
- Scope each key to a specific Project to limit blast radius if a key is compromised
- Create separate keys for different applications or environments
- Set expiration dates on keys and rotate them regularly
- Monitor API key usage in the Usage dashboard
- Immediately revoke compromised keys
Rate Limits and Usage
Be aware of rate limits and monitor your usage to avoid service interruptions.
- Check current rate limits at https://platform.openai.com/settings/organization/limits
- Monitor usage at https://platform.openai.com/usage
- Consider implementing retry logic with exponential backoff
- Use the most appropriate model for your use case to optimize costs
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- API Key
- Admin API Key
If the account linking is successful, you will see the newly linked account in your Accounts page.