Vertex AI
- Protocol
- vertex://
- Default model
- gemini-4-hydrogen
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 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_, VERTEX_, GCP metadata server |
| Project | Host in the connection string, GOOGLE_, GCP metadata server |
| Location | location= query option, GOOGLE_, 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, supports_, body., tool, max_ | Same as google |
header, temperature, top_, frames, timeout | Standard options |
Example
Authenticate locally with a short-lived gcloud access token:
export VERTEX_ACCESS_TOKEN=$(gcloud auth print-access-token)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:
zshot --navigate "Open the formats page" -f out.png https://zshot-cli.com/