PixMatteAPI

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 "[email protected]" \
    -F "size=auto" \
    -o product-cutout.png

Endpoint map

remove.bg requestPixMatte equivalentNotes
POST /v1.0/removebgPOST /v1.0/removebgSame route name and multipart body, on https://api.pixmatte.com.
image_file / image_url / image_file_b64Same fieldsExactly one source per request.
size (preview, full, auto)Same valuesOutput caps depend on your PixMatte plan.
format (png, jpg, zip)png, webp, jpgzip is not supported; use png or webp.
bg_color, type, crop, crop_marginSame fieldsSame semantics.
GET /v1.0/accountNot yet availableUse 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_ or pm_test_.
  • Credits and balances don't transfer between providers.

Response differences

AreaPixMatte behavior
Success bodyBinary image by default; JSON with result_b64 when Accept: application/json.
Credit headerX-Credits-Charged on every successful response.
Extra headerX-Request-Id on every response, including errors.
ErrorsJSON errors array with a stable code field — see error codes.
No subject422 no_subject_found, not charged.
OutputCutouts are produced by a different model, so edges will not be pixel-identical. Spot-check your hardest images.

Migration checklist

  1. Create a test key and a live key.
  2. Point your client at https://api.pixmatte.com behind a config flag.
  3. Run your existing test suite against the test key; fix any invalid_parameters responses.
  4. Update error handling to branch on errors[].code.
  5. Compare output on a sample of real catalog images — hair, glass, and thin straps first.
  6. Log X-Request-Id and X-Credits-Charged.
  7. Shift traffic gradually, then switch the flag to the live key.

Questions about volume pricing for a migration? See pricing or how credits work.