> For the complete documentation index, see [llms.txt](https://docs.magecomp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.magecomp.com/magento-2-chatgpt-ai-extension/generate-api-key.md).

# Generate API Key

**Step 1:** Login or Signup to OpenAI Account using the below URL.

<https://platform.openai.com/>&#x20;

**Step 2:** Click on your profile logo from the upper-right corner and select View API keys.

<figure><img src="/files/xgkEXsCO1qvxHaFQBxKO" alt=""><figcaption></figcaption></figure>

**Step 3:** Now click on Create new secret key button.

<figure><img src="/files/40wW5fvUUhaHbm29oghY" alt=""><figcaption></figcaption></figure>

**Step 4:** The API secret key is generated successfully. You can copy and add to the extension configuration.

<figure><img src="/files/9D7KCJoA3KqDZVuBdJi4" alt=""><figcaption></figcaption></figure>
