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
- Go to https://platform.claude.com/dashboard and log in to your account.
- Click the Get API Key button on the dashboard.

Step 2. Create a new API key
- In the Key Name field, enter a name to identify your key.
- Select the Workspace this key will belong to.
- Click Create API Key to confirm.

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

Check out the official documentation here.
Google (Gemini) API Key
Step 1. Log in to Google AI Studio
- Go to https://aistudio.google.com/ and log in with your Google account.
- Click the Get API Key button.

Step 2. Create a new API key
- Click the Create API Key button.
- Enter a name for your key in the name field.
- Select the Project this key will belong to.
- Click Create key to confirm.


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

Check out the official documentation here.
OpenAI (GPT) API Key
Step 1. Log in to your OpenAI account
- Go to https://platform.openai.com/home and log in to your account.
- In the left sidebar, navigate to API Keys.
- Click the Create new secret key button.

Step 2. Create a new API key
- In the Name field, enter a name for your key to identify it later.
- Select the Project this key will belong to.
- Click Create secret key to confirm.

Step 3. Copy your API key
Step 3. Copy your API key:
- 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.
- Paste this key into the API Key field under OpenAI (GPT) in the AI Connector Configuration.

Check out the official documentation here.
Was this article helpful?