vertex-advanced

n8n community node for Google Vertex AI with advanced multimodal capabilities

Package Information

Downloads: 1 weekly / 28 monthly
Latest Version: 1.0.0
Author: AI Research

Documentation

n8n-nodes-vertex-advanced

n8n Community Node
License: MIT

A production-grade n8n community node that brings the polished UI/UX of the official n8n Gemini node to Google Cloud Vertex AI — powered entirely by Service Account authentication.

Why This Node Exists

The official n8n Gemini node uses the Google AI Studio API (API key authentication), which has strict rate limits and cannot tap into enterprise Google Cloud billing. This node provides the exact same interface and feature set but routes every request through the Vertex AI API using Google Cloud Service Account credentials.

This means you can:

  • Use your enterprise Google Cloud credits instead of AI Studio quotas
  • Bypass AI Studio API limits with Vertex AI's higher throughput
  • Leverage existing GCP infrastructure — service accounts, IAM policies, audit logging
  • Access the full model catalog including preview and region-specific models

Key Features

Text — Message Gemini Models

  • Multi-turn conversations with role-based messages
  • Built-in tools: Google Search, URL Context, Google Maps, Code Execution
  • JSON output mode for structured responses
  • Thinking budget control for reasoning models
  • Temperature, top-P, top-K, frequency/presence penalty tuning
  • System messages and merged response output

Image — Generate, Analyze & Edit

  • Generate images with Gemini (multimodal output) and Imagen 3 models
  • Analyze images from URLs or binary data — ask questions, get descriptions
  • Edit images with natural language prompts — combine, modify, transform
  • Flawless Base64 inlineData interception — no temporary file uploads or GCS buckets required

Audio — Transcribe & Analyze

  • Transcribe audio into text with start/end time markers
  • Analyze audio content — ask questions about speech, music, or ambient sound
  • Supports URL and binary input with automatic MIME type detection

Video — Generate & Analyze

  • Generate videos with Veo models — configurable duration, aspect ratio, person generation
  • Analyze videos from URLs or binary data
  • Return as binary file or downloadable URL

Installation

Via n8n UI

  1. Open your n8n instance
  2. Go to SettingsCommunity Nodes
  3. Click Install
  4. Enter n8n-nodes-vertex-advanced
  5. Click Install and restart n8n

Via npm (self-hosted)

cd ~/.n8n/custom
npm install n8n-nodes-vertex-advanced

Then restart n8n.

Via pnpm

cd ~/.n8n/custom
pnpm add n8n-nodes-vertex-advanced

Authentication Guide

This node uses the standard n8n Google Service Account credential (googleApi). Here's how to set it up:

Step 1: Create a Service Account

  1. Open the Google Cloud Console
  2. Navigate to IAM & AdminService Accounts
  3. Click Create Service Account
  4. Give it a name (e.g., n8n-vertex-ai) and click Create and Continue

Step 2: Grant Permissions

Assign the Vertex AI User role (roles/aiplatform.user) to the service account. This grants access to all Vertex AI generative models.

gcloud projects add-iam-policy-binding YOUR_PROJECT_ID \
  --member="serviceAccount:n8n-vertex-ai@YOUR_PROJECT_ID.iam.gserviceaccount.com" \
  --role="roles/aiplatform.user"

Step 3: Download the Key

  1. In the Service Accounts page, click on your service account
  2. Go to the Keys tab
  3. Click Add KeyCreate new keyJSON
  4. Save the downloaded JSON file

Step 4: Configure in n8n

  1. In n8n, go to CredentialsCreate CredentialGoogle Service Account
  2. Paste the email from the JSON key file
  3. Paste the private key from the JSON key file
  4. Set the region (e.g., us-central1, europe-west4, or global)

Step 5: Use the Node

  1. Add the Vertex AI Advanced node to your workflow
  2. Select your Google Service Account credential
  3. Enter your GCP Project ID
  4. Choose a resource (Text, Image, Audio, Video) and configure as needed

Region Handling

The node automatically handles regional routing:

  • Regional endpoints (e.g., us-central1, europe-west4): Routes to https://aiplatform.googleapis.com/v1beta1/projects/{project}/locations/{region}/publishers/google/models/{model}:{method}
  • Global endpoint: When region is set to global, the node correctly uses https://aiplatform.googleapis.com without the invalid global-aiplatform subdomain

All region logic is handled internally — you just select the region in your credential.

Architecture

┌─────────────────┐     ┌──────────────────────┐     ┌─────────────────────────┐
│   n8n Workflow  │────▶│  Vertex AI Advanced  │────▶│  Vertex AI API          │
│                 │     │  Node                │     │  aiplatform.googleapis  │
│  Binary Data    │     │                      │     │  .com                   │
│  Text Input     │     │  JWT Auth (SA)       │     │                         │
│  Configuration  │     │  Base64 inlineData   │     │  Gemini / Imagen / Veo  │
└─────────────────┘     └──────────────────────┘     └─────────────────────────┘

Key Engineering Decisions

  • No file uploads: Binary data is converted to Base64 and embedded as inlineData directly in the API payload — no intermediate GCS uploads or polling
  • Service Account JWT auth: Generates OAuth2 Bearer tokens via JWT Bearer grant flow — no API keys
  • Unified base URL: All requests go to aiplatform.googleapis.com with the region specified in the path only

Development

git clone https://github.com/airesearch-official/n8n-nodes-vertex-advanced.git
cd n8n-nodes-vertex-advanced
npm install
npm run build

To use during development, symlink the dist folder into your n8n custom nodes directory:

ln -s $(pwd)/dist ~/.n8n/custom/n8n-nodes-vertex-advanced

Supported Models

Resource Models
Text Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash, and all Gemini text models
Image Generation Gemini 2.5 Flash Image (Nano Banana), Imagen 3, Imagen 4
Image Analysis All Gemini multimodal models
Audio Gemini 2.5 Flash, Gemini 2.0 Flash, and all audio-capable Gemini models
Video Generation Veo 2, Veo 3, and all Veo models

License

MIT

Discussion