The remove.bg API shutdown is scheduled for December 1, 2026. If your application removes backgrounds automatically, the transition deserves more attention than simply finding another website. Your backend may depend on a particular image format, response structure, or processing rate. Changing any of these can break the next step in your workflow.
The official API page directs developers toward Leonardo.Ai. That is a sensible starting point for migration, but it is not the only architecture worth considering. Start by separating automated processing from the manual editing tasks your team actually performs.
What the remove.bg API shutdown means for developers
Check the official shutdown FAQ and your own service agreement before changing production systems. Customers with negotiated enterprise contracts should confirm their arrangements with their account manager rather than assume that self-service timelines apply to them.
Look beyond the main application. A nightly product import, a CMS extension or an automation workflow may use the same API credentials. Even an internal spreadsheet automation can depend on an image service that nobody has reviewed for months.
Create an inventory with the owner, approximate daily image volume, expected output format and business impact of each integration. Prioritize anything that blocks customers from publishing or buying products.

How to migrate to the Leonardo.Ai API
Leonardo provides synchronous and asynchronous processing. For a small request-and-response application, synchronous processing is the natural starting point. A queue-based service may benefit from asynchronous jobs.
Update the request and response handling
The Leonardo migration guide describes a new endpoint, bearer-token authentication and JSON requests. The model identifier is remove-bg. A successful response supplies structured result information rather than the old default binary image response.
Put the new integration behind an adapter in your application. Let the adapter return your existing internal image object, so downstream thumbnail generators and storage services do not need to know which provider processed the file.
Do not assume that every legacy option has an equivalent. In particular, applications expecting a ZIP archive need a different output strategy. Choose a supported image format explicitly. Review temporary output URLs and the provider's storage options before processing customer photos.

Test before changing production traffic
Use a small, representative collection of source images. A clothing marketplace might include lace, dark garments, white shoes and handbags with open handles. A portrait service needs hair, glasses and difficult lighting. Keep the original files so you can compare every result with the source.
Check output dimensions, alpha transparency, edge color, file size and processing time. Test malformed files and expired credentials as well as successful requests. Update error handling so that a valid HTTP response containing an application error cannot be mistaken for a completed image.

Compare remove.bg API alternatives by architecture
There are three useful paths. The right choice depends on who initiates processing and where the images need to travel.
| Approach | Best fit | Main trade-off |
|---|---|---|
| Leonardo.Ai API | Existing automated integrations seeking the official migration route | New request handling, billing and service limits |
| Another hosted image API | Teams comparing providers or adding redundancy | Separate quality, privacy and integration evaluation |
| Self-hosted segmentation model | Teams needing infrastructure or model control | Hardware, deployment, licensing and maintenance |
| Browser-based background removal | People editing individual images interactively | Not a replacement for unattended server-to-server jobs |
For hosted alternatives, request current documentation, a test account and limits appropriate to your expected workload. For self-hosting, evaluate model licenses separately from the inference runtime. An open-source runtime does not automatically grant commercial rights to every model available for it.

Estimate the real cost of background removal
Compare costs per usable result, not simply per request. Suppose a catalog needs 20,000 accepted images each month and your test suggests that 5% of attempted images require another paid call. Under a simplified one-retry assumption, you would budget roughly 21,000 calls. At a hypothetical $0.10 per call, that is $2,100 before storage, transfer and other processing charges. This is an illustrative calculation, not a provider quote.
Include engineering time, failed requests, peak capacity and manual corrections. Self-hosting replaces some usage charges with infrastructure and operational costs; it does not make processing free.
When a free online background remover makes more sense
Not every image request belongs in a backend pipeline. A merchant correcting one product listing or a designer preparing a transparent portrait may simply need an editor.
RemoveBG.Photo offers an interactive background removal tool for this kind of work. Use the web tool to prepare a cutout, inspect the edges and choose a suitable background. Keep an editable or transparent version when you expect to reuse the subject later.
This is a manual workflow option, not a claim that RemoveBG.Photo offers a public API compatible with remove.bg. If you maintain an unattended batch job, choose and test a documented programmatic integration instead. Separating manual exceptions from automated jobs can also help your team understand which images genuinely require human review.

A practical migration checklist
- Inventory applications, plugins and scheduled jobs using the old API.
- Confirm your shutdown timeline and contract terms.
- Create new credentials and store them outside source control.
- Build a provider adapter and verify image formats and error handling.
- Compare output quality and failure rates on representative images.
- Review data retention, billing, throughput and retry limits.
- Switch a small portion of traffic first, with monitoring and a fallback plan.
- Export needed account records while they are still accessible.
Keep a queue for failed images so that a temporary provider outage does not silently discard customer work. Make retries bounded and avoid duplicate billing wherever your integration supports that protection.
The important distinction is between replacing an API and replacing an editing tool. A documented hosted API or a maintained local inference service can keep automated jobs running. For individual image edits, a browser tool may be all you need.