Dev.to WebDev 🛠 Dev 👁 0 📖 2 min read

remove.bg API Shuts Down in 4 Days (Dec 1): How to Migrate in 1 Line Without Rewriting for Async Polling

Canva is permanently shutting down the standalone remove.bg website and API on December 1, 2026 at 9:00 CET — just 4 days from now. If you maintain an e-commerce pipeline, SaaS workflow, or script that calls https://api

Canva is permanently shutting down the standalone remove.bg website and API on December 1, 2026 at 9:00 CET — just 4 days from now.

If you maintain an e-commerce pipeline, SaaS workflow, or script that calls https://api.remove.bg/v1.0/removebg, Canva's official migration notice points you toward Leonardo.Ai.

There is one major catch for backend engineers: Leonardo.Ai is not a drop-in replacement.

Why the official migration breaks existing code

The classic remove.bg API is a single synchronous POST:

  1. Send image_file, image_file_b64, or image_url with X-Api-Key.
  2. Receive raw transparent PNG bytes directly in the HTTP response.

Migrating to an async platform requires rewriting your integration into a multi-step state machine:

  1. Request a presigned upload URL and upload the source image to S3.
  2. Trigger a generation job and store the job_id.
  3. Poll an endpoint in a retry loop until status completes.
  4. Download the final cutout from a CDN URL.

If you're four days away from a hard shutdown and don't want to refactor and re-test working production workers, you have a much simpler option.

A 1-Line Protocol-Compatible Drop-In

Background Remover API was built to match the remove.bg POST /v1.0/removebg wire specification:

  • Same endpoint: POST /v1.0/removebg
  • Same auth header: X-Api-Key
  • Same parameters: image_file, image_file_b64, image_url, size
  • Same response headers: X-Width, X-Height, X-Credits-Charged
  • Same synchronous PNG stream: returns 32-bit RGBA PNG bytes in a single HTTP request.

In most codebases, migration is literally changing one environment variable or endpoint URL:

- REMOVE_BG_URL=https://api.remove.bg/v1.0/removebg
+ REMOVE_BG_URL=https://backgroundremoverapi.com/v1.0/removebg

Verify from your terminal in 10 seconds (no signup)

You can verify response headers, PNG output, and edge quality right now with the public demo key:

curl -H "X-Api-Key: live_demo_key" \
  -F "[email protected]" \
  -o out.png \
  https://backgroundremoverapi.com/v1.0/removebg

Python & Node.js Snippets

Python (requests):

import os
import requests

with open("product.jpg", "rb") as f:
    r = requests.post(
        "https://backgroundremoverapi.com/v1.0/removebg",
        headers={"X-Api-Key": os.environ["BG_REMOVER_API_KEY"]},
        files={"image_file": f},
        timeout=30,
    )
r.raise_for_status()
with open("product-nobg.png", "wb") as out:
    out.write(r.content)

Node.js (native fetch):

import fs from 'node:fs';

const form = new FormData();
form.append('image_file', new Blob([fs.readFileSync('product.jpg')]), 'product.jpg');

const res = await fetch('https://backgroundremoverapi.com/v1.0/removebg', {
  method: 'POST',
  headers: { 'X-Api-Key': process.env.BG_REMOVER_API_KEY },
  body: form,
});

if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
fs.writeFileSync('product-nobg.png', Buffer.from(await res.arrayBuffer()));

We also published runnable migration templates in the open-source companion repo: remove-bg-drop-in-alternative.

Need a browser tool instead of an API?

If your team only needs to process product photos manually in batches, there is also a free Bulk Background Remover web tool with multi-file upload and one-click ZIP export.

Every new developer account starts with 100 free credits (no credit card required). Check the full remove.bg migration guide for SDK examples and header details.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.