google-cloud-aiplatform

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

SDK
PyPI
v1.165.0
904stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
97/100Excellent
Development Activity100
Maintenance100
Community88
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
76/100Good
Architecture78
Code Quality85
Innovation75
Learning Curve65

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 8 apps in this directory

TypeScript
59%
Other

agenta

Developer Tools · Devops · AI Development

4,489

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
TypeScript59%
Python39%
Updated today
Python
90%
Apache 2.0

Apache Airflow

Data Engineering

46,530

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
66
Dependency
Built with
Python90%
Updated today
TypeScript
50%
Other

Dify

No Code Platforms · AI Development · Developer Tools

152,883

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

View details
92
Repo Health
85
Technical
71
Dependency
Built with
TypeScript50%
Python47%
Updated today
TypeScript
72%
AGPL 3.0

Firecrawl

AI Development · Developer Tools

169,311

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
66
Dependency
Built with
TypeScript72%
Python14%
Updated today
TypeScript
91%
Apache 2.0

Helicone

Monitoring · AI Development · Analytics

6,083

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
62
Repo Health
81
Technical
66
Dependency
Built with
TypeScript91%
Updated 3 days ago
Python
84%
MIT

LiteLLM

AI Development · Developer Tools

56,720

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
71
Dependency
Built with
Python84%
TypeScript14%
Updated today
TypeScript
94%
Other

OpenHands

AI Code Assistants · AI Development

84,452

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
71
Dependency
Built with
TypeScript94%
Updated today
Python
76%
AGPL 3.0

Skyvern

AI Agents · Automation

22,785

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
71
Dependency
Built with
Python76%
TypeScript22%
Updated today

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

Search