đCreate Google Cloud Vertex AI API Key
Last updated
Last updated
Go to https://console.cloud.google.com/projectcreate, enter project name and click Create.
Go to https://console.cloud.google.com/iam-admin/serviceaccounts, select the project just created in Step 1: Create new project.
Click Create Service Account.
Enter name, description for service account and click Create and Continue.
Click Select a role and search for Vertex AI Service Agent, then select it.
Click Continue.
Click Done.
Click on the service account just created, then select Keys tab.
Click Add Key and select Create new key.
Select JSON and click Create.
A JSON file will be downloaded into your machine. Keep that file secret. Open that file and copy whole file content.
Key file content looks like below:
Go to https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com, select the project just created and click Enable to activate Vertex AI API.
Go to https://console.cloud.google.com/vertex-ai, select project just created and take note region name.
Go to https://console.cloud.google.com/welcome, select project just created and copy the project ID.
Vertex AI API URL has format:
LOCATION is the region name above, for example us-central1
PROJECT_ID is the ID of the project above
In this case it should be:
Go to MindMac -> Settings... -> Account or press â + , to open Account Setting.
Select Vertex AI provider, enter name and your custom URL from Step 5: Grab information to construct API URL, paste Service Account key content from Step 2: Create new service account and click Save to finish.