remove.bg's API is shutting down. Change one line, keep your code.
remove.bg's standalone website and self-serve API end on . The API moves to Leonardo.Ai (a Canva company), which requires changing your integration (Leonardo.Ai's announcement). removebackground.dev accepts the same requests: point your code at our URL, use our key, and you're done.
remove.bg's self-serve API ends
The one line that changes
https://api.remove.bg/v1.0/removebghttps://removebackground.dev/v1.0/removebgSame X-Api-Key header, with your removebackground.dev key. Same parameter names, same response headers, same {"errors": [...]} error format.
Before and after
A typical integration in four languages. The key comes from REMOVEBG_API_KEY, so the only edit is the highlighted URL.
curl -f -H "X-Api-Key: $REMOVEBG_API_KEY" \
-F 'image_file=@photo.jpg' \
-F 'size=auto' \
-o no-bg.png \
https://api.remove.bg/v1.0/removebg
curl -f -H "X-Api-Key: $REMOVEBG_API_KEY" \
-F 'image_file=@photo.jpg' \
-F 'size=auto' \
-o no-bg.png \
https://removebackground.dev/v1.0/removebg
Using Zapier, Make or n8n?
Open the HTTP request step that calls remove.bg (Zapier Webhooks, Make HTTP, n8n HTTP Request), change the URL to https://removebackground.dev/v1.0/removebg and the X-Api-Key value to your removebackground.dev key. Keep every other field as it is.
Parameter compatibility
Everything your remove.bg request sends is accepted. A few options have no effect here, and say so below.
| Parameter | Status | Notes |
|---|---|---|
image_file / image_file_b64 / image_url | Supported | Multipart, urlencoded or JSON bodies. JPG, PNG or WebP up to 25 MB. |
size | Supported | auto, full, 4k and 50MP give the original resolution (up to 25 MP); preview, small and regular ≈ 0.25 MP; medium 1.5 MP; hd 4 MP. Always 1 credit. |
format | Supported | auto (PNG if transparent, else JPG), png, jpg, webp and zip (color.jpg + alpha.png). |
crop / crop_margin | Supported | px or % of the subject, 1–4 CSS-style values ("10% 20%" = vertical, horizontal); at most 500px or 50% per side. |
roi | Supported | "x1 y1 x2 y2" in px or %: only the subject inside the region is kept. |
scale / position | Supported | scale 10%–100% or original; position center, original or "x% y%". |
channels | Supported | rgba (cut-out) or alpha (grayscale mask). |
bg_color | Supported | Hex with or without # (81d4fa), or a colour name. An 8-digit hex keeps the colour and drops its alpha. |
bg_image_url / bg_image_file | Supported | The cut-out is composited over your background image, cover-fit to the output size. |
Accept: application/json | Supported | Returns { data: { result_b64, foreground_top, foreground_left, foreground_width, foreground_height } }. |
type / type_level | Accepted, ignored | The subject is detected automatically; X-Type is always "other". |
semitransparency | Accepted, ignored | Soft edges and semi-transparent areas come from the model's matte as they are. |
shadow_type / shadow_opacity / add_shadow | Accepted, ignored | No shadows are added. |
Long-running requests | Difference | We wait up to 110 seconds; if an image isn't ready by then you get a retryable 503 (not charged unless it finished). |
Response headers
A successful call answers with the image bytes (image/png, image/jpeg, image/webp or application/zip) and these headers. Send Accept: application/json to get result_b64 instead.
| Header | Meaning |
|---|---|
X-Width / X-Height | Size of the result in pixels. |
X-Credits-Charged | Credits this image used: always 1 (failed images cost 0). |
X-Type | Always "other" (subject detection is automatic). |
X-Foreground-Top / -Left / -Width / -Height | Bounding box of the subject in the result, in pixels. |
X-Request-ID | Echoes your X-Request-ID, or a generated id. Extra. |
X-Matte-Confidence / X-Matte-Ambiguous-Ratio | How clean the mask is (0–1), and the share of soft pixels. Extra: useful to flag images for review. |
Errors
| Status | Meaning |
|---|---|
400 | Invalid parameter or image (codes such as invalid_size, invalid_crop_margin, missing_source, file_too_large, unknown_foreground). |
402 | insufficient_credits: top up on the pricing page. |
403 | auth_failed: missing or invalid X-Api-Key. |
429 | rate_limit_exceeded. |
500 / 503 | Processing failed, timed out or the service is briefly unavailable. Retry; failed images are free. |
Check your balance with GET https://removebackground.dev/v1.0/account: the response has remove.bg's account shape. Full details in the API reference.
Credits: 1 per image, and they never expire
Every successful image costs 1 credit, whatever the size or options. Failed images are free. New accounts get 50 free credits to test with.
- Credits never expireTop up once, use them next week or next year.
- No subscriptionOne-time packs. Nothing renews.
- Failed images are freeA credit is used only when the background is removed.
Migration checklist
- Get a removebackground.dev API keySign up (50 free credits) and create a key on your account page.
- Change one linePoint your code at https://removebackground.dev/v1.0/removebg and put the new key in the same X-Api-Key header.
- Test one imageRun one real request and compare the output with what you get today.
- Switch your trafficDeploy before 1 December 2026, 09:00 CET. Top up credits once; they never expire.
remove.bg migration FAQ
Is remove.bg shutting down?
remove.bg's standalone website and self-serve API end on 1 December 2026, 09:00 CET. The API moves to Leonardo.Ai (a Canva company), which requires changing your integration. Source: Leonardo.Ai's announcement at https://www.leonardo.ai/news/removebg-api-leonardo.
What is the simplest remove.bg API replacement?
removebackground.dev has a remove.bg-compatible endpoint. Change https://api.remove.bg/v1.0/removebg to https://removebackground.dev/v1.0/removebg, send a removebackground.dev key in the same X-Api-Key header, and keep the rest of your code: parameter names, response headers and the error format match.
Do I have to rewrite my integration before December 2026?
No. Requests keep the same parameters (image_file, image_url, size, format, crop, bg_color…) and get the same kind of response: the image bytes with X-Width, X-Height and X-Foreground-* headers, or JSON with result_b64. Only the URL and the key change.
Does it work with Zapier, Make or n8n?
Yes. In your HTTP request step (Zapier Webhooks, Make HTTP, n8n HTTP Request), change the URL to https://removebackground.dev/v1.0/removebg and the X-Api-Key value to your removebackground.dev key. Nothing else changes.
How much does it cost?
1 credit per successful image, whatever the size or options. No subscription: one-time top-ups of $17, $49 or $99, and credits never expire. Failed images are free. New accounts get 50 free credits.
Which remove.bg parameters are supported?
image_file, image_file_b64, image_url, size, format (auto, png, jpg, webp, zip), crop, crop_margin, roi, scale, position, channels, bg_color, bg_image_url and bg_image_file. type, type_level, semitransparency and the shadow options are accepted and ignored, so requests that send them still work.
Can I check my balance like before?
Yes. GET https://removebackground.dev/v1.0/account with your key returns your credits in remove.bg's account format.
Is removebackground.dev affiliated with remove.bg?
No. remove.bg is a trademark of its owner. removebackground.dev is an independent service that accepts the same API requests.
Switch before 1 December 2026, 09:00 CET
remove.bg's self-serve API ends
Create a key, change one line, test one image. 50 free credits included.
remove.bg is a trademark of its owner; removebackground.dev is not affiliated with it.