google-cloud-aiplatform

Google's official Python SDK for Vertex AI model training, deployment, and generative AI workflows

SDK
PyPI
v2.2.0
908 stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
97 /100 Excellent
Development Activity 100
Maintenance 100
Community 88
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
76 /100 Good
Architecture 78
Code Quality 85
Innovation 75
Learning Curve 65

google-cloud-aiplatform (also imported as vertexai) is Google Cloud’s official Python client library for Vertex AI, the company’s unified machine-learning and generative-AI platform. It wraps the underlying gRPC/REST APIs for dataset management, custom and AutoML model training, batch and online prediction, model registry, pipelines, feature store, and explainability behind a Pythonic client interface, and layers a dedicated vertexai module on top for Gemini-based generative AI: chat, evaluation, tuning, agent orchestration (Agent Engine/agentplatform), and RAG retrieval.

As one of the highest-traffic packages in the Google Cloud Python ecosystem, it’s the primary entry point for teams building production ML and GenAI applications on Google Cloud, spanning classic MLOps pipelines through to the newest Gemini agent-runtime features.

What You Get

  • A high-level aiplatform.init() + resource-class API for datasets, custom/AutoML training jobs, models, endpoints, and batch prediction
  • A vertexai.Client for Gemini chat, text/image/multimodal generation, and prompt-based generative AI use cases
  • Built-in Gen AI evaluation (client.evals) for scoring model outputs against reference data with configurable metrics
  • Feature Store, Vector Search (matching engine), Pipelines, Model Registry, and Explainable AI integrations
  • Agent Engine / agentplatform runtime bindings for deploying and orchestrating LLM agents on Vertex AI
  • Optional extras for TensorBoard profiling, LIT, Ray on Vertex, and framework integrations (LangChain, LlamaIndex)

Common Use Cases

  • Training and deploying custom or AutoML models to Vertex AI endpoints for online/batch prediction
  • Building generative AI applications with Gemini models, including chat, structured output, and multimodal prompts
  • Running automated evaluation pipelines to score and compare LLM outputs across metrics and datasets
  • Managing ML pipelines, feature stores, and model registries as part of a production MLOps workflow on Google Cloud
  • Deploying and orchestrating LLM agents through the Agent Engine runtime for enterprise agent platforms

Under The Hood

Architecture The package is a monorepo-style client spanning several generations of API surface: the oldest layer is auto-generated GAPIC gRPC/REST clients under google/cloud/aiplatform_v1(beta1), wrapped by a hand-written SDK layer in google/cloud/aiplatform/ that exposes resource-oriented classes (Model, Endpoint, Dataset, PipelineJob, etc.) built on a shared base.VertexAiResourceNoun pattern. The newest layer, vertexai/, is a from-scratch redesign centered on a single vertexai.Client object exposing namespaced sub-clients (.models, .evals, .agent_engines) for Gemini-era generative AI, deliberately decoupled from the older aiplatform resource classes to give a cleaner, more Pythonic surface for GenAI workflows. Cross-cutting concerns (auth, project/location resolution, request retries) are centralized in shared base/init modules that both layers call into. Tech Stack Pure Python (99.97% of the codebase) targeting Python 3.8+, built on google-api-core, google-auth, grpcio, and proto-plus for the generated clients, with optional heavy dependencies (pandas, pyarrow, tensorflow, docker) gated behind extras in setup.py so a minimal install stays lightweight. Packaging uses classic setuptools with owlbot.py/synth.py generation tooling typical of Google’s API client generator pipeline, and release automation via release-please. Code Quality The tests/ tree separates unit/ (mirroring the source layout, including dedicated suites per generative-AI integration like vertex_langchain, vertex_llama_index, vertex_rag) from system/ end-to-end tests that hit live Vertex AI resources; this split, combined with noxfile.py-driven multi-version test sessions, indicates a mature CI discipline consistent with Google’s other google-cloud-python client libraries. API Design The API intentionally maintains two coexisting idioms — the older resource-class style (aiplatform.Model.upload(...)) for classic MLOps and the newer vertexai.Client(project=..., location=...) singleton style for GenAI — which lowers boilerplate for new Gemini-focused use cases but means developers must learn which surface applies to a given task; extensive docstrings and the dual README (classic + GenAI quickstarts) mitigate this.

Used by 9 apps in this directory

TypeScript
56%
Other

agenta

AI Development · Developer Tools · Devops

4,788

The open-source LLMOps platform unifying prompt engineering, evaluation, and observability for teams building reliable LLM applications.

View details
91
Repo Health
77
Technical
67
Dependency
Built with
TypeScript 56%
Python 39%
Updated 5 days ago
Python
89%
Apache 2.0

Apache Airflow

Data Engineering

46,995

Define, schedule, and monitor complex data workflows as Python code — with a powerful UI, 80+ provider integrations, and battle-tested scalability across thousands of production deployments.

View details
96
Repo Health
89
Technical
64
Dependency
Built with
Python 89%
Updated 4 days ago
TypeScript
50%
Other

Dify

AI Development · Design Tools · Developer Tools

157,364

Visual LLM workflow platform with RAG pipelines, agent capabilities, and model management for building production AI applications.

View details
92
Repo Health
85
Technical
66
Dependency
Built with
TypeScript 50%
Python 47%
Updated 4 days ago
TypeScript
73%
AGPL 3.0

Firecrawl

AI Development · Developer Tools

185,614

Turn any website into clean, LLM-ready data with a single API call — no proxy headaches, no scraping complexity.

View details
89
Repo Health
83
Technical
65
Dependency
Built with
TypeScript 73%
Python 13%
Updated 4 days ago
TypeScript
91%
Apache 2.0

Helicone

AI Development · Analytics · Monitoring

6,182

An open-source AI gateway and LLM observability platform that routes requests to 100+ models while logging cost, latency, and full traces for every call.

View details
70
Repo Health
81
Technical
65
Dependency
Built with
TypeScript 91%
Updated 2 weeks ago
TypeScript
91%
Apache 2.0

Helicone

AI Development · Analytics · Monitoring

6,182

An open-source AI gateway and LLM observability platform that routes requests to 100+ models while logging cost, latency, and full traces for every call.

View details
70
Repo Health
81
Technical
65
Dependency
Built with
TypeScript 91%
Updated 2 weeks ago
Python
82%
MIT

LiteLLM

AI Development · Developer Tools

59,745

Open source AI gateway and Python SDK that gives you one OpenAI-compatible interface to call 100+ LLM providers, with built-in routing, cost tracking, guardrails, and virtual keys.

View details
92
Repo Health
81
Technical
69
Dependency
Built with
Python 82%
TypeScript 12%
Updated 4 days ago
TypeScript
95%
Other

OpenHands

AI Code Assistants · AI Development

89,328

The self-hosted developer control center for running AI coding agents — locally, in Docker, on VMs, or across cloud backends — with automation workflows for GitHub, Slack, and more.

View details
91
Repo Health
82
Technical
67
Dependency
Built with
TypeScript 95%
Updated 5 days ago
Python
78%
AGPL 3.0

Skyvern

AI Agents · Automation

23,088

Skyvern (YC S2023) automates browser-based workflows by pairing LLMs with computer vision, letting agents click, fill, and extract data on sites they've never seen, without brittle XPath selectors that break on every layout change.

View details
89
Repo Health
82
Technical
70
Dependency
Built with
Python 78%
TypeScript 20%
Updated 4 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers