1. Enable the Vertex AI API in your Google Cloud Platform.

  2. Go to “Service Accounts” in the Google Cloud Console IAM Settings

  1. Click on “Create Service Account”

  2. Give the Service Account a name

  1. Assign the “Vertex AI User” Role

  1. Create the Service Account.

  1. You are brought back to the Service Account overview.

  1. On the overview page, click on “Manage keys”

  1. Create a new JSON key

  1. Download & 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)