How to get Google Gemini API Key File

In this quickstart, you get the Google Gemini API Key File to start work with AI bot.

Creating the Google Gemini Key File

If you are a beginner and have never worked Google Cloud before, you will read and accept the Google Cloud Platform Terms of Service and any applicable services and APIs

STEP 1

Everything is ready to begin the process of getting the key file. Visit the Google Cloud Platform project to select or create a new project

STEP 2

Click + Create Project button to create a new Google Cloud Project. Go to Step 4, if you have already created a project.

Create a New Project
Create a New Project

Set a unique name for your project, or use default project name. And click the Create button. Please note that the name of the project cannot be changed later.

Create a new project
Create a new project
STEP 3

After creating the project visit Project Dashboard page.

Select your project
Select your project
STEP 4

Visit the Billing tab to make sure that billing is enabled for your Google Cloud Platform project. Check out Google Cloud resource prices and quotes. You can use a free quote when using Voicer or pay if you use a plugin on a high-load WordPress website.

Project billing settings
Project billing settings

Link a billing account to your project. Learn how to enable billing in Google Cloud Project.

IMPORTANT

Set the Budget Alerts to control the use of quotas and debits.

STEP 5

Enable Vertex AI API for your project.

Enable Vertex AI API
STEP 6

To use the API you’ll need the right credentials. Go to APIs & Services>Credentials> Create credentials> Service account.

Create Service account
Add credentials to your project

Don’t select the account and users access. No role is required to access this service.

STEP 7

Go to just created service account via IAM & Admin>Service accounts>tab KEYS and press ADD KEY>Create new key.

Create new key
Select JSON key type

Click Create and save the generated file on your computer.

step 8

Go to IAM & Admin>IAM and press Grant Access

Create access for your service account

Fill in the fields as shown below and press Save.

Select the Vertex AI User role for your service account

Where:

  • Add principals – paste your service account email. You can copy the email in IAM & Admin>Service accounts
  • Assign roles – select Vertex AI User role from the list.

Connecting the key file to the Mates Plugin

STEP 1

Visit your WordPress website Admin Panel and open the plugin settings. Go to Mates –>AI> Gemini API key.

STEP 2

Upload your JSON Key File to the WordPress media library which you saved in Step 7.

Select the generated API key
STEP 3

Select Location in the plugin settings and click Save Changes.

Was this article helpful to you?