# 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 [#add-google-vertex-ai]

1. In your organization or project, click **LLM Gateway**, then **Providers**.
2. Click **Add a provider**, then **Google Vertex AI**, optionally enter a name and click **Continue**.
3. On the provider's **Overview** tab, enter your **Google Cloud project** and, optionally, its **Location (optional)** (`global` by default).
4. Run the generated `gcloud` commands or Terraform in Google Cloud. They enable the Vertex AI API, create or reuse the `kosem` workload identity pool and create a service account with the **Vertex AI User** role (`roles/aiplatform.user`) that trusts only this provider's subject.
5. 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 [#what-kosem-uses]

- **API:** Vertex AI's `generateContent` endpoint 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 with `project`, `location`, `workload_identity_provider` and `service_account` in `config`.
- **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 [#related]

- [Add a provider](/guides/llm-gateway/add-a-provider)
- [Google Gemini](/guides/llm-gateway/providers/google-gemini), with a key instead
- [Call models from your code](/guides/llm-gateway/call-models-from-code)
