Moving off the remove.bg API before 1 December 2026
remove.bg’s self-service API stops accepting requests on 1 December 2026, and its website closes at 9:00am CET that day. The official successor is Leonardo.Ai’s API. If you are re-pointing the integration anyway, this guide maps every remove.bg field to POST /v1/remove-background, shows the code diff, and says plainly when a dedicated cutout service is the cheaper choice.
- WebsiteNo longer available from 1 December 2026 at 9:00am CET.
- Self-service APIStops accepting requests from 1 December 2026.
- Enterprise API contractsNot affected; they continue as normal.
- Unused pay-as-you-go creditsExpire on 1 December 2026.
- Account dataAccessible until 1 December 2026 at 9:00am CET. Export usage reports and invoices before then.
- Photoshop plugin and other integrationsDiscontinued on 1 December 2026.
- Where API users are sentLeonardo.Ai’s API, also part of Canva.
Source: remove.bg FAQ and API documentation, checked 23 November 2026.
Your three options
Most teams on the self-service API end up in one of three places. Only one of them is us, and for a lot of pipelines it is not the right one.
The official path
Leonardo.Ai’s API
remove.bg says Leonardo.Ai uses the same background-removal technology, and Leonardo’s migration guide keeps most remove.bg parameter names. The closest thing to staying put.
No code at all
Canva
For people who used the website by hand, remove.bg’s FAQ points to Canva’s background remover, including bulk removal. Not an API replacement.
A different API
Background removal here
One endpoint, a flat 8 credits, and the same key runs generation, editing, upscaling and conversion, over REST or MCP. Fewer options than remove.bg, and dearer per image. Read the fit section before you pick it.
Field mapping: remove.bg to /v1/remove-background
Left: the remove.bg parameter or header, as named in its OpenAPI specification. Right: what to send or read here, taken from the endpoint reference. “No equivalent” means exactly that.
| remove.bg | What it does there | Here | Notes |
|---|---|---|---|
| Endpoint | POST https://api.remove.bg/v1.0/removebg | POST https://api.imagemcpserver.com/v1/remove-background | — |
| API key header | X-Api-Key: <key> | x-api-key: <key> | The same header name works. Authorization: Bearer <key> is also accepted. |
| Request body | multipart/form-data, JSON or form-urlencoded | JSON (application/json) | — |
| image_url | Source image URL | image | An https URL. |
| image_file_b64 | Base64-encoded file | image | Send it as a data URI: data:image/jpeg;base64,… |
| image_file | Multipart file upload | image | No multipart. Read the file and send it as a base64 data URI. |
| size | preview, full, 50MP or auto | No equivalent | There is no output-resolution setting. |
| format | auto, png, jpg, webp or zip | Always PNG | Need WebP? Chain /v1/convert-format (1 credit). JPEG has no transparency. |
| type, type_level | Foreground type and classification | No equivalent | — |
| crop, crop_margin, roi, scale, position | Crop and place the subject | No equivalent | Trim and position the PNG yourself, for example with sharp. |
| bg_color, bg_image_url, bg_image_file | Add a background | No equivalent | Composite it yourself, or generate a new background with /v1/edit (priced by model). |
| shadow_type, shadow_opacity | Generated shadows | No equivalent | — |
| channels | rgba or alpha matte only | RGBA PNG only | — |
| semitransparency | Toggle semi-transparent regions | No parameter | — |
| Successful response | The image bytes, or JSON with data.result_b64 | JSON with result.imageUrl (hosted PNG) | Add responseFormat: "b64_json" to also get result.b64_json in the same response. |
| Foreground position | X-Foreground-* headers, data.foreground_* | No equivalent | — |
| Result size | X-Width, X-Height headers | No equivalent | Read the dimensions from the PNG. |
| Credits charged | X-Credits-Charged header | deductedCredits in the body | Always 8. userCredits is the balance left. |
| Errors | { errors: [{ code, title, detail }] } | { success: false, error: { type, code, message } } | Failed calls are refunded and report refundedCredits. |
| Rate limit | Up to 500 images per minute, less for large images | 60 requests per 60 seconds per key | A 429 carries Retry-After on both. |
Count the “No equivalent” rows you use
If your integration sends only an image and reads back a transparent PNG, the move is a URL, a header and a response parser. If it leans on size, crop, bg_color, shadows or ZIP output, you would be rebuilding those features yourself, and Leonardo.Ai’s API, which keeps them, is the shorter migration.
The code diff
Three things change in every client: the URL, the body becomes JSON with an image field, and the cutout comes back inside a JSON response rather than as the response body itself.
curl
The response is JSON, so the cutout is a second, unauthenticated download from the hosted URL.
curl -H "X-Api-Key: $REMOVEBG_API_KEY" \ -F "image_url=https://cdn.example.com/shoe.jpg" \ -F "size=auto" \ -f https://api.remove.bg/v1.0/removebg -o no-bg.pngcurl -s -X POST https://api.imagemcpserver.com/v1/remove-background \ -H "x-api-key: $IMAGEMCP_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "image": "https://cdn.example.com/shoe.jpg" }' \ | jq -r '.result.imageUrl' | xargs curl -s -o no-bg.pngNode.js (fetch)
A local file goes up as a base64 data URI. Asking for responseFormat: "b64_json" returns the PNG bytes in the same response, so there is no second request.
import fs from "node:fs"; const form = new FormData();form.append("image_file", await fs.openAsBlob("shoe.jpg"));form.append("size", "auto");const bytes = await fs.promises.readFile("shoe.jpg");const image = `data:image/jpeg;base64,${bytes.toString("base64")}`; const res = await fetch("https://api.remove.bg/v1.0/removebg", {const res = await fetch("https://api.imagemcpserver.com/v1/remove-background", { method: "POST", headers: { "X-Api-Key": process.env.REMOVEBG_API_KEY }, body: form, headers: { "x-api-key": process.env.IMAGEMCP_API_KEY, "Content-Type": "application/json", }, body: JSON.stringify({ image, responseFormat: "b64_json" }),}); if (!res.ok) throw new Error(`${res.status}: ${res.statusText}`);const png = Buffer.from(await res.arrayBuffer());const data = await res.json();if (!data.success) throw new Error(data.error?.message ?? data.message);const png = Buffer.from(data.result.b64_json, "base64");fs.writeFileSync("no-bg.png", png);The cutout is stored, not just returned
Every result is uploaded to Cloudflare R2 and served from a public https URL, including when you ask for base64. If that matters for your images, check the privacy policy before you switch.
The same call from an AI agent
The endpoint is also an MCP tool, remove_background, so a coding agent can cut out an image without you writing the HTTP call at all. Connect once:
claude mcp add --transport http imagemcp \
https://mcp.imagemcpserver.com/mcp \
--header "x-api-key: sk-img-gen-your_key_here"Then ask for the cutout in plain words. The agent sends this, and can chain the result straight into upscale_image or convert_format in the same turn:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "remove_background",
"arguments": { "image": "https://cdn.example.com/shoe.jpg" }
}
}The full setup, including the scope the command writes to, is in the Claude Code guide. Cursor, Copilot and the other clients are on the integrations page.
What a cutout costs
A cutout is a flat 8 credits whatever the image size, and failed calls are refunded. What that is in dollars depends only on how you buy the credits:
| How you buy credits | Price | Credits | Cutouts | Per cutout | Notes |
|---|---|---|---|---|---|
| Testing plan | $5 one-time | 100 | 12 | $0.40 | Credits never expire. No subscription. |
| Starter plan | $20 / month | 250 | 31 | $0.64 | Monthly credits. Unused credits roll over. |
| Pro plan | $50 / month | 750 | 93 | $0.53 | Monthly credits. Unused credits roll over. |
| Enterprise plan | $100 / month | 2,000 | 250 | $0.40 | Monthly credits. Unused credits roll over. |
| 300-credit pack | $10 one-time | 300 | 37 | $0.27 | Never expires. With or without a plan. |
| 800-credit pack | $25 one-time | 800 | 100 | $0.25 | Never expires. With or without a plan. |
| 1,700-credit pack | $50 one-time | 1,700 | 212 | $0.24 | Never expires. With or without a plan. |
| 3,600-credit pack | $100 one-time | 3,600 | 450 | $0.22 | Never expires. With or without a plan. |
| Leonardo.Ai, for comparison | Pay per image | — | — | $0.1047 | From its migration guide, checked 23 November 2026. |
The honest comparison
Per cutout, this costs between 2.1× and 6.1× what Leonardo.Ai lists for the same job ($0.22 on the largest credit pack, $0.64 on the Starter plan). Dedicated background-removal services price for volume, and if cutouts are the whole job, one of them will usually be cheaper per image than we are.
When to switch here, and when not to
Switch here when…
- An AI agent does the work. Claude Code, Cursor or another MCP client calls remove_background as a tool, with no glue code.
- The cutout is one step of several: generate a product shot, cut it out, upscale it, convert it to WebP, all on one key.
- You also need image generation or editing and would rather have one vendor, one bill and one request log.
- Your volume is modest, so the per-image premium is smaller than the cost of running two integrations.
Go elsewhere when…
- Cutouts are the entire pipeline and you run them at volume. Price per image decides it, and a specialist wins.
- You rely on remove.bg options with no equivalent here: output size, crop, background colour, shadows, ZIP or 50-megapixel output.
- You need the result returned without being stored on a public URL.
- You are an Enterprise remove.bg customer. remove.bg says those contracts continue as normal.
Typical fits are catalogue imports and e-commerce product images built by an agent, and assets that start life as a prompt, where the transparent PNG generator makes and cuts out the image in one call.
Migration checklist
The first two steps matter whichever replacement you choose, and both have a hard deadline.
- 1Export what you need from remove.bgUsage reports and invoices are only downloadable until 1 December 2026 at 9:00am CET, according to remove.bg’s FAQ.
- 2Spend or write off pay-as-you-go creditsremove.bg says unused PAYG credits expire on 1 December 2026.
- 3List the parameters you actually sendIf your integration depends on size, crop, bg_color, shadows or ZIP output, the Leonardo.Ai route keeps those parameters and this one does not.
- 4Test on your hardest imagesThe Testing plan ($5, 100 credits) covers 12 cutouts. Use hair, glass and a subject that matches its background, not your easiest product shot.
- 5Swap the request and the response handlingChange the URL and body as in the diff above, then read result.imageUrl or result.b64_json instead of the raw response body.
- 6Watch the credits on the first few hundred callsEach response carries deductedCredits and userCredits. Every successful cutout should show 8.
remove.bg migration questions
When exactly does the remove.bg API stop working?
remove.bg’s FAQ says its standalone website will no longer be available from 1 December 2026 at 9:00am CET, and that the self-service API will stop accepting requests from 1 December 2026. Enterprise API contracts are not affected. Checked 23 November 2026.
What is the official replacement?
remove.bg points API users to Leonardo.Ai, which is also part of Canva, and says it uses the same background-removal technology. Leonardo publishes a migration guide that maps the remove.bg parameters onto its own API. If you want the same model and the same options, that is the closest match.
Is this a drop-in replacement for remove.bg?
No. The image input maps cleanly, but there are no size, crop, shadow or background-colour options, the response is JSON with a hosted URL rather than raw image bytes, and the output is a PNG. The field-mapping table on this page lists every difference.
Is it cheaper than remove.bg or Leonardo.Ai?
No. A cutout here costs 8 credits, which is $0.22 to $0.64 depending on how you buy them. Leonardo.Ai’s migration guide lists background removal at $0.1047 per image. If cutouts are all you need, a dedicated service is the cheaper buy.
Then why would I use it?
When the cutout is one step in a larger job: an AI agent that generates a product shot, cuts it out, upscales it and converts it to WebP, through one API key and one MCP server. The same key reaches every image tool from Claude Code, Cursor or any other MCP client.
Can I test it on my own images first?
Yes. New accounts start with 0 credits. The Testing plan is $5 once for 100 credits, which is 12 cutouts. Run it on your hardest images (hair, glass, a subject that matches its background) before you move any traffic.
Sources & references
- remove.bg — FAQ on the move to Canva and Leonardo.Ai (checked 23 November 2026)
- remove.bg — API documentation (checked 23 November 2026)
- remove.bg — API OpenAPI specification, source of the parameter names (checked 23 November 2026)
- Leonardo.Ai — migrate from the remove.bg API, including per-image pricing (checked 23 November 2026)
- POST /v1/remove-background — full reference
- Plans, credit packs and per-operation credits