- IAM-based access control and audit logging
- VPC Service Controls and data residency options
- Imagen image generation models
- Vertex AI Vector Search for production-scale RAG
- Model Garden (third-party models like Claude, Llama, and more)
@genkit-ai/google-genai package as googleAI. The legacy @genkit-ai/vertexai package still exists but is deprecated.
In Go and Python, both GoogleAI and VertexAI live in the same package.
Installation
- TypeScript
- Go
- Python
Authentication
Vertex AI uses Google Cloud credentials, not API keys.Install the Google Cloud CLI
Follow the official install guide for your platform.
Authenticate locally
Configuration
- TypeScript
- Go
- Python
Plugin options (TypeScript)
Generating text
- TypeScript
- Go
- Python
Available models
| Model name | Best for |
|---|---|
gemini-2.5-pro | Highest capability, complex reasoning |
gemini-2.5-flash | Fast, cost-effective |
gemini-2.5-flash-lite | Ultra-low latency |
gemini-2.0-flash | Previous-generation, widely available |
imagen-4.0-generate-001 | Photorealistic images |
imagen-4.0-fast-generate-001 | Faster image generation |
imagen-4.0-ultra-generate-001 | Highest quality image generation |
lyria-002 | Music generation (Vertex AI only) |
google.golang.org/genai or google-genai SDK is automatically available.
Text embeddings
- TypeScript
- Go
- Python
text-embedding-004, text-embedding-005, text-multilingual-embedding-002, gemini-embedding-001, multimodalembedding@001.Image generation (Imagen)
Music generation (Lyria)
Lyria is a Vertex AI–only model for instrumental music generation:Vertex AI Vector Search for RAG
Vertex AI Vector Search provides managed, enterprise-scale nearest-neighbour search. The Go and Python plugins include a Vector Search retriever.- Go
Advanced model configuration
Use Google Search grounding, code execution, and thinking budget:Deploying to Cloud Run
When deployed to Cloud Run, Cloud Functions, or any GCP service, credentials are automatically inferred from the runtime service account. No additional configuration is needed.Related pages
Google AI plugin
Same models via the Gemini Developer API — no GCP project needed.
Firebase plugin
Firestore vector search and Firebase telemetry.
RAG guide
Build retrieval-augmented generation pipelines.
Cloud Run deployment
Deploy Genkit flows to Cloud Run.
