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
- In the Google Cloud Console, create or pick a project.
- Create a service account and grant it the Vertex AI User role.
- Generate a JSON key for that service account (Keys → Add key → Create new key → JSON).
- Paste the full service-account JSON into AnyRouter; optionally set a
region(defaults tous-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
- Go to Dashboard → BYOK.
- Find Google Vertex under Available and click Add key.
- Paste your key into the API key field.
- 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.
Related
- BYOK Provider Setup Guide — the full provider list and the general flow
- Bring Your Own Key (BYOK) — routing precedence, load balancing, and costs
- Free-tier aggregation — combine free tiers behind one preset