Magento 2 AI Connector v1.x How to Get API Keys

In this article, you will find step-by-step instructions on how to obtain API keys for each supported AI provider. You will need these keys to connect your preferred AI services in the Magento 2 AI Connector extension configuration.

Anthropic (Claude) API Key

Step 1: Log in to your Anthropic account

  1. Go to https://platform.claude.com/dashboard and log in to your account.
  2. Click the Get API Key button on the dashboard.
Magento 2 AI Connector: Anthropic (Claude) API Key

Step 2. Create a new API key

  1. In the Key Name field, enter a name to identify your key.
  2. Select the Workspace this key will belong to.
  3. Click Create API Key to confirm.
Magento 2 AI Connector: Anthropic (Claude) API Key

Step 3. Copy your API key

  1. Once the key is generated, copy it and store it in a safe place.
  2. Click Continue to proceed — you will be taken back to the dashboard, where all your created keys are listed.
  3. Paste this key into the API Key field under Anthropic (Claude) in the AI Connector Configuration.
Magento 2 AI Connector: Anthropic (Claude) API Key

Check out the official documentation here.

Google (Gemini) API Key

Step 1. Log in to Google AI Studio

  1. Go to https://aistudio.google.com/ and log in with your Google account.
  2. Click the Get API Key button.
Magento 2 AI Connector: Google (Gemini) API Key

Step 2. Create a new API key

  1. Click the Create API Key button.
  2. Enter a name for your key in the name field.
  3. Select the Project this key will belong to.
  4. Click Create key to confirm.
Magento 2 AI Connector: Google (Gemini) API Key
Magento 2 AI Connector: Google (Gemini) API Key

Step 3. Copy your API key

  1. The key will appear on your dashboard. Click on the key entry to reveal the full key value and copy it.
  2. Paste this key into the API Key field under Google (Gemini) in the AI Connector Configuration.
Magento 2 AI Connector: Google (Gemini) API Key

Check out the official documentation here.

OpenAI (GPT) API Key

Step 1. Log in to your OpenAI account

  1. Go to https://platform.openai.com/home and log in to your account.
  2. In the left sidebar, navigate to API Keys.
  3. Click the Create new secret key button.
Magento 2 AI Connector: OpenAI (GPT) API Key

Step 2. Create a new API key

  1. In the Name field, enter a name for your key to identify it later.
  2. Select the Project this key will belong to.
  3. Click Create secret key to confirm.
Magento 2 AI Connector: OpenAI (GPT) API Key

Step 3. Copy your API key

Step 3. Copy your API key:

  1. Once the key is generated, copy it immediately and store it in a safe place — OpenAI will not show it again after you close the dialog.
  2. Paste this key into the API Key field under OpenAI (GPT) in the AI Connector Configuration.
Magento 2 AI Connector: OpenAI (GPT) API Key

Check out the official documentation here.

Was this article helpful?