🎬 Remove image backgrounds with APImage AI: Airtable to Google Drive

497 views · 🎬 Content Creation & Video

Description

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.

Remove Background Images Automated AI n8n workflow.jpg

🧩 Nodes Overview

1. Remove Background (Manual Trigger)

This manual trigger starts the background removal process when clicked.

Customization Options:


2. Get a Record (Airtable)

Retrieves media files from your Airtable “Creatives Library” database.

Required Airtable Structure:

Customization Options:


3. Code (JavaScript Processing)

Processes Airtable records and prepares thumbnail data for background removal.

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:


4. Split Out

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


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:

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.


7. Upload File (Google Drive)

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

Customization Options:


✨ 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:

Output Customization (Right Section)

Modify where processed images are stored:

Processing Customization


📋 Workflow Connections

Remove Background → Get a Record → Code → Split Out → APImage API → Download → Upload File

🎯 Perfect For


📚 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

🔗 Nodes Used

Airtable, HTTP Request, Google Drive

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup