Gemini Setup
Prerequisites
Tip: You will need to set up billing on your Google Cloud account before proceeding. The Gemini API requires an active billing account to generate API keys and make requests.
Google AI Studio Configuration
-
Navigate to aistudio.google.com
-
Sign in with your Google account
-
Create a new project or select an existing project
-
Click on "Get API key" in the left sidebar
-
Click "Create API key"
- You can create a key in an existing Google Cloud project
- Or create a new project for the API key
-
Copy the API Key that is generated
- Store this securely as you'll need it for your Vodia Voice Agents script
- The key format will be similar to:
AIzaSy...
Billing Setup
Before you can use the Gemini API, you must enable billing:
-
Go to console.cloud.google.com
-
Select your project
-
Navigate to Billing in the left menu
-
Link a billing account or create a new one
API Key Usage in Vodia
Once you have your API key:
-
Open your Vodia Voice Agents JavaScript file
-
Replace the placeholder with your actual API key:
var apiKey = "YOUR_GEMINI_API_KEY" // Replace with your actual key -
Save and deploy your Voice Agents script
Model Availability
The example scripts use gemini-2.0-flash-exp. Verify this model is available in your region and account:
- Check ai.google.dev/models for the latest model versions
- Review pricing at ai.google.dev/pricing
- Monitor your usage in the Google Cloud Console
Rate Limits and Quotas
Be aware of the following limits:
- Free tier: Limited requests per minute (check current limits in your console)
- Paid tier: Higher limits based on your billing account
- Audio processing: Gemini's real-time audio API has specific quotas
Monitor your usage in the Google Cloud Console under APIs & Services > Dashboard.
Your Gemini integration is now configured and ready to use by your Voice Agents JS script.