π 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β
- Visit https://aistudio.google.com/
- Sign in with your Google Account.
- Accept the terms and conditions if prompted.
Step 2: Create a Project (If Not Existing)β
Before generating an API key, you need a project:
- Go to https://aistudio.google.com/app/apikey
- Click βCreate API Keyβ
- 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)
- Click Continue after selecting or creating the project.
Step 3: Generate the API Keyβ
- Once the project is selected, AI Studio will generate an API key tied to that project.
- Copy the key immediately β it will only be shown once.
- Your key is now ready to use with Gemini model APIs.
Step 4: Add the API Key to Your AI in DxConnectβ
- Go to the Partners tab in your DxConnect dashboard.
- Click on Users, then select the user you want to manage by clicking on the Number of AI column.
- Click Edit button to edit an AI, and click Add new button then select Gemini as the provider.
- Paste your Gemini API key into the designated field.
- 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.