Skip to content

Google Vertex (BYOK)

How to create an API key for Google Vertex and add it to AnyRouter via Bring Your Own Key.

Vertex uses Google Cloud service-account credentials rather than a single API key.

Get your API key

  1. In the Google Cloud Console, create or pick a project.
  2. Create a service account and grant it the Vertex AI User role.
  3. Generate a JSON key for that service account (Keys → Add key → Create new key → JSON).
  4. Paste the full service-account JSON into AnyRouter; optionally set a region (defaults to us-central1).

Gotchas

The JSON must include type, project_id, private_key, and client_email. Requests are billed to the linked Google Cloud project, not AnyRouter credits.

Add it to AnyRouter

  1. Go to Dashboard → BYOK.
  2. Find Google Vertex under Available and click Add key.
  3. Paste your key into the API key field.
  4. Click Save. AnyRouter runs a live validation call against Google Vertex before storing the key — if it fails, the dialog shows the upstream error and the key isn't saved.