Skip to main content

Create videos with AI-generated backgrounds using Gemini and VideoBGRemover

Workflow preview

Workflow preview
100%
Create videos with AI-generated backgrounds using Gemini and VideoBGRemover preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automated workflow that generates custom AI image backgrounds from text prompts using Gemini's Nano Banana (native image generation), removes video backgrounds, and composites videos on AI generate...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.merge, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.googledrive

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Paul Roussel.

Original n8n.io source

1.1 Workflow description

Title
Create videos with AI-generated backgrounds using Gemini and VideoBGRemover
Workflow name
Create videos with AI-generated backgrounds using Gemini and VideoBGRemover

Automated workflow that generates custom AI image backgrounds from text prompts using Gemini's Nano Banana (native image generation), removes video backgrounds, and composites videos on AI-generated scenes. Create any background you can imagine without needing stock images.

How it works

Describe background: Provide video URL and text prompt describing desired background scene (e.g., "modern office with city skyline at golden hour") • AI generates image: Gemini creates a background image from your prompt in ~10-20 seconds • Upload to Drive: Generated background is saved to Google Drive and made publicly accessible • Remove & composite: Video background is removed and composited on AI-generated scene with centered template • Save final video: Completed video is uploaded to Google Drive with shareable link

Set up steps

⏱️ Total setup time: ~5 minutes

Get Gemini API Key (1 min): Visit https://aistudio.google.com/apikey, create new API key, add to n8n Settings → Variables as GEMINI_KEYGet VideoBGRemover API Key (2 min): Visit https://videobgremover.com/n8n, sign up, add to n8n as VIDEOBGREMOVER_KEYConnect Google Drive (~2 min): Click "Save Background Image to Drive" node, click "Connect", authorize n8n

Use cases:

  • Marketing videos with custom branded environments tailored to your message
  • Product demos with unique AI-generated backgrounds that match your product aesthetic
  • Social media content with creative scenes you can't find in stock libraries
  • AI avatars placed in AI-generated worlds
  • Presentations with custom backgrounds generated for specific topics
  • A/B testing different background variations for the same video

Pricing:

  • Gemini: ~$0.03 per generated image
  • VideoBGRemover: $0.50-$2.00 per minute of video
  • Total: ~$0.53-$2.03 per video

Triggers: Webhook (for automation) or Manual (for testing)

Processing time: Typically 5-7 minutes total

Prompt tips: Be descriptive and specific. Instead of "office," try: "A modern minimalist office with floor-to-ceiling windows overlooking a city skyline at golden hour. Warm sunlight, polished concrete floors, sleek wooden desks, green plants."

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - 📋 Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - 🔑 API Key Setup

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - 📥 Inputs

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - 🎨 Nano Banana

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - 🔄 Processing

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - 💾 Google Drive

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - 🚀 Usage

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Webhook Trigger

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 1.1

Block 9 - Manual Trigger

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 10 - Section: Gemini

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - 📸 Input

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Extract Webhook Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 13 - Sample Inputs (Edit Here)

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 14 - Merge Triggers

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 2.1

Block 15 - 1. Generate Background Image (Gemini)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 16 - Extract Image Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - 2. Save Background Image to Drive

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 18 - 3. Make Background Image Public

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 19 - 📸 Generated

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Section: VideoBGRemover

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - 4. Create Job (Upload Video)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 22 - 5. Start Composition (AI Background)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 23 - 6. Check Job Status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 24 - Is Complete?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Showing the first 24 of 35 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Create videos with AI-generated backgrounds using Gemini and VideoBGRemover
Complexity advanced
Nodes 35
Categories Content Creation, Multimodal AI
Author Paul Roussel
Published 17 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9821/9821.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create videos with AI-generated backgrounds using Gemini and VideoBGRemover do?

Automated workflow that generates custom AI image backgrounds from text prompts using Gemini's Nano Banana (native image generation), removes video backgrounds, and composites videos on AI generate...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.