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.

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.

STEP 3
After creating the project visit Project Dashboard page.

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.

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.

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


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.


Click Create and save the generated file on your computer.
step 8
Go to IAM & Admin>IAM and press Grant Access

Fill in the fields as shown below and press Save.

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.

STEP 3
Select Location in the plugin settings and click Save Changes.

