What Is Happening
Canva acquired remove.bg in 2021 and has now decided to consolidate. The remove.bg standalone site and self-serve API shut down on December 1, 2026 at 09:00 CET. Background removal becomes a Canva feature. API access moves to Leonardo.Ai, which is also under Canva's ownership but is a completely separate service with a different authentication model and asynchronous architecture.
Impact Summary
- POST /v1.0/removebg stops working at 09:00 CET on December 1, 2026
- All remove.bg API keys become invalid — they do not transfer to any new service
- Pay-as-you-go and rollover credits expire with no refund
- Enterprise contracts are unaffected and continue as normal
- The remove.bg website, dashboard, and documentation go offline
The deadline is December 1, 2026 at 09:00 CET. If your integration is not live on a replacement before that time, background removal in your application will start returning errors.
Your Migration Options
There are four practical paths depending on how much migration effort you can invest and what quality and cost trade-offs matter for your use case.
Option 1: ShortPixel — Fastest Migration
ShortPixel's background removal API was designed to be API-compatible with remove.bg. Same endpoint structure, same multipart/form-data input, same response format. For many integrations, the entire migration is replacing the API key and the base URL.
Before (remove.bg)
const FormData = require('form-data');
const fs = require('fs');
const fetch = require('node-fetch');
async function removeBackground(imagePath) {
const formData = new FormData();
formData.append('image_file', fs.createReadStream(imagePath));
formData.append('size', 'auto');
const response = await fetch('https://api.remove.bg/v1.0/removebg', {
method: 'POST',
headers: {
'X-Api-Key': process.env.REMOVEBG_API_KEY,
...formData.getHeaders(),
},
body: formData,
});
if (!response.ok) throw new Error(`remove.bg error: ${response.status}`);
return response.buffer(); // raw PNG bytes
}After (ShortPixel)
const FormData = require('form-data');
const fs = require('fs');
const fetch = require('node-fetch');
async function removeBackground(imagePath) {
const formData = new FormData();
formData.append('image_file', fs.createReadStream(imagePath));
formData.append('size', 'auto');
const response = await fetch('https://api.shortpixel.com/v1.0/removebg', {
method: 'POST',
headers: {
'X-Api-Key': process.env.SHORTPIXEL_API_KEY, // only this changes
...formData.getHeaders(),
},
body: formData,
});
if (!response.ok) throw new Error(`ShortPixel error: ${response.status}`);
return response.buffer();
}For ShortPixel: update your base URL and swap the API key environment variable. The request shape, response format, and error codes are compatible. Verify the exact endpoint URL in ShortPixel's documentation as it may have minor differences.
Option 2: Photoroom API — Best Quality
Photoroom requires more code changes but delivers the best output quality for product photography — especially fine hair, transparent packaging, and reflective surfaces. The API is synchronous, well-documented, and returns the processed image directly.
const FormData = require('form-data');
const fs = require('fs');
const fetch = require('node-fetch');
async function removeBackground(imagePath) {
const formData = new FormData();
formData.append('image_file', fs.createReadStream(imagePath));
const response = await fetch('https://sdk.photoroom.com/v1/segment', {
method: 'POST',
headers: {
'x-api-key': process.env.PHOTOROOM_API_KEY,
...formData.getHeaders(),
},
body: formData,
});
if (!response.ok) {
const err = await response.json();
throw new Error(`Photoroom error: ${err.message}`);
}
return response.buffer(); // PNG with transparent background
}Option 3: Pixian.AI — API-Compatible Alternative
Pixian.AI was built with remove.bg compatibility in mind. The request format is similar and the response is a PNG with a transparent background. Authentication uses HTTP Basic Auth with your API ID and API secret.
const FormData = require('form-data');
const fs = require('fs');
const fetch = require('node-fetch');
async function removeBackground(imagePath) {
const formData = new FormData();
formData.append('image', fs.createReadStream(imagePath));
const credentials = Buffer.from(
`${process.env.PIXIAN_API_ID}:${process.env.PIXIAN_API_SECRET}`
).toString('base64');
const response = await fetch('https://api.pixian.ai/api/v2/remove-background', {
method: 'POST',
headers: {
Authorization: `Basic ${credentials}`,
...formData.getHeaders(),
},
body: formData,
});
if (!response.ok) throw new Error(`Pixian error: ${response.status}`);
return response.buffer();
}Option 4: Leonardo.Ai — The Official Path (Requires Full Rework)
Leonardo.Ai is the route Canva points remove.bg users toward. The architecture is fundamentally different: asynchronous job model with Bearer token auth and presigned S3 uploads. It is not a drop-in replacement and requires a meaningful integration rewrite. Plan for a few hours of development work minimum.
const fs = require('fs');
const fetch = require('node-fetch');
async function removeBackground(imagePath) {
// Step 1: Request a presigned upload URL from Leonardo
const initResponse = await fetch('https://cloud.leonardo.ai/api/rest/v1/init-image', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LEONARDO_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ extension: 'png' }),
});
const { uploadInitImage } = await initResponse.json();
const { url: uploadUrl, id: imageId, fields } = uploadInitImage;
// Step 2: Upload the image to S3 using the presigned URL
const FormData = require('form-data');
const formData = new FormData();
Object.entries(fields).forEach(([k, v]) => formData.append(k, v));
formData.append('file', fs.createReadStream(imagePath));
await fetch(uploadUrl, { method: 'POST', body: formData });
// Step 3: Submit background removal job
const jobResponse = await fetch('https://cloud.leonardo.ai/api/rest/v1/variations/nobg', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LEONARDO_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ id: imageId }),
});
const { sdGenerationJob } = await jobResponse.json();
const generationId = sdGenerationJob.variationId;
// Step 4: Poll for result
let resultUrl = null;
while (!resultUrl) {
await new Promise((r) => setTimeout(r, 2000));
const statusResponse = await fetch(
`https://cloud.leonardo.ai/api/rest/v1/variations/${generationId}`,
{ headers: { Authorization: `Bearer ${process.env.LEONARDO_API_KEY}` } }
);
const status = await statusResponse.json();
if (status.generated_image_variation_generic?.[0]?.status === 'COMPLETE') {
resultUrl = status.generated_image_variation_generic[0].url;
}
}
// Step 5: Fetch the resulting image
const imageResponse = await fetch(resultUrl);
return imageResponse.buffer();
}Leonardo.Ai charges approximately $0.10 per image. If your volume is high, compare this against the total cost across alternatives before committing to the official migration path.
Option 5: rembg — Self-Hosted, No Per-Image Cost
rembg is an open source Python package that runs ISNET and U2Net background removal models locally. Wrap it in a FastAPI service and call it from your existing application. No API key, no per-image cost, no dependency on a third-party service.
from fastapi import FastAPI, UploadFile, File
from fastapi.responses import Response
from rembg import remove
from PIL import Image
import io
app = FastAPI()
@app.post("/remove-background")
async def remove_background(image_file: UploadFile = File(...)):
input_bytes = await image_file.read()
output_bytes = remove(input_bytes)
return Response(content=output_bytes, media_type="image/png")FROM python:3.11-slim
RUN pip install rembg[gpu] fastapi uvicorn python-multipart Pillow
COPY rembg_service.py .
CMD ["uvicorn", "rembg_service:app", "--host", "0.0.0.0", "--port", "8080"]Call this service from your existing application exactly as you would call remove.bg — POST the image, receive PNG bytes. The only change is the URL and removing the API key header.
Environment Variables to Update
# Remove these
REMOVEBG_API_KEY=...
# Add based on your chosen alternative
SHORTPIXEL_API_KEY=... # Option 1 — ShortPixel
PHOTOROOM_API_KEY=... # Option 2 — Photoroom
PIXIAN_API_ID=... # Option 3 — Pixian.AI
PIXIAN_API_SECRET=... # Option 3 — Pixian.AI
LEONARDO_API_KEY=... # Option 4 — Leonardo.Ai
# Option 5 — rembg: no key needed, update the endpoint URL onlyRecommended Migration Checklist
- 1Find every call to remove.bg in your codebase — search for remove.bg, X-Api-Key, and REMOVEBG
- 2Pick your alternative and create an account to get credentials
- 3Update the integration code using the examples above
- 4Run your test suite against a batch of representative images and compare output quality
- 5Deploy to staging and validate end-to-end before cutover
- 6Deploy to production before December 1, 2026 at 09:00 CET
- 7Remove REMOVEBG_API_KEY from all environments after cutover
Do not wait until November 30. Deployment pipelines, staging validation, and unexpected edge cases take time. If you start today you have a comfortable window. If you start the day before the deadline, you do not.