AutomationFlowsWeb Scraping › Automated Background Removal From Images with Apimage AI

Automated Background Removal From Images with Apimage AI

ByGegenfeld @gegenfeld on n8n.io

This workflow automatically removes backgrounds from images using the APImage API. Simply provide an image URL, and the workflow will process it through AI-powered background removal, then download the processed image for use in your projects.

Event trigger★★★☆☆ complexity8 nodesHTTP RequestForm Trigger
Web Scraping Trigger: Event Nodes: 8 Complexity: ★★★☆☆ Added:

This workflow corresponds to n8n.io template #6512 — we link there as the canonical source.

This workflow follows the Form Trigger → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "b2a10153-b0c0-4bf9-9cbc-34c27203bbb9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        -40
      ],
      "parameters": {
        "color": 7,
        "width": 1120,
        "height": 220,
        "content": "\n## \u2728 How To Get Started \n1. Double-click the **APImage API** node to open it.\n2. Replace \"_YOUR_API_KEY_\" with your API Key.\n3. Use the **Remove Background** node to submit a request.\n\nNote: You can find your API Key inside the Dashboard of your APImage account. \n\n[Open the Dashboard \ud83e\udc65](https://apimage.org/dashboard)"
      },
      "typeVersion": 1
    },
    {
      "id": "921c8f45-bf0b-421e-80cc-46a10b87d707",
      "name": "APImage Integration",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        80,
        340
      ],
      "parameters": {
        "url": "https://apimage.org/api/ai-remove-background",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "image_url",
              "value": "={{ $json['Image URL'] }}"
            },
            {
              "name": "async",
              "value": "false"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_TOKEN_HERE"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "43f128bc-de3f-4963-be18-a41804a9c23c",
      "name": "Download",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        360,
        340
      ],
      "parameters": {
        "url": "={{ $json.processed_image_url }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "4d65b39a-c0e1-46ac-9f59-b34068a737cb",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        200
      ],
      "parameters": {
        "width": 280,
        "height": 480,
        "content": "### Output Images\nYou can add nodes for any service where you want the images to be stored, e.g.:\n\n- SQLite, MySQL, PostgreSQL, etc.\n- Google Drive, Dropbox, etc.\n- S3 Object Storage, FTP servers, etc.\n- Airtable, Notion, etc.\n- And any other service\n\n\n\n\n\n\n\n\n\n\n\nJust make sure to add those nodes after the \"Download\" node. The default name of the output image files is \"data\". "
      },
      "typeVersion": 1
    },
    {
      "id": "04818f55-b094-46d5-b276-ad6668f78449",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        540
      ],
      "parameters": {
        "color": 4,
        "width": 280,
        "height": 340,
        "content": "You can either use the Form node to manually enter image URLs whose background you want to remove, or connect nodes from any data source that provides image links, such as:\n\n- SQLite, MySQL, PostgreSQL, etc.\n- Google Drive, Dropbox, etc.\n- S3 Object Storage, FTP servers, etc.\n- Airtable, Notion, etc.\n- And any other service"
      },
      "typeVersion": 1
    },
    {
      "id": "2fb0d767-87e1-44f3-b721-3343af43b2b9",
      "name": "Remove Background",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -200,
        340
      ],
      "parameters": {
        "options": {},
        "formTitle": "APImage Remove Background",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Image URL",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Remove backgrounds from images"
      },
      "typeVersion": 2.2
    },
    {
      "id": "af9f1360-5554-4227-9545-9634a31b029b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        200
      ],
      "parameters": {
        "color": 4,
        "width": 280,
        "height": 320,
        "content": "### Input Images\nThis node (Remove Background) can be replaced with any service that provides the input image URLs."
      },
      "typeVersion": 1
    },
    {
      "id": "1cbbaf5c-673a-4032-af30-3b43468c9cb7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        540
      ],
      "parameters": {
        "color": 7,
        "width": 380,
        "height": 140,
        "content": "### Need support?\nIf you're having issues with setting up the APImage API, please contact:\n\n\u2709 [ask@support.apimage.org](mailto:ask@support.apimage.org)"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Remove Background": {
      "main": [
        [
          {
            "node": "APImage Integration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "APImage Integration": {
      "main": [
        [
          {
            "node": "Download",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow automatically removes backgrounds from images using the APImage API. Simply provide an image URL, and the workflow will process it through AI-powered background removal, then download the processed image for use in your projects.

Source: https://n8n.io/workflows/6512/ — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

The Sora 2 API allows seamless generation of CGI ads, turning text prompts into stunning videos. This workflow automates the entire process from video generation to upload, notification, and file shar

Form Trigger, HTTP Request, Email Send +1
Web Scraping

Say goodbye to messy JSON exports. Treat your n8n automations like real software with a built-in CI/CD pipeline.

GitHub, HTTP Request, Form Trigger +2
Web Scraping

Small businesses, consultants, agencies… anyone who bills with PayPal.

Form, Form Trigger, HTTP Request
Web Scraping

Formtrigger Workflow. Uses formTrigger, googleDrive, httpRequest, stopAndError. Event-driven trigger; 28 nodes.

Form Trigger, Google Drive, HTTP Request +1
Web Scraping

Formtrigger Workflow. Uses formTrigger, googleDrive, httpRequest, stopAndError. Event-driven trigger; 28 nodes.

Form Trigger, Google Drive, HTTP Request +1