# Vertex AI

Source: https://zshot-cli.com/reference/llm_connections/vertex/
Markdown: https://zshot-cli.com/reference/llm_connections/vertex/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
Protocol: [`vertex://`](https://zshot-cli.com/reference/llm_connections/) · Default model: `gemini-4-hydrogen`
Key env: `VERTEX_ACCESS_TOKEN`, `VERTEX_API_KEY` · [Roles](https://zshot-cli.com/reference/llm_connections/roles/): [Formats](https://zshot-cli.com/reference/llm_connections/roles/#formats) · [Navigates](https://zshot-cli.com/reference/llm_connections/roles/#navigates) · [Writes](https://zshot-cli.com/reference/llm_connections/roles/#writes)
License: [Pro](https://zshot-cli.com/support/licenses/pro)

Runs Gemini models on Google Cloud Vertex AI using `vertex://TOKEN@PROJECT?model=MODEL`. Specify a Google model ID such as `gemini-4-hydrogen` or `google/gemini-4-hydrogen`; behavior matches the [`google`](/reference/llm_connections/google) provider, and non-Google publishers are rejected.

Each setting resolves from the first available source:

| Setting | Resolution order |
| --- | --- |
| Access token or API key | `TOKEN@` in the connection string, `VERTEX_ACCESS_TOKEN`, `VERTEX_API_KEY`, GCP metadata server |
| Project | Host in the connection string, `GOOGLE_CLOUD_PROJECT`, GCP metadata server |
| Location | `location=` query option, `GOOGLE_CLOUD_LOCATION`, `global` |

Tokens may be OAuth access tokens or service-account-bound Google Cloud API keys.

On Google Cloud, ZShot queries the metadata server on the first model call for any missing value and automatically refreshes tokens before expiry. The attached service account requires the Vertex AI User role.

When running on Google Cloud without `--navigator-type` or `--llm-format-model`, ZShot defaults to `vertex`.

## Options

| Option | On Vertex AI |
| --- | --- |
| `location` | Region serving the model, such as `us` or `us-east5` |
| `endpoint` | Custom API root overriding the regional endpoint |
| [`vision`](/reference/llm_connections/options#vision-and-frames), [`supports_structured_output`](/reference/llm_connections/options#structured-output), [`body.<path>`](/reference/llm_connections/options#request-body-fields), [`tool`](/reference/llm_connections/options#tool), `max_tokens` | Same as [`google`](/reference/llm_connections/google) |
| `header`, `temperature`, `top_p`, `frames`, `timeout` | Standard [options](/reference/llm_connections/options) |

## Example

Authenticate locally with a short-lived `gcloud` access token:

```sh
export VERTEX_ACCESS_TOKEN=$(gcloud auth print-access-token)
```

**CLI**

```sh
zshot -t llm_text \
  --llm-format-model "vertex://my-project?model=gemini-4-hydrogen" \
  --llm-format-prompt "Summarize the lead story in one sentence." \
  -f summary.txt https://zshot-cli.com/example_assets/gazette/
```

Run on a Compute Engine VM using its service account and project:

**CLI**

```sh
zshot --navigate "Open the formats page" -f out.png https://zshot-cli.com/
```

## Related

Flags:

- [`--llm-format-model`](https://zshot-cli.com/reference/flags/document/llm-format-model/)
- [`--navigator-type`](https://zshot-cli.com/reference/flags/navigator/navigator-type/)

Topics:

- [Connection String Options](https://zshot-cli.com/reference/llm_connections/options/)
- [Google](https://zshot-cli.com/reference/llm_connections/google/)
- [Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs) — Google Cloud

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
  - [Flags](https://zshot-cli.com/reference/flags/)
  - [Agents](https://zshot-cli.com/reference/agents/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Devices](https://zshot-cli.com/reference/devices/)
  - [Docker](https://zshot-cli.com/reference/docker/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
    - [Connection String Options](https://zshot-cli.com/reference/llm_connections/options/)
    - [Roles](https://zshot-cli.com/reference/llm_connections/roles/)
    - [Anthropic](https://zshot-cli.com/reference/llm_connections/anthropic/)
    - [OpenAI](https://zshot-cli.com/reference/llm_connections/openai/)
    - [Google](https://zshot-cli.com/reference/llm_connections/google/)
    - [Ollama](https://zshot-cli.com/reference/llm_connections/ollama/)
    - **Vertex AI**
    - [Mistral](https://zshot-cli.com/reference/llm_connections/mistral/)
    - [DeepSeek](https://zshot-cli.com/reference/llm_connections/deepseek/)
    - [Groq](https://zshot-cli.com/reference/llm_connections/groq/)
    - [HuggingFace](https://zshot-cli.com/reference/llm_connections/huggingface/)
    - [TypeSafe](https://zshot-cli.com/reference/llm_connections/typesafe/)
    - [Cloudflare](https://zshot-cli.com/reference/llm_connections/cloudflare/)
    - [OpenRouter](https://zshot-cli.com/reference/llm_connections/openrouter/)
    - [stdio](https://zshot-cli.com/reference/llm_connections/stdio/)
  - [npm](https://zshot-cli.com/reference/npm/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - [Shell completions](https://zshot-cli.com/reference/shell_completions/)
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

