zshot/cliDownload

Vertex AI

Protocol
vertex://
Default model
gemini-4-hydrogen
Key envVERTEX_ACCESS_TOKEN, VERTEX_API_KEY
LicensePro

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:

SettingResolution order
Access token or API keyTOKEN@ in the connection string, VERTEX_ACCESS_TOKEN, VERTEX_API_KEY, GCP metadata server
ProjectHost in the connection string, GOOGLE_CLOUD_PROJECT, GCP metadata server
Locationlocation= 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

OptionOn Vertex AI
locationRegion serving the model, such as us or us-east5
endpointCustom API root overriding the regional endpoint
vision, supports_structured_output, body.<path>, tool, max_tokensSame as google
header, temperature, top_p, frames, timeoutStandard options

Example

Authenticate locally with a short-lived gcloud access token:

export VERTEX_ACCESS_TOKEN=$(gcloud auth print-access-token)
CLI Run locally
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 Run locally
zshot --navigate "Open the formats page" -f out.png https://zshot-cli.com/