PixMiller PixMiller
Home / API / Background Remover API
Developer API

Background Removal API REST API · v1

Bring PixMiller's background remover into your own stack: one POST request removes the background in about 5 seconds and returns a transparent PNG. 99.8% edge precision, billed per image.

Endpoint
POST api.pixmiller.com/v1/remove
curl -X POST \
  api.pixmiller.com/v1/remove \
  -H "X-Api-Key: YOUR_API_KEY" \
  -F "[email protected]"
Background Remover API
PixMiller REST API · v1
full = 1 credit · preview is free

Upload an image; the AI removes the background and returns a transparent PNG. Synchronous — usually a few seconds.

POST https://api.pixmiller.com/v1/remove
1

Authentication & request

Send your secret key in the X-Api-Key: YOUR_API_KEY request header. Create and manage keys on your account page.
Parameter Type Required Description
image_file file required* Image to process, multipart upload. JPG / PNG / WebP, up to 20MB
image_url string required* Or a public image URL (provide one of image_file / image_url)
size string optional preview (free, watermarked) / full (HD, 1 credit) / auto. Default preview
format string optional auto (PNG if transparent, otherwise JPG — default) / png / jpg
bg_color string optional Result background: transparent (default) / white / any #RRGGBB
* Provide at least one of image_file or image_url.
2

Code samples

Pick a language and copy — runs as-is.
1curl -X POST "https://api.pixmiller.com/v1/remove" \2  -H "X-Api-Key: YOUR_API_KEY" \3  -F "[email protected]" \4  -F "size=full"
3

Response

201 Created · JSON
1{2  "url": "https://cdn.pixmiller.com/result/8Kd2pQ.png"3}
url Temporary URL of the processed image (the underlying image is auto-deleted after 3 days).
4

Errors

Errors return the matching status code and a JSON body shaped like {"errors":{"code":"…","message":"…"}}.

400 validation error Missing or invalid image_file, file too large, or conflicting image sources.
401 authentication_failed The X-Api-Key header is missing or invalid.
402 not_enough_credit size=full was requested but the account has no HD credits left.
422 invalid_image The image could not be processed — too small, unsupported, or failed to decode.
429 throttled Rate limit exceeded. Slow down and retry after the Retry-After header.

Why build on the Background Remover API

99.8% Edge precision
~5s Per image
100+/min Batch throughput
3d Auto-deleted
Hair-level edges Hair, fur and semi-transparent edges are handled automatically with a clean alpha channel — no halos, no hard cutoffs.
Sub-5s response A single image usually returns a result URL within 5 seconds, synchronously.
Built for batch Steady throughput for high volume; pair with concurrency and retries to slot into your pipeline.
Minutes to integrate Plain REST with copy-paste samples; new accounts get a free HD credit for testing.

Where developers use the Background Remover API

E-commerce bulk listing

Turn seller-uploaded product shots into marketplace-compliant white or transparent main images, with no manual editing.

In-app background removal

Embed one-click background removal into your design, gallery or site-builder product — call the API, get the result.

Automated workflows

Hook into ERP / DAM / scripts so new images are cut out and filed automatically on ingest.

1 Create an API key Create a key on the API keys page. New accounts get a free HD credit for testing.
2 Make a request Copy any sample above, swap in your key and image, and run your first call.
3 Go to production Tune concurrency and retries, then ship — billed per image, volume pricing available.

Developer FAQ

What images are supported?

JPG / PNG / WebP / BMP up to 20MB, under 50 megapixels (longest edge 32–10000px). Output is a transparent PNG at the source resolution, up to 4096×4096.

How is it billed?

Per successfully processed image — full size = 1 credit; preview size (watermarked) is free for testing. New accounts get a free HD credit.

What does the size parameter do?

preview and auto return a watermarked preview; full returns the Full HD result and uses 1 credit.

What is the rate limit?

Up to 40 images per minute per key by default; contact us to raise it.

Other tools' APIs

Interactive reference

The full OpenAPI schema — try requests live against your account below.

Build with the PixMiller API Get your API key