Templates / Automatically replace and relight the background of any image using APImage

Automatically replace and relight the background of any image using APImage

Ready for 3.0

by Gegenfeld ✓ · 353 views · created 2025-09-15 · Content Creation, Multimodal AI

Ready 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.

What this workflow does

This workflow has 4 nodes and runs when someone submits an n8n form (“APImage Replace Background”). Along the way it connects Google Drive. It also calls apimage.org over HTTP.

How it runs

Trigger: When someone submits an n8n form (“APImage Replace Background”).

  1. APImage API (HTTP Request): calls apimage.org (POST)
  2. Download Image (HTTP Request): calls an HTTP API
  3. Store the output image (node can be exchanged) (Google Drive): uses Google Drive

Services it uses

Google Drive

HTTP calls to: apimage.org

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (3)

From the author

This workflow takes an image URL and a description of the desired background, then uses the APImage AI API to produce a high-quality image, preserving the subject and applying a natural-looking new background. Example Result Here you can see a…

Excerpt from Gegenfeld's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.