Skip to main content

πŸ” Guide to Creating Gemini API Keys

This guide will walk you through the steps required to create a Gemini API key using your Google account via Google AI Studio. You can then use this key to connect with an AI in your DxConnect account.


Step 1: Sign in to Google AI Studio​

  1. Visit https://aistudio.google.com/
  2. Sign in with your Google Account.
  3. Accept the terms and conditions if prompted.

Step 2: Create a Project (If Not Existing)​

Before generating an API key, you need a project:

  1. Go to https://aistudio.google.com/app/apikey
  2. Click β€œCreate API Key”
  3. In the dialog that appears, you'll be prompted to:
    • Select an existing project, or
    • Click "Create new project" and enter a name (e.g., dxconnect-gemini)
  4. Click Continue after selecting or creating the project.

Step 3: Generate the API Key​

  1. Once the project is selected, AI Studio will generate an API key tied to that project.
  2. Copy the key immediately – it will only be shown once.
  3. Your key is now ready to use with Gemini model APIs.

Step 4: Add the API Key to Your AI in DxConnect​

  1. Go to the Partners tab in your DxConnect dashboard.
  2. Click on Users, then select the user you want to manage by clicking on the Number of AI column.
  3. Click Edit button to edit an AI, and click Add new button then select Gemini as the provider.
  4. Paste your Gemini API key into the designated field.
  5. Click Save to finish adding your Gemini api key.

You can see full instructions here.


πŸ”’ Important: Keep your Gemini API key secure. Do not include it in frontend code or public GitHub repositories.