跳到正文
DEV Community· Vladimir Grigoryan·· 6 小時前AI 評分45

remove.bg API 將於 12 月 1 日停止服務:更改一個 URL 保留程式碼

The remove.bg API shuts down on December 1: keep your code by changing one URL

AI 導讀

remove.bg 的獨立網站及自助 API 將於 2026 年 12 月 1 日關閉,屆時相關 API 呼叫及其 npm、PyPI 套件、CLI 和外掛程式都會停止運作。作者建立的 Cutmatte API 接受相同請求,遷移需更改 URL 並加入 X-Api-Key 標頭;34 項相容性檢查全部通過。Cutmatte 不支援 3D 或汽車陰影,建議先用免費預覽測試常用圖片。

正文

Vladimir Grigoryan

remove.bg's standalone site and self-serve API close on 1 December 2026. Every call to https://api.remove.bg/v1.0/removebg stops working that day, including the npm and PyPI wrappers, remove.bg's CLI and the shop plugins built on it.

I built Cutmatte, an API that takes the same requests. Migration is two changes:

- https://api.remove.bg/v1.0/removebg
+ https://api.cutmatte.com/v1.0/removebg
  X-Api-Key: your Cutmatte key

Try it with a free preview:

curl -H "X-Api-Key: $CUTMATTE_API_KEY" \
     -F "image_file=@photo.jpg" -F "size=preview" \
     -o result.png https://api.cutmatte.com/v1.0/removebg

What stays the same

Endpoints, parameters (size, type, format, crop, scale, position, bg_color, bg_image_url, roi, channels, shadow_type=drop), response formats (PNG, JPG, WebP, ZIP, JSON base64), headers and error codes. Tested with the npm remove.bg 1.3.0 package, PyPI removebg 0.4, remove.bg's CLI and the samples from its API page: 34 of 34 checks pass.

What is different

No 3D or car shadows (a documented 400), type=auto reports other, and the first request after a quiet period takes 15–35 s while a GPU starts, so use a 60 s timeout. Results differ from photo to photo: run your own typical images through the free previews (50 a month) before you switch production.

Checklist before 1 December

  1. Search code, env vars, CI secrets and no-code tools for api.remove.bg.
  2. Record your remaining remove.bg credits: a screenshot is enough for free Cutmatte credits, up to 1,000.
  3. Download invoices from your remove.bg account while you can.
  4. Point one environment at the new URL and run your usual images through it.

Guide with Node.js, Python, PHP and Ruby examples: https://cutmatte.com/migrate/

來源:DEV Community · dev.to