BYOK - OpenAI
OpenAI
Create a key in the OpenAI platform. We recommend a dedicated project for IMPOWR so its usage, limits, and keys are isolated from your other work.
Create a key
- Sign in to the OpenAI platform and make sure your account has API billing set up.
- Create a project for IMPOWR. This requires the organization owner role. Give it a name, description, and website, then select Create.
- Go to organization settings, select the project, and open API Keys.
- Select + Create new secret key and name it (for example, “IMPOWR”).
- Set permissions to Restricted and grant the permissions listed below. All also works but gives the key more access than IMPOWR needs.
- Copy the key right away. You can’t view it again after closing the dialog. If you lose it, create a new one.
- Paste it into IMPOWR under the provider settings.
If you don’t see the option to create a key, ask an organization or project owner to create one for you.
Using a service account (recommended)
A service account key isn’t tied to an individual, so it keeps working if an employee leaves. A service account belongs to one project and can’t be used outside it.
- Go to organization settings, select the IMPOWR project, and open Members.
- Select + Service account.
- Enter a unique service account ID using letters, numbers, and hyphens, then select Create.
- Copy the secret key shown immediately. It can’t be viewed again.
- The key can read and write all of the project’s API resources by default, and the creation dialog doesn’t offer permission controls. Open the project’s API Keys settings, edit the key, and restrict it to the permissions below.
- Paste it into IMPOWR under the provider settings.
Creating a service account requires an organization or project owner.
Recommended setup
- Use a dedicated project so IMPOWR’s usage and spend are easy to report on.
- Restrict the key to the permissions IMPOWR needs.
- Set a monthly spend limit on the project. A limit can be set to monitor spending without stopping requests, so also watch usage in the OpenAI dashboard.
- Check model access and rate limits in the project settings so the models you want to use are available.
- Rotate keys periodically and delete any you no longer use.
Permissions IMPOWR needs
A restricted key needs exactly these permissions:
| Capability | Endpoint | Required permissions |
|---|---|---|
| Responses | /v1/responses |
api.responses.write, api.responses.read |
| Chat completions | /v1/chat/completions |
api.model.chat_completions.request |
| List models | /v1/models |
api.model.read, model.read |