Google Vertex AI Alternative: Self-Host Open Models on GCP
The most practical Google Vertex AI alternative for teams that want inference to stay on machines they administer is to run open-weight models on Compute Engine or GKE GPU instances in your own Google Cloud project, behind an internal OpenAI-compatible endpoint. Your prompts never reach a Google AI service, the model you tested stays the model you run, and cost follows the GPUs you reserve rather than the tokens you send. In exchange you take on GPU capacity and operations, and you give up Gemini.
A naming note first. In April 2026 Google renamed Vertex AI to Gemini Enterprise Agent Platform, usually shortened to Agent Platform. Model Garden kept its name, and Vertex AI Endpoints became Agent Platform Endpoints. Most people still search for Vertex AI, so this post uses both names. This is the third post in our cloud series after the Azure OpenAI alternative and the Amazon Bedrock alternative, and it follows the same structure.
What Vertex AI already does for your data
Before moving, check whether the service already meets your requirement. Google's zero data retention page says Google will not train or fine-tune models on your data without your permission. Data from Gemini requests is cached for up to 24 hours by default, and a project admin can turn that cache off. VPC Service Controls can put a perimeter around Agent Platform, including Gemini, to reduce the risk of data leaving your environment.
If your worry is "Google trains on our prompts", Vertex AI data privacy controls already answer it.
The details that matter in strict environments are on the abuse monitoring page, as of November 2026:
- Under the online Google Cloud Platform Terms of Service, prompts flagged by classifiers may be logged for up to 90 days and reviewed by authorized Google staff. Customers with a Master Agreement are exempt from that logging by default.
- Third-party models that Google classes as advanced AI log all prompts and responses for up to 30 days, after a one-time consent per project.
- Some features keep data no matter what: grounding with Google Search keeps query logs for up to 3 days and the Deep Research agent keeps session data for 7 days.
Our post on zero data retention AI compares these terms with OpenAI, Anthropic, Azure and Bedrock.
Reasons teams look for a Google Vertex AI alternative
These are the reasons that hold up when you test them:
- A policy that no managed AI service may process certain data, including one run by your cloud provider. The data can sit in Cloud Storage, but inference must run on compute you control.
- Capacity. Gemini on the default Standard PayGo tier runs on shared resources without reserved capacity. Throughput thresholds are set per organization from your recent spend, and a 429 error means temporary contention on a shared resource. Guaranteed capacity means Provisioned Throughput, a fixed-cost, fixed-term subscription paid weekly or monthly.
- Model lifecycle. Google's model versions page keeps GA Gemini models available for at least 12 months and gives at least 45 days' notice of a retirement date.
gemini-2.5-pro, for example, was scheduled to retire on 20 October 2026. After that you migrate and retest your prompts. - Cost at steady volume. Tokens are cheap for light, spiky traffic and expensive for a pipeline that runs all day. Our self-hosted LLM cost model shows how to find the break-even point.
- Disconnected or air-gapped sites where no Google API endpoint is reachable.
If none of these apply, stay on Vertex AI.
Vertex AI vs Model Garden vs self-hosting on GCP
| Gemini on Agent Platform | Model Garden self-deployed | Self-hosted on GCE or GKE | |
|---|---|---|---|
| What you manage | Prompts and settings | Model, machine type, accelerators | Everything from the OS up |
| Where inference runs | Google-managed service | Endpoint Google manages for your project | VMs or nodes in your project and VPC |
| Billing | Per token, or Provisioned Throughput | Per node hour while the model is deployed | Per VM hour, plus your team's time |
| Models | Gemini and partner models | Open and custom models from the catalog | Any open-weight model you are licensed to run |
| Model changes | On Google's retirement schedule | When you redeploy | When you redeploy |
| Works air-gapped | No | No | Yes, with the right setup |
Vertex AI Model Garden as a middle step
Model Garden lets you self-deploy open models to an endpoint in your project. You pick the machine type and accelerators, the serving container is vLLM-based for many models, and you can reach the endpoint privately through Private Service Connect. Google's pricing page is clear that you pay for each model deployed to an endpoint even when it serves no requests, until you undeploy it.
If your only problem is model choice or retirement dates, Model Garden may be enough. Agent Platform still runs the endpoint as a managed service, though, so it does not solve a policy that says no managed AI service may touch the data.
How to self-host an LLM on GCP
The work splits into three parts: choose a GPU, pick a model that fits it, and keep the endpoint private.
GPU machine types for inference
These Compute Engine GPU machine types cover most LLM serving:
| Machine type | GPUs | GPU memory | Good for |
|---|---|---|---|
| g2-standard-8 | 1 x NVIDIA L4 | 24 GB | 8B to 14B models, embeddings, low-traffic endpoints |
| g4-standard-48 | 1 x NVIDIA RTX PRO 6000 | 96 GB | One 70B model at 4-bit with room for more users |
| a3-highgpu-1g | 1 x NVIDIA H100 | 80 GB | One 70B model at 4-bit, faster decoding |
| a3-highgpu-8g | 8 x NVIDIA H100 | 640 GB | Very large models, high concurrency |
| a3-ultragpu-8g | 8 x NVIDIA H200 | 1,128 GB | The largest open models |
GPU quota on Google Cloud is per region and per GPU model, with a separate global "GPUs (all regions)" quota on top, according to the resource quota page. Request both before you set a go-live date, and confirm the zone you want actually has the GPU in stock.
Matching the model to the GPU
Size from memory, not parameter count. Llama 3.3 70B at 4-bit (Q4_K_M) needs about 50 GB for one user at an 8K context, so it fits on an 80 GB H100 or a 96 GB RTX PRO 6000 but not on a 24 GB L4. Gemma 4 31B at 4-bit needs about 22 GB for one user at short context, which an L4 holds but serves slowly: the L4's 300 GB/s of memory bandwidth limits decode speed far more than its 24 GB limits fit.
Many tasks people run on Gemini today, such as classification, extraction and internal summaries, work well on 8B to 32B open models. Test two or three on 50 to 100 real prompts before buying capacity for the largest.
GKE GPU LLM inference
One or two models with steady traffic run fine on plain VMs behind an internal load balancer. Once several teams or models share the hardware, GKE with GPU node pools is the better home. Google's own tutorials cover serving Gemma with vLLM on GKE and multi-host serving for models such as DeepSeek-R1 671B on a3-highgpu-8g nodes. Our guide to deploying an LLM on Kubernetes covers the GPU operator, model storage and autoscaling.
Keeping it private
Give the GPU VMs or nodes no external IP addresses, put the endpoint behind an internal load balancer, and allow traffic only from your application subnets with firewall rules. Copy model weights from a Cloud Storage bucket using Private Google Access, enabled on the subnet, so the instances need no internet route once the image is built.
Changing the client code
Gemini on Agent Platform can already be called through the OpenAI libraries, with a Google Cloud access token as the key. If your application uses that path, moving to a self-hosted endpoint is a base URL, a key and a model name:
# Before: Gemini through the OpenAI-compatible Agent Platform endpoint
from openai import OpenAI
client = OpenAI(
base_url=f"https://aiplatform.googleapis.com/v1/projects/{PROJECT_ID}/locations/global/endpoints/openapi",
api_key=google_access_token, # expires after an hour by default
)
resp = client.chat.completions.create(
model="google/gemini-3.5-flash",
messages=[{"role": "user", "content": "Extract the invoice number..."}],
)
# After: open model in your own GCP project
client = OpenAI(
base_url="https://llm.internal.example.com/v1",
api_key=INTERNAL_API_TOKEN,
)
resp = client.chat.completions.create(
model="gemma-4-31b-it",
messages=[{"role": "user", "content": "Extract the invoice number..."}],
)
If you call the native Google Gen AI SDK instead, you rewrite the call site once. Features tied to the service, such as grounding with Google Search, Agent Search and the Agent Runtime, do not come with you, so list what your application uses first.
What you give up by leaving Vertex AI
- Gemini itself, which is not available as open weights. Gemma is Google's open model family, and it is a different, smaller model.
- Per-token pricing for small or unpredictable traffic. An idle GPU VM still costs money.
- A managed service. Patching, monitoring, restarts and upgrades become your job.
- Managed extras such as search grounding and Agent Platform's built-in tools.
When Vertex AI is the better choice
Stay on Vertex AI when your application needs Gemini-class quality that no open model matches on your tests, when traffic is light or unpredictable, or when nobody on the team wants to own GPU infrastructure. It is also the simpler choice if a Master Agreement and VPC Service Controls already satisfy your security team. Many companies end up with both: Gemini for the hardest general tasks and a self-hosted model for sensitive or high-volume work, with one gateway in front.
Where AI Refinery fits
AI Refinery, a self-hosted LLM platform, installs inside your own infrastructure, which can be your Google Cloud project and VPC. You choose a model from its curated catalog of open-source text, embedding and vision-language models, pick a benchmarked quantization variant with its GPU memory need and measured tokens per second listed, and launch an inference server with one click. Each model gets an OpenAI-compatible /v1/chat/completions endpoint, with RBAC, SSO, approval workflows and an audit log built in. You bring the GPU VMs.
It does not give you Gemini or any other closed model, and it is not a managed Google service; if you need either, Vertex AI is the better fit. Plans are sized by the largest model you run; see the self-hosted LLM plans, or write to [email protected] with your workload.
Decision checklist
- You can name which reason above rules out Vertex AI, and Model Garden if model choice was the only issue.
- You tested at least two open models on real prompts from your application.
- You have regional and global GPU quota for the machine type you need.
- You listed the Agent Platform features your application uses and how you will replace each.
- Someone owns the inference servers after launch.
If all five hold, self-hosting in your own GCP project is a sound move. If the first does not, Vertex AI is probably still the right place for this workload.