Skip to main content
  1. Enable the Vertex AI API in your Google Cloud Platform.
  2. Go to “Service Accounts” in the Google Cloud Console IAM Settings
Go to "Service Accounts" in the sidebar
  1. Click on “Create Service Account”
  2. Give the Service Account a name
Give the Service Account a name
  1. Assign the “Vertex AI User” Role
Assign the “Vertex AI User” Role from the four options
  1. Create the Service Account.
Create the Service Account
  1. You are brought back to the Service Account overview.
Image of the Service Account overview
  1. On the overview page, click on “Manage keys”
Click on "Manage keys" on the three dots of the service account
  1. Create a new JSON key
From the Drop-down select "Create new key"
  1. Download & open the JSON file
Download the key and open the JSON file
  1. Copy the “private_key” attribute into the “API Secret” field in the Langdock Models page (for example: -----BEGIN PRIVATE KEY----- {{ private key }} -----END PRIVATE KEY-----\n)
  2. Copy the “client_email” attribute into the “Endpoint” field in Langdock
  3. Use a model ID from the Vertex portal (eg. gemini-1.5-flash-001 or gemini-1.5-pro-001)