Model Endpoints vs APIs — The Vertex AI Ecosystem
Model Endpoints vs APIs
Serverless Foundation Model APIs vs Dedicated Endpoints
On Vertex AI, developers choose between two fundamentally distinct architectural patterns depending on whether they are serving managed proprietary foundation models or hosting specialized open-source weights.
1. Serverless Foundation Model APIs (Gemini)
For Google's frontier models (Gemini 4 Argon, Gemini 3.8 Flash, Gemini 3.8 Live, Gemini 3.6 Flash, and Gemini 3.5 / 3.1 Flash-Lite, plus serverless Model Garden partner APIs like Anthropic Claude 5.x), Vertex AI operates in a purely serverless paradigm across both the global endpoint and regional endpoints:
- Zero Cluster Management: No VMs, GPUs, or TPU pods to provision, patch, or autoscale.
- Pay-Per-Token Billing: Incur costs strictly for input tokens processed and output tokens generated. Idle applications cost exactly $0.00.
- High-Throughput Provisioned Throughput (PT): For predictable enterprise workloads requiring strict latency SLAs and guaranteed throughput, enterprises can reserve dedicated throughput capacity units rather than sharing standard multi-tenant pools.
2. Dedicated Prediction Endpoints (Model Garden & Custom Weights)
When deploying custom fine-tuned weights, open-source models (such as Llama 3.3 70B, Mistral Large, or DeepSeek-R1), or proprietary PyTorch/JAX artifacts from the Vertex AI Model Garden, you deploy to a Dedicated Endpoint:
- Hardware Allocation: You specify exact Compute Engine machine types (e.g.,
g2-standard-48with 4x NVIDIA L4 GPUs ora2-ultragpu-8gwith 8x NVIDIA A100 80GB GPUs). - Container Runtimes: Uses pre-built optimized serving containers (vLLM, Hugging Face TGI, or Triton Inference Server).
- Autoscaling & Hourly Billing: You pay continuous hourly VM and GPU rates for as long as instances are active. Autoscaling scales between
min_replica_countandmax_replica_countbased on CPU/GPU utilization or queue depth.
import { GoogleGenAI } from "@google/genai";
// 1. Serverless Gemini API via unified Google Gen AI SDK
const ai = new GoogleGenAI({ vertexAI: true, project: "my-gcp-project", location: "us-central1" });
const response = await ai.models.generateContent({
model: "gemini-3.8-flash",
contents: "Explain the architectural trade-offs of dedicated endpoints vs serverless APIs."
});
console.log(response.text);
Query Vertex AI regional service endpoints to inspect live deployed model instances and latency configurations.