Skip to main content

Remove image backgrounds with APImage AI: Airtable to Google Drive

Workflow preview

Workflow preview
100%
Remove image backgrounds with APImage AI: Airtable to Google Drive preview
Open on n8n.io

Important notice

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

1. Workflow Overview

AI Background Removal Workflow This workflow automatically removes backgrounds from images stored in Airtable using the APImage API πŸ‘₯ , then downloads and saves the processe...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.airtable, n8n-nodes-base.code, n8n-nodes-base.splitout, n8n-nodes-base.httprequest, n8n-nodes-base.googledrive, n8n-nodes-base.manualtrigger

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Remove image backgrounds with APImage AI: Airtable to Google Drive
Workflow name
Remove image backgrounds with APImage AI: Airtable to Google Drive

AI Background Removal Workflow

This workflow automatically removes backgrounds from images stored in Airtable using the APImage API πŸ‘₯, then downloads and saves the processed images to Google Drive. Perfect for batch processing product photos, portraits, or any images that need clean, transparent backgrounds. The source (Airtable) and the storage (Google Drive) can be changed to any service or database you want/use.

🧩 Nodes Overview

1. Remove Background (Manual Trigger)

This manual trigger starts the background removal process when clicked.

Customization Options:

  • Replace with Schedule Trigger for automatic daily/weekly processing
  • Replace with Webhook Trigger to start via API calls
  • Replace with File Trigger to process when new files are added

2. Get a Record (Airtable)

Retrieves media files from your Airtable "Creatives Library" database.

  • Connects to the "Media Files" table in your Airtable base
  • Fetches records containing image thumbnails for processing
  • Returns all matching records with their thumbnail URLs and metadata

Required Airtable Structure:

  • Table with image/attachment field (currently expects "Thumbnail" field)
  • Optional fields: File Name, Media Type, Upload Date, File Size

Customization Options:

  • Replace with Google Sheets, Notion, or any database node
  • Add filters to process only specific records
  • Change to different tables with image URLs

3. Code (JavaScript Processing)

Processes Airtable records and prepares thumbnail data for background removal.

  • Extracts thumbnail URLs from each record
  • Chooses best quality thumbnail (large > full > original)
  • Creates clean filenames by removing special characters
  • Adds processing metadata and timestamps

Key Features:

// Selects best thumbnail quality
if (thumbnail.thumbnails?.large?.url) {
  thumbnailUrl = thumbnail.thumbnails.large.url;
}

// Creates clean filename
cleanFileName: (record.fields['File Name'] || 'unknown')
  .replace(/[^a-zA-Z0-9]/g, '_')
  .toLowerCase()

Easy Customization for Different Databases:

  • Product Database: Change field mappings to 'Product Name', 'SKU', 'Category'
  • Portfolio Database: Use 'Project Name', 'Client', 'Tags'
  • Employee Database: Use 'Full Name', 'Department', 'Position'

4. Split Out

Converts the array of thumbnails into individual items for parallel processing.

  • Enables processing multiple images simultaneously
  • Each item contains all thumbnail metadata for downstream nodes

5. APImage API (HTTP Request)

Calls the APImage service to remove backgrounds from images.

API Endpoint:

POST https://apimage.org/api/ai-remove-background

Request Configuration:

  • Header: Authorization: Bearer YOUR_API_KEY
  • Body: image_url: {{ $json.originalThumbnailUrl }}

βœ… Setup Required:

  1. Replace YOUR_API_KEY with your actual API key
  2. Get your key from APImage Dashboard πŸ‘₯

6. Download (HTTP Request)

Downloads the processed image from APImage's servers using the returned URL.

  • Fetches the background-removed image file
  • Prepares image data for upload to storage

7. Upload File (Google Drive)

Saves processed images to your Google Drive in a "bg_removal" folder.

Customization Options:

  • Replace with Dropbox, OneDrive, AWS S3, or FTP upload
  • Create date-based folder structures
  • Use dynamic filenames with metadata
  • Upload to multiple destinations simultaneously

✨ How To Get Started

  1. Set up APImage API:

    • Double-click the APImage API node
    • Replace YOUR_API_KEY with your actual API key
    • Keep the Bearer prefix
  2. Configure Airtable:

    • Ensure your Airtable has a table with image attachments
    • Update field names in the Code node if different from defaults
  3. Test the workflow:

    • Click the Remove Background trigger node
    • Verify images are processed and uploaded successfully

πŸ”— Get your API Key πŸ‘₯


πŸ”§ How to Customize

Input Customization (Left Section)

Replace the Airtable integration with any data source containing image URLs:

  • Google Sheets with product catalogs
  • Notion databases with image galleries
  • Webhooks from external systems
  • File system monitoring for new uploads
  • Database queries for image records

Output Customization (Right Section)

Modify where processed images are stored:

  • Multiple Storage: Upload to Google Drive + Dropbox simultaneously
  • Database Updates: Update original records with processed image URLs
  • Email/Slack: Send processed images via communication tools
  • Website Integration: Upload directly to WordPress, Shopify, etc.

Processing Customization

  • Batch Processing: Limit concurrent API calls
  • Quality Control: Add image validation before/after processing
  • Format Conversion: Use Sharp node for resizing or format changes
  • Metadata Preservation: Extract and maintain EXIF data

πŸ“‹ Workflow Connections

Remove Background β†’ Get a Record β†’ Code β†’ Split Out β†’ APImage API β†’ Download β†’ Upload File

🎯 Perfect For

  • E-commerce: Batch process product photos for clean, professional listings
  • Marketing Teams: Remove backgrounds from brand assets and imagery
  • Photographers: Automate background removal for portrait sessions
  • Content Creators: Prepare images for presentations and social media
  • Design Agencies: Streamline asset preparation workflows

πŸ“š Resources


⚑ Processing Speed: Handles multiple images in parallel for fast batch processing
πŸ”’ Secure: API keys stored safely in n8n credentials
πŸ”„ Reliable: Built-in error handling and retry mechanisms

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 - Sticky Note

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

Block 2 - Sticky Note1

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

Block 3 - Get a record

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

Block 4 - Code

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

Block 5 - Split Out

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

Block 6 - Download

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

Block 7 - Upload file

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

Block 8 - APImage API

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

Block 9 - Remove Background

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

Block 10 - Sticky Note3

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

Block 11 - Sticky Note4

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

Block 12 - Sticky Note5

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

Block 13 - Sticky Note6

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

Block 14 - Sticky Note2

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

3. Summary Table

Workflow Remove image backgrounds with APImage AI: Airtable to Google Drive
Complexity intermediate
Nodes 14
Categories Content Creation, Multimodal AI
Author Gegenfeld
Published 25 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6457/6457.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 Remove image backgrounds with APImage AI: Airtable to Google Drive do?

AI Background Removal Workflow This workflow automatically removes backgrounds from images stored in Airtable using the APImage API πŸ‘₯ , then downloads and saves the processe...

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.