Skip to main content

llm-vertex

Plugin for LLM adding support for Google Cloud Vertex AI.

Please note that this plugin is for Vertex AI specifically, not Google AI Studio.

For Gemini support using AI Studio, please see llm-gemini instead.

Supported models:

  • gemini-3.1-pro-preview
  • gemini-3-pro-preview
  • gemini-3-flash-preview
  • gemini-2.5-pro
  • gemini-2.5-flash
  • gemini-2.5-flash-lite
  • gemini-2.0-flash
  • gemini-2.0-flash-lite

Installation

See Installing Plugins for detailed instructions.

Method 1: Use llm

llm install llm-vertex

Method 2: Use pip

pip install llm-vertex

Use

First, authenticate using gcloud:

gcloud auth application-default login

Export two environment variables for the GCP Project and location you want to use:

export VERTEX_PROJECT_ID=gcp-project-id VERTEX_LOCATION=us-east1

Run llm and specify one of the provided models:

❯ llm -m vertex-gemini-2.5-flash "What's one clever name for a pet pelican?"
"Gulliver" would be a clever name for a pet pelican, referencing both its large gullet and its potential for long journeys! 🦜

Development

Create and activate a virtual environment:

python -m venv .venv
source .venv/bin/activate

Install the package in development mode with test dependencies:

pip install -e '.[dev]'

Run the tests:

python -m pytest

The tests use mocking to avoid requiring actual Google Cloud credentials during development, but do not really test actual functionality outside of making sure the plugin is installed and can be used.

Metadata

Release files for llm-vertex 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-vertex 0.2.4
File Size Uploaded Provenance Actions
llm_vertex-0.2.4.tar.gz 7.9 kB With provenance Details for llm_vertex-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llm-vertex 0.2.4
File Interpreter ABI Platform Actions
llm_vertex-0.2.4-py3-none-any.whl Python 3 none any Details for llm_vertex-0.2.4-py3-none-any.whl

Total release size: 15.3 kB

Release files / llm_vertex-0.2.4.tar.gz

Download URL llm_vertex-0.2.4.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d0fd77dd3042a3a72e462f79cd63e935135a5f8dfc08033b9b01bee03ce0c504
BLAKE2b-256 checksum
How to use checksums
f967a0eb6573afaacb67947cccdcf58416f851a5e62ca44af135bcfbf73008d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 22, 2026.

Transparency log

Release files / llm_vertex-0.2.4-py3-none-any.whl

Download URL llm_vertex-0.2.4-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e23531b03bac6940fdd997f10010cbfdc665b919efdd6586a9f1fca55e656811
BLAKE2b-256 checksum
How to use checksums
1108e9e5fc70012269ad9e7ba6f175e79efbfa881b38420d168d3c9b6573fac4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 22, 2026.

Transparency log

Security for llm-vertex 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for llm_vertex-0.2.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page