Skip to content

Blog

What to use instead of the remove.bg API after 1 December 2026

remove.bg closes its website and accounts on 1 December 2026 at 09:00 CET, and its self-service API stops accepting requests the same day; background removal for developers moves to Leonardo.Ai. Unless you hold an enterprise contract, every integration that calls remove.bg needs a new key and a new endpoint either way. If your n8n workflow, script or AI agent removes backgrounds today, you can move it to ImageStep's remove_bg step: one API key, a transparent PNG back, the exact price from a dry run before the batch runs, and trim, white-background flatten and resize in the same job.

What stops on 1 December

  • The remove.bg website and your account: they stay reachable until 09:00 CET that day and not after it, so export the credit usage report and the invoices from your Account page before then.
  • Unused pay-as-you-go credits expire on 1 December 2026.
  • Monthly and annual subscriptions end automatically at the same moment; unused time on an annual plan is refunded pro rata.
  • The self-service API stops accepting requests. Enterprise API contracts are not affected and continue as normal.
  • The Photoshop plugin and remove.bg's other integrations and plugins are discontinued.

So the question for a self-service API user is not whether to change the code, but which endpoint it should point at next.

The three ways forward

Stay with remove.bg's own successor: Leonardo.Ai

This is the path with the least change in what the cut-outs look like. remove.bg's FAQ says Leonardo.Ai's API uses the same background-removal technology as remove.bg's API, and adds upscaling and scene generation beside it. Leonardo publishes an official migration guide that maps the remove.bg request onto its own, and its synchronous endpoint returns the processed image in a single request, with no polling. It keeps most of remove.bg's knobs: size up to 50MP, a type hint (person, product, car, animal and more), bg_color, crop and shadow options. If your output has been tuned to remove.bg's edges, or you need very large cut-outs, start here.

What still changes, according to that guide: the endpoint becomes https://cloud.leonardo.ai/api/rest/v2/generationssync, the key moves from X-Api-Key to Authorization: Bearer, the request is JSON only — no multipart/form-data upload — with "model": "remove-bg" and the image under parameters.guidances.image_reference, and the response is always JSON with a URL (results[0].url) rather than the image bytes. format=zip and format=auto are not supported, and Leonardo keeps the input and the output in your Leonardo library and CDN unless you send ephemeral: true. Both the code that sends the request and the code that reads the answer change.

Switch to another background-removal API

The other choices fall into two kinds: hosted background-removal APIs, and open-weight segmentation models you run on your own GPU. Whichever you look at, hold it to the four things your remove.bg calls depend on: the largest input and output it handles, whether it answers with bytes or a URL, what a failed image costs, and how it does on your hardest images — hair, glass, fine product edges. Twenty of your own worst images tell you more than any sample gallery.

Move the step to ImageStep

ImageStep is the image step for automations and agents. Background removal is one op in a catalogue that also resizes, converts, trims and flattens, behind one API key, over REST, the SDKs, the CLI, an MCP server and a verified n8n node. remove_bg cuts the subject out and returns a transparent PNG. Today it runs Bria RMBG 2.0 by default; model picks any other model in the background_removal category that GET /api/v1/ai-models lists.

Where it is the weaker fit, said plainly: the default model is handed at most 2048 px on the long edge and a larger photo is scaled down first, so if you depend on full-resolution or 50-megapixel cut-outs, Leonardo is closer to what you have. remove_bg has no type or shadow options. And it always runs as a job: one call that can wait for a single image, then a second request for the bytes. The remove background reference has every parameter and limit.

The same call, before and after

remove.bg's request today, as its API documentation writes it — a multipart upload with the key in X-API-Key, and the PNG bytes as the response:

curl -H 'X-API-Key: INSERT_YOUR_API_KEY_HERE' \
     -F 'image_file=@/path/to/file.jpg' \
     -F 'size=auto' \
     -f https://api.remove.bg/v1.0/removebg -o no-bg.png

The ImageStep version is three requests: store the image, run remove_bg, read the PNG.

API=https://api.imagestep.dev

# 1. the bytes are the body; the service stores them as an asset
ID=$(curl -sS -X POST "$API/api/v1/assets/upload" \
  -H "Authorization: ApiKey $IMAGESTEP_API_KEY" \
  -H "Content-Type: image/jpeg" \
  --data-binary @file.jpg | jq -r '.data.id')

# 2. cut the subject out; "wait" holds the response until the job is done (60 s at most)
OUT=$(curl -sS -X POST "$API/api/v1/jobs" \
  -H "Authorization: ApiKey $IMAGESTEP_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"op":"remove_bg","assetIds":["'"$ID"'"],"wait":30}' | jq -r '.data.items[0].resultAssetId')

# 3. the transparent PNG: a redirect to a signed URL, valid five minutes
curl -sSL "$API/api/v1/assets/$OUT/content" -H "Authorization: ApiKey $IMAGESTEP_API_KEY" -o no-bg.png

A one-image job that finishes inside wait answers 200 with the finished job, the cut-out's asset id on its item; one still running answers 202 with the same handle, and GET /api/v1/jobs/{id}?wait=30 waits again. Price a whole batch before you send it — a dry run creates nothing and uploads nothing:

curl -sS -X POST "$API/api/v1/jobs?dryRun=true" \
  -H "Authorization: ApiKey $IMAGESTEP_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"op":"remove_bg","imageCount":500}'

The answer carries estimatedCredits and sufficientCredit. What a credit costs is on the pricing page.

Where each remove.bg parameter goes

remove.bgImageStep
X-Api-Key headerAuthorization: ApiKey … header
image_filePOST /api/v1/assets/upload with the bytes as the body
image_urlPOST /api/v1/assets/from-url with {"urls": […]} — the service fetches it
sizeno parameter: the default model works at up to 2048 px on the long edge
formata convert step — webp, jpeg, png, avif, gif or tiff
bg_colora flatten step with background (any CSS colour, #ffffff by default)
cropa trim step, which cuts away the uniform border around the cut-out
image bytes in the responsethe job's resultAssetId; the bytes from GET /api/v1/assets/{id}/content, or publish the asset for a CDN URL
X-Credits-Charged headerthe job's actualCredits, and the price beforehand from ?dryRun=true

One job for the whole packshot

A remove.bg call usually has a few more steps around it: crop to the subject, put it on white, size it for the storefront. On ImageStep those are steps of the same job, not more round trips — remove_bg, then trim, resize and flatten, which run as one processing pass after the model call:

curl -sS -X POST "$API/api/v1/jobs" \
  -H "Authorization: ApiKey $IMAGESTEP_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"steps":[{"op":"remove_bg"},{"op":"trim"},{"op":"resize","parameters":{"width":1200,"height":1200,"fit":"contain","background":"#ffffff"}},{"op":"flatten","parameters":{"background":"#ffffff"}}],"assetIds":["'"$ID"'"],"wait":30}'

resize with fit: contain fits the cut-out inside a 1200 × 1200 box without enlarging a smaller one and pads it to the exact box in its background colour; flatten puts the transparency around the subject on white. The dry run of the same body prices it step by step. Save the steps as a preset when you will run them again, and see the recipes for pipelines built the same way. A batch is still one job — up to 10,000 asset ids in assetIds — and an image that fails inside it fails on its own, with an error code and a retryable flag, and is not charged.

In your automation

n8n

  1. Install the node: on n8n Cloud and in recent editors, + on the canvas, search ImageStep in the nodes panel, pick the one with the verified badge, Install. Self-hosted, Settings → Community Nodes → Install with n8n-nodes-imagestep works too.
  2. Create an ImageStep API credential with your key.
  3. Put the ImageStep node where the remove.bg call was: Resource Operation, Operation Run, Op remove_bg (the default), Input Binary File — the binary the previous node produced.
  4. Turn on Store Result and Download Outputs: remove_bg runs as a job, and Download Outputs puts the PNG back on the item's data binary property for the next node.
  5. Before the first large run, switch on Dry Run once and read the estimate.

The n8n node reference lists every field.

Make

There is no ImageStep app in Make. Make's HTTP module calls the same REST endpoints as the curl above: upload or fetch the image, POST /api/v1/jobs with wait, then read the content.

AI agents over MCP

An agent connected to ImageStep's MCP server calls the transform tool with {"op": "remove_bg", "urls": ["https://…"]}; the tool ingests the URL itself, so there is no upload step to write. The MCP docs cover the hosted and local servers.

Before the cut-over

  1. Export your remove.bg credit usage report and invoices before 09:00 CET on 1 December.
  2. Run twenty of your hardest images through the step you picked and compare the edges with what remove.bg gave you.
  3. Price the real batch with a dry run.
  4. Find every place that reads the remove.bg response as raw bytes or reads X-Credits-Charged; both change on Leonardo.Ai and on ImageStep alike.