AI and Machine Learning on Google Cloud: Vertex AI, Gemini, Model Garden, Pre-Trained APIs and Responsible AI

Google Cloud Platform Architect 55 min min read Updated: Nov 17, 2026 Intermediate
AI and Machine Learning on Google Cloud: Vertex AI, Gemini, Model Garden, Pre-Trained APIs and Responsible AI
Intermediate Topic 3 of 3

Layers of AI on Google Cloud

LayerForProducts
Pre-trained APIsUse AI with an API call, no ML skillsVision, Speech-to-Text, Text-to-Speech, Translation, Natural Language, Document AI, Video Intelligence
Generative AIBuild with foundation modelsGemini models on Vertex AI, Model Garden (Google, open and partner models), Imagen, Veo
PlatformData scientists building custom modelsVertex AI training, AutoML, Workbench, Pipelines, Feature Store, Model Registry, Endpoints
Agents and searchBusiness assistants and enterprise searchVertex AI Agent Builder, Vertex AI Search, Gemini Enterprise
InfrastructureHeavy training and inferenceGPUs, TPUs, AI Hypercomputer

Pre-Trained APIs

bash gcloud ml vision detect-labels gs://acme-images/street.jpg gcloud ml language analyze-sentiment --content="The delivery was quick and the support was great" gcloud ml speech recognize gs://acme-audio/call.wav --language-code=en-US gcloud ml translate translate-text --target-language=hi --content="Good morning"
  • Document AI extracts fields from invoices, IDs and forms
  • Use when the task is standard (read text from an image, detect language, transcribe a call)

Gemini on Vertex AI

python from google import genai client = genai.Client(vertexai=True, project="my-proj", location="us-central1") resp = client.models.generate_content( model="gemini-2.5-flash", contents="Explain Cloud Run to a beginner in two sentences.", ) print(resp.text)
Note Model names, versions and regions change often. Check the Vertex AI model documentation for current options.
  • Gemini accepts text, images, audio, video and documents (multimodal) with large context windows
  • Choose smaller Flash style models for speed and cost and larger Pro style models for harder reasoning
  • Model Garden also offers open models (for example Llama, Gemma) and partner models you can deploy

RAG: Answer From Your Own Data

text Documents (Cloud Storage, BigQuery, websites) └─► Chunk + embed ─► Vector store (Vertex AI Vector Search, AlloyDB pgvector, BigQuery vector search) User question ─► embed ─► find similar chunks ─► send chunks + question to Gemini ─► grounded answer with citations
  • Grounding ties answers to your data or Google Search to reduce hallucinations
  • Vertex AI Search / Agent Builder gives a managed way to build search and chat over company documents

Custom ML on Vertex AI

FeatureUse
AutoMLTrain models on your labeled data without writing model code
Custom trainingYour own code in containers on CPUs, GPUs or TPUs
Workbench / Colab EnterpriseNotebooks
PipelinesRepeatable, automated ML workflows (MLOps)
Model Registry and EndpointsVersion, deploy and serve models with autoscaling
Feature Store, Experiments, Model MonitoringFeatures, tracking and drift detection
BigQuery MLTrain models using SQL where the data already lives

Security and Responsible AI

  • Use IAM, VPC Service Controls, CMEK and Private Service Connect for AI endpoints
  • Customer data is not used to train Google's base models without your permission (check the current terms)
  • Model Armor screens prompts and responses for injection and unsafe content. Sensitive Data Protection removes personal data
  • Add human review for high-impact decisions, test for bias, log prompts and responses carefully, and set safety filters

Choosing

NeedChoose
Read text from images or scansVision API or Document AI
Chatbot over company documentsVertex AI Agent Builder / Search or RAG with Gemini
Content generation and summarizingGemini on Vertex AI
Predict churn from warehouse dataBigQuery ML or AutoML
Train a custom deep learning modelVertex AI custom training with GPU or TPU

Practice

  1. Call the Natural Language API for sentiment
  2. Send a prompt to Gemini from Python
  3. Draw a RAG architecture for a company policy chatbot
  4. List three safeguards for a customer-facing AI assistant

Conclusion

Google Cloud offers pre-trained APIs, Gemini and Model Garden for generative AI, and Vertex AI for custom ML. Use RAG and grounding for company data, and apply security controls and responsible AI practices.

Quick Summary: layers; APIs; Gemini; RAG; custom ML; security; choosing.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators