Google Vertex AI
Add Google Vertex AI as a provider through workload identity federation, with no key, and call Gemini models in your Google Cloud project.
Serve Gemini models on Vertex AI billed directly to your Google Cloud project. kosem authenticates to Google Cloud using workload identity federation as your service account, without storing static keys. Adding a provider requires Owner or LLM Gateway Admin on the organization (or on a project for a project-scoped provider), plus permissions in Google Cloud to create a workload identity pool and service account.
Add Google Vertex AI
- In your organization or project, click LLM Gateway, then Providers.
- Click Add a provider, then Google Vertex AI, optionally enter a name and click Continue.
- On the provider's Overview tab, enter your Google Cloud project and, optionally, its Location (optional) (
globalby default). - Run the generated
gcloudcommands or Terraform in Google Cloud. They enable the Vertex AI API, create or reuse thekosemworkload identity pool and create a service account with the Vertex AI User role (roles/aiplatform.user) that trusts only this provider's subject. - Paste the Project ID, Location, Workload identity provider and Service account into the form and click Finish setup.
kosem verifies that Google Cloud accepts this provider's identity, rejects other kosem identities and lets the service account call Vertex AI in your project before activating it.
What kosem uses
- API: Vertex AI's
generateContentendpoint in your configured location. kosem translates Anthropic Messages, OpenAI Responses and OpenAI Chat Completions calls to it. - Type, for the API:
providerTypes/google-vertex, created without a key or initial settings, then configured withproject,location,workload_identity_providerandservice_accountinconfig. - Models: Gemini models, such as
gemini-4-carbon, listed from kosem's catalog. Enter any other model by its ID. - Prices: Google's list prices for Gemini, for usage and spend limits. Google Cloud bills your project.
Until setup is finished, the provider shows Needs attention and serves no requests.
Related
- Add a provider
- Google Gemini, with a key instead
- Call models from your code