Guides
Migrate from remove.bg to PixMatte API
Map your existing requests to PixMatte's compatible endpoint. For most integrations that means changing the base URL and the key.
Overview
PixMatte is an independent alternative — a separate product and company, not affiliated with remove.bg or Canva. We kept a compatible request shape so you can switch without rewriting business logic.
The change, as a diff
- curl -X POST https://api.remove.bg/v1.0/removebg \
- -H "X-Api-Key: $REMOVE_BG_API_KEY" \
+ curl -X POST https://api.pixmatte.com/v1.0/removebg \
+ -H "X-Api-Key: $PIXMATTE_API_KEY" \
-F "image_file=@product.jpg" \
-F "size=auto" \
-o product-cutout.pngEndpoint map
| remove.bg request | PixMatte equivalent | Notes |
|---|---|---|
| POST /v1.0/removebg | POST /v1.0/removebg | Same route name and multipart body, on https://api.pixmatte.com. |
| image_file / image_url / image_file_b64 | Same fields | Exactly one source per request. |
| size (preview, full, auto) | Same values | Output caps depend on your PixMatte plan. |
| format (png, jpg, zip) | png, webp, jpg | zip is not supported; use png or webp. |
| bg_color, type, crop, crop_margin | Same fields | Same semantics. |
| GET /v1.0/account | Not yet available | Use the dashboard for balance; endpoint planned. |
Authentication changes
- Header name is unchanged:
X-Api-Key. - Key values are different. Create a PixMatte key; keys start with
pm_live_orpm_test_. - Credits and balances don't transfer between providers.
Response differences
| Area | PixMatte behavior |
|---|---|
| Success body | Binary image by default; JSON with result_b64 when Accept: application/json. |
| Credit header | X-Credits-Charged on every successful response. |
| Extra header | X-Request-Id on every response, including errors. |
| Errors | JSON errors array with a stable code field — see error codes. |
| No subject | 422 no_subject_found, not charged. |
| Output | Cutouts are produced by a different model, so edges will not be pixel-identical. Spot-check your hardest images. |
Migration checklist
- Create a test key and a live key.
- Point your client at
https://api.pixmatte.combehind a config flag. - Run your existing test suite against the test key; fix any
invalid_parametersresponses. - Update error handling to branch on
errors[].code. - Compare output on a sample of real catalog images — hair, glass, and thin straps first.
- Log
X-Request-IdandX-Credits-Charged. - Shift traffic gradually, then switch the flag to the live key.
Questions about volume pricing for a migration? See pricing or how credits work.