Remove image backgrounds with APImage AI: Airtable to Google Drive
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (6)
- Airtable
n8n-nodes-base.airtable - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Google Drive
n8n-nodes-base.googleDrive - Manual Trigger
n8n-nodes-base.manualTrigger
What it does
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(fileId:1864) 🧩 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: javascript // 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 YOURAPIKEY - Body: imageurl: {{ $json.originalThumbnailUrl }} ✅ Setup Required: 1. Replace YOURAPIKEY 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 "bgremoval" 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 YOURAPIKEY 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 w