How to get a OpenAI API key
Checked by hand 2026-10-30
- Click Create new secret key.
- Type a name for the key and pick the project it is for.
- Open Expiration and pick how long the key should last. Create secret key stays greyed out until you do.
- Leave Permissions on All, or limit them, then click Create secret key. The key is shown only once, in the next box.
What you end up with
- OPENAI_API_KEY