Existing customer? Sign In
remove.bg's self-service API stops accepting requests on 1 December 2026. If you call it from your own HTTP code, moving to PixMiller is usually a base-URL and key change — this page shows exactly what carries over, what behaves differently, and what has no effect.
1curl -X POST "https://api.remove.bg/v1.0/removebg" \2 -H "X-Api-Key: REMOVEBG_KEY" \3 -F "[email protected]" \4 -F "size=auto" \5 -o out.png
1curl -X POST "https://api.pixmiller.com/v1.0/removebg" \2 -H "X-Api-Key: PIXMILLER_KEY" \3 -F "[email protected]" \4 -F "size=auto" \5 -o out.png6# 200 OK → image bytes, written straight to out.png7# X-Credits-Charged: 1 X-Width: 1200 X-Height: 1600 X-Type: product
| Parameter | Status | Notes |
|---|---|---|
image_file
|
Same | Multipart upload. JPG / PNG / WebP, up to 20 MB (remove.bg: 22 MB). |
image_url
|
Same | Public image URL, fetched on our side with the same 20 MB limit. |
image_file_b64
|
Same | Base64-encoded image in the request body, same as remove.bg. |
size
|
Differs | Same values, same default (preview) and same megapixel caps — but preview is a free watermarked image up to 640 px, not 0.25 MP without watermark. medium / hd / 4k / full / 50MP cost 1 credit each; auto uses the paid tier while credits remain. |
format
|
Same | auto / png / jpg / webp / zip — zip contains color.jpg and alpha.png as on remove.bg. Accept: application/json returns the base64 envelope. PNG output is capped at 10 megapixels. |
type, type_level
|
Differs | Accepted; type is mapped onto our own models. X-Type reports a coarse class — person, product, animal, car or other — and type_level=2 / latest return the same coarse classes. |
crop, crop_margin
|
Same | Crops to the subject with the same margin syntax and the same 50% / 500 px cap. |
roi
|
Same | Region of interest in pixels or percent, as on remove.bg. |
scale, position
|
Same | Subject scale (10%–100% or original) and position, as on remove.bg. |
channels
|
Same | rgba (default) or alpha for the mask only. |
bg_color
|
Same | Transparent by default; 3 / 4 / 6 / 8-digit hex with or without #, or a colour name. |
bg_image_file, bg_image_url
|
Same | Scaled to cover the output and centred; cannot be combined with bg_color. |
add_shadow, shadow_type, shadow_opacity
|
No effect | Validated against remove.bg's values, but no shadow is ever rendered. |
semitransparency
|
No effect | Accepted; semi-transparent areas are always handled automatically. |
The account endpoint reports the key's remaining credit balance under data.attributes.credits, so a balance check written against remove.bg keeps its shape. There is no monthly free quota, so free_calls is always 0.
1curl "https://api.pixmiller.com/v1.0/account" \2 -H "X-Api-Key: PIXMILLER_KEY"
invalid_parameter
A value outside remove.bg's range for size / format / crop / scale / … or a missing image source; the title names the parameter.
file_too_large
The input image exceeds 20 MB.
unknown_foreground
No foreground could be found in the image.
insufficient_credits
A paid tier was requested but the balance is empty. Nothing is charged.
auth_failed / invalid_api_key
The X-Api-Key header is missing (auth_failed) or wrong (invalid_api_key) — 403 as on remove.bg, not 401.
rate_limit_exceeded
Rate limit exceeded. Retry after the Retry-After header.
result_fetch_failed
The result could not be fetched from storage. Nothing was charged — retry the request.
Are you sure you want to sign out?