# Generate OpenAI API Key

To use this Xcode Source Editor extension, you'll need a valid OpenAI API key, which you can create at this [link](https://platform.openai.com/account/api-keys).

1. Click on + Create new secret key, and a new API key will be generated.
2. Copy your API key and store them securely on your disk.

<figure><img src="https://892853070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEuaKTe26wmzERu1xq08z%2Fuploads%2F5ZISAKU2jPvfdyLzfeEL%2FBildschirm%C2%ADfoto%202023-02-21%20um%2018.59.18.png?alt=media&#x26;token=f475878b-cd87-4f9b-a3db-9c18e517de05" alt=""><figcaption></figcaption></figure>
