Google Cloud for open-source AI tools: Vertex AI, Gemini Enterprise Agent Platform, Dify and LiveKit in 2026
Two ways AI tools use Google Cloud
| Use | Google Cloud services | Example |
|---|---|---|
| Model access | Gemini Enterprise Agent Platform (Vertex AI), Model Garden | Dify calling Gemini through Google Cloud |
| Hosting the app | Cloud Run, GKE, Compute Engine, Cloud SQL, Memorystore, Cloud Storage | LiveKit media servers on GKE |
Which directory projects support Google Cloud
| Project | Google Cloud support |
|---|---|
| Dify | Vertex AI model provider for Gemini and partner models; deployable on Compute Engine or GKE |
| LiveKit | Self-hosted on GKE or Compute Engine; Gemini Live API plugin for real-time voice agents |
Beyond these, most model gateways and chat apps, including LiteLLM, LibreChat, LobeChat and n8n, support Gemini on Google Cloud, and n8n 2.44 added Vertex AI support in October 2026.
From Vertex AI to Gemini Enterprise Agent Platform
Google launched Vertex AI in 2021 as its machine learning platform, and it became the home of Gemini models for businesses. In 2026 Google brought these services under the Gemini Enterprise Agent Platform, which combines model access, agent building, agent deployment and governance. The APIs and SDKs developers use, including the Google Gen AI SDK, continue to work, and documentation now lives under the new name.
Some older features are being retired. Vertex AI Extensions, an early way to connect models to external APIs, are deprecated and scheduled to shut down after November 26, 2026. Apps that rely on them should move to function calling or MCP servers before then.
Models and pricing
Gemini 4 Argon is Google's general-availability flagship on the platform in October 2026. Pricing at the global endpoint:
| Period | Input per 1M tokens | Output per 1M tokens | Cached input |
|---|---|---|---|
| Until November 30, 2026 | $2 | $10 | $0.10 |
| From December 1, 2026 | $4 | $20 | $0.20 |
Regional and non-global endpoints have different prices. Gemini 3.5 Flash-Lite, a cheaper and faster model, is stable with a context window of about one million input tokens and up to 65,536 output tokens, and suits classification, extraction and high-volume chat. Model Garden adds partner models such as Claude, Llama, Mistral and open models you can deploy to your own endpoints.
Batch prediction and context caching lower costs for large jobs and repeated long prompts.
Hosting AI apps on Google Cloud
| Service | Best for | Notes |
|---|---|---|
| Cloud Run | Single-container apps and APIs | Scales to zero; supports NVIDIA L4 GPUs; request timeouts up to 60 minutes |
| GKE | Multi-service platforms, GPU workloads | Autopilot mode manages nodes for you |
| Compute Engine | Docker Compose installs | Simplest path for Dify and similar stacks |
| Cloud SQL | Managed PostgreSQL | pgvector supported |
| AlloyDB | High-performance PostgreSQL | Built-in vector search and model calls from SQL |
| Memorystore | Managed Redis and Valkey | Queues and caching |
| Cloud Storage | Files and uploads | S3-compatible XML API for many apps |
Cloud Run with GPUs is a notable option for small self-hosted models: an Ollama container with an L4 GPU that scales to zero when unused, so you pay only while it runs. Cold starts take longer because the model must load, so keep a minimum instance for interactive use.
Security and governance
- Service accounts. Run apps with a dedicated service account that has only the Vertex AI User role and access to the resources it needs.
- Workload Identity. On GKE, map Kubernetes service accounts to Google service accounts instead of storing key files.
- VPC Service Controls. Restrict model APIs and data to a security perimeter for regulated workloads.
- Data residency. Use regional endpoints when data must stay in a specific location; the global endpoint routes for capacity and price.
- Data use. Google states that customer data sent to its enterprise models is not used to train them without permission.
Connecting open-source apps
Apps that support the "Vertex AI" provider need a project ID, a location such as global or us-central1, and credentials, usually Application Default Credentials from the environment. Outside Google Cloud, create a service account key only if workload identity federation is not possible, and store it as a secret. Apps that support only OpenAI-format APIs can use Google's OpenAI-compatible endpoint for Gemini or go through LiteLLM.
Cost control
Set budget alerts in Cloud Billing, label resources by project, and export billing data to BigQuery for detailed analysis. Plan for the December 1 price increase on Gemini 4 Argon if you use it heavily, and consider routing simpler tasks to Flash-Lite models. Track per-user and per-feature spend in an LLM observability tool such as Langfuse, since cloud billing groups model calls by project, not by user.
Agents on Google Cloud
Google's Agent Development Kit (ADK) is an open-source framework for building agents in Python, Java, Go and TypeScript, and the platform's Agent Engine runs those agents with managed sessions, memory and scaling. Google also created the Agent2Agent (A2A) protocol, now under the Linux Foundation, for agents built with different frameworks to delegate work to each other. Agents built with LangGraph, CrewAI or LlamaIndex can also be deployed to the managed runtime. For self-hosters, the same agents run on Cloud Run or GKE, calling Gemini through the platform's APIs.
A reference setup for Dify on Google Cloud
A small production Dify deployment on Google Cloud usually looks like this:
- A Compute Engine VM with 4 vCPUs and 16 GB of RAM running Dify's Docker Compose file, or GKE for larger teams.
- Cloud SQL for PostgreSQL in place of the bundled database, with automated backups and pgvector enabled for knowledge bases.
- Memorystore for Redis in place of the bundled Redis.
- Cloud Storage for uploaded files, using Dify's S3-compatible or Google storage setting.
- A load balancer with a Google-managed TLS certificate, and Cloud Armor for basic protection.
- Gemini models configured through the Vertex AI provider with a dedicated service account.
Moving the database and cache to managed services is the step that makes upgrades and recovery easy; the app containers become disposable.
Google Cloud compared with other clouds
| Cloud | Strength for AI apps |
|---|---|
| Google Cloud | First access to Gemini models, TPUs, Cloud Run simplicity |
| AWS | Broadest model choice on Bedrock, largest infrastructure footprint |
| Azure | OpenAI GPT models under enterprise terms |
Related: Google Gemini stack, AWS stack, Kubernetes stack, LiteLLM stack, n8n stack, Stack index.
Frequently asked questions
Is Vertex AI being replaced?
It has been folded into a larger product. Google now documents Vertex AI services as part of the Gemini Enterprise Agent Platform, which also covers agent building and deployment tools. Existing Vertex AI APIs continue to work; some older features, such as Vertex AI Extensions, are being shut down.
What happens to Gemini 4 Argon prices on December 1, 2026?
Introductory global pricing of $2 per million input tokens and $10 per million output tokens ends on November 30, 2026. From December 1, standard global pricing is $4 and $20, with cached input at $0.20 per million tokens instead of $0.10. Regional prices differ. Budget for the higher rate now.
What is the difference between the Gemini API and Gemini on Google Cloud?
The Gemini API from Google AI Studio uses API keys and has a free tier for some models, aimed at developers and prototypes. Gemini on Google Cloud uses Google Cloud projects, IAM, regional controls, VPC Service Controls and enterprise terms. Apps often support both; choose Google Cloud for business data and compliance needs.
Can I run Claude on Google Cloud?
Yes. Anthropic's Claude models are available through Google Cloud's Model Garden, billed on your Google Cloud account. Open-source apps that support the Vertex AI provider for Anthropic, or a gateway such as LiteLLM, can call them.
What is the easiest way to host an open-source AI app on Google Cloud?
Cloud Run, for apps that ship a single container, such as Open WebUI or LiteLLM. It scales to zero when idle and supports GPUs for running small models. Platforms with several services, such as Dify, fit better on a Compute Engine VM with Docker Compose or on GKE.