â“‚ī¸
MindMac Docs
Go to appBlogRoadmapRelease NotesFeature Request
  • 🌏Product Tour
    • â„šī¸What is MindMac?
    • ✨Getting started
    • 🧩Features
  • 👩‍đŸĢHow to...
    • 🚤Activate license
    • 🚲Deactivate license
    • 🔐Add API key
      • 🔑Create OpenAI API Key
      • 🔑Create Azure OpenAI API Key
      • 🔑Create Google AI API key
      • 🔑Create Google Cloud Vertex AI API Key
      • 🔑Create OpenRouter API Key
      • 🔑Create Mistral AI API Key
      • 🔑Create Perplexity API Key
      • 🔑Create Replicate API Key
      • 🔑Create Anyscale API key
    • đŸĻ™Add Ollama endpoint
    • 🌐Internet Browsing
      • 🍒Get Google Search Key
      • 🍊Get Tavily Key
      • 🍇Get You.com Search Key
      • đŸĨGet Serper Key
      • 🍍Get SerpApi Key
    • đŸ–Ĩī¸Use local LLM in MindMac
    • đŸ…°ī¸Change App Icon
    • 🧠Manage Models
  • FAQs
    • 👩‍đŸ’ģLicense code does not match product
    • 🐞Cannot open the app
    • đŸ’ĨInvalid URL or Key issue
    • ❓Common questions
Powered by GitBook
On this page
  • Step 1: Create new project
  • Step 2: Create new service account
  • Step 3: Generate new key
  • Step 4: Enable Vertex AI API
  • Step 5: Grab information to construct API URL
  • Add Google Vertex AI key
  1. How to...
  2. Add API key

Create Google Cloud Vertex AI API Key

PreviousCreate Google AI API keyNextCreate OpenRouter API Key

Last updated 1 year ago

Step 1: Create new project

Go to , enter project name and click Create.

Step 2: Create new service account

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.

Step 3: Generate new key

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:

{
  "type": "service_account",
  "project_id": "mindmac-300128",
  "private_key_id": "12efb3bcc7u7dbf111842f27415d37454c6d6fa012",
  "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE...8XI3A=\n-----END PRIVATE KEY-----\n",
  "client_email": "[email protected]",
  "client_id": "208453549200948148846",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/mindmac-service-account%40mindmac-300128.iam.gserviceaccount.com",
  "universe_domain": "googleapis.com"
}

Step 4: Enable Vertex AI API

Step 5: Grab information to construct API URL

Vertex AI API URL has format:

https://LOCATION-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/publishers/google/models
  • 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:

https://us-central1-aiplatform.googleapis.com/v1/projects/mindmac-300128/locations/us-central1/publishers/google/models

Add Google Vertex AI key

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.

Go to , select the project just created in Step 1: Create new project.

Go to , select the project just created and click Enable to activate Vertex AI API.

Go to , select project just created and take note region name.

Go to , select project just created and copy the project ID.

👩‍đŸĢ
🔐
🔑
https://console.cloud.google.com/iam-admin/serviceaccounts
https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com
https://console.cloud.google.com/vertex-ai
https://console.cloud.google.com/welcome
https://console.cloud.google.com/projectcreate