Generate Video from Prompt Using Vertex AI and Upload to Google Drive
## Who's it for This template is perfect for content creators, AI enthusiasts, marketers, and developers who want to automate the generation of cinematic videos using Google Vertex AI's Veo 3 model. It's also ideal for anyone experimenting with generative AI for video using n8n.  ## What it does This workflow: - Accepts a text prompt and a GCP access token via form. - Sends the prompt to the Veo 3 (preview model) using Vertex AI's predictLongRunning endpoint. - Waits for the video rendering to complete. - Fetches the final result and converts the base64-encoded video to a file. - Uploads the resulting .mp4 to your Google Drive.  ### Output  ## How to set up 1. Enable Vertex AI API in your GCP project: [https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) 2. Authenticate with GCP using Cloud Shell or local terminal: ``` gcloud auth login gcloud config set project [YOUR_PROJECT_ID] gcloud auth application-default set-quota-project [YOUR_PROJECT_ID] gcloud auth print-access-token ``` - Copy the token and use it in the form when running the workflow. - This token lasts ~1 hour. Regenerate as needed. 3. Connect your Google Drive OAuth2 credentials to allow file upload. 4. Import this workflow into n8n and execute it via form trigger. ## Requirements - **n8n (v1.94.1+)** - A **Google Cloud project** with: - Vertex AI API enabled - Billing enabled - A way to get **Access Token** `gcloud auth print-access-token` - A **Google Drive OAuth2 credential** connected to n8n ## How to customize the workflow - You can modify the - `durationSeconds` - `aspectRatio` - `generateAudio` - in the HTTP node to match your use case. - Replace the Google Drive upload node with alternatives like Dropbox, S3, or YouTube upload. - Extend the workflow to add subtitles, audio dubbing, or LINE/Slack alerts. Step-by-step for each major node: Prompt Input → Vertex Predict → Wait → Fetch Result → Convert to File → Upload ## Best Practices Followed - No hardcoded API tokens - Secure: GCP token is input via form, not stored in workflow - All nodes are renamed with clear purpose - All editable config grouped in Set node ## External References - GCP Veo API Docs: https://cloud.google.com/vertex-ai/docs/generative-ai/video/overview ## Disclaimer - This workflow uses official Google Cloud APIs and requires a valid GCP project. - Access token should be generated securely using gcloud CLI. - Do not embed tokens in the workflow itself. ### Notes on GCP Access Token To use the Vertex AI API in n8n securely: 1. Run the following on your local machine or GCP Cloud Shell: ``` gcloud auth login gcloud config set project your-project-id gcloud auth print-access-token ``` 2. Paste the token in the workflow form field `YOUR_ACCESS_TOKEN` when submitting. 3. **Do not hardcode the token** into HTTP nodes or Set nodes - input it each time or use a secure credential vault.
Who's it for
This template is perfect for content creators, AI enthusiasts, marketers, and developers who want to automate the generation of cinematic videos using Google Vertex AI's Veo 3 model. It's also ideal for anyone experimenting with generative AI for video using n8n.
What it does
This workflow:
- Accepts a text prompt and a GCP access token via form.
- Sends the prompt to the Veo 3 (preview model) using Vertex AI's predictLongRunning endpoint.
- Waits for the video rendering to complete.
- Fetches the final result and converts the base64-encoded video to a file.
- Uploads the resulting .mp4 to your Google Drive.
Output
How to set up
-
Enable Vertex AI API in your GCP project: https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com
-
Authenticate with GCP using Cloud Shell or local terminal:
gcloud auth login
gcloud config set project [YOUR_PROJECT_ID]
gcloud auth application-default set-quota-project [YOUR_PROJECT_ID]
gcloud auth print-access-token
- Copy the token and use it in the form when running the workflow.
- This token lasts ~1 hour. Regenerate as needed.
-
Connect your Google Drive OAuth2 credentials to allow file upload.
-
Import this workflow into n8n and execute it via form trigger.
Requirements
- n8n (v1.94.1+)
- A Google Cloud project with: - Vertex AI API enabled - Billing enabled
- A way to get Access Token
gcloud auth print-access-token - A Google Drive OAuth2 credential connected to n8n
How to customize the workflow
-
You can modify the -
durationSeconds-aspectRatio-generateAudio -
in the HTTP node to match your use case.
-
Replace the Google Drive upload node with alternatives like Dropbox, S3, or YouTube upload.
-
Extend the workflow to add subtitles, audio dubbing, or LINE/Slack alerts.
Step-by-step for each major node:
Prompt Input → Vertex Predict → Wait → Fetch Result → Convert to File → Upload
Best Practices Followed
- No hardcoded API tokens
- Secure: GCP token is input via form, not stored in workflow
- All nodes are renamed with clear purpose
- All editable config grouped in Set node
External References
- GCP Veo API Docs: https://cloud.google.com/vertex-ai/docs/generative-ai/video/overview
Disclaimer
- This workflow uses official Google Cloud APIs and requires a valid GCP project.
- Access token should be generated securely using gcloud CLI.
- Do not embed tokens in the workflow itself.
Notes on GCP Access Token
To use the Vertex AI API in n8n securely:
- Run the following on your local machine or GCP Cloud Shell:
gcloud auth login
gcloud config set project your-project-id
gcloud auth print-access-token
- Paste the token in the workflow form field
YOUR_ACCESS_TOKENwhen submitting. - Do not hardcode the token into HTTP nodes or Set nodes - input it each time or use a secure credential vault.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
Content Repurposing Engine
8 hand-picked workflows for $29.00.
That is $3.63 each, vs $9.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related AI workflows
- Launch Your First AI-Powered Chatbot with Actionable Tools$9.99
- Build a WhatsApp Assistant with Memory, Google Suite, Multi-AI, Research, and Imaging$24.99
- Automate AI Video Creation and YouTube Upload with Google Sheets$14.99
- Automate Blog Post Creation and Publishing with GPT, Leonardo AI, and WordPress$14.99
- Automate SEO Keyword Generation with ChatGPT from Google Sheets$3.99
- Email Agent$500.99
More from Jaruphat J.
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.