PixMiller PixMiller
홈 / API / 배경 제거 API
개발자 API

배경 제거 API REST API · v1

PixMiller의 배경 제거 기능을 자체 시스템에 통합하세요: POST 요청 한 번으로 약 5초 만에 배경을 제거하고 투명 PNG를 반환합니다. 높은 엣지 정확도, 이미지당 과금.

엔드포인트
POST api.pixmiller.com/v1/remove
curl -X POST \
  api.pixmiller.com/v1/remove \
  -H "X-Api-Key: YOUR_API_KEY" \
  -F "[email protected]"
배경 제거 API
PixMiller REST API · v1
full = 1 크레딧 · 프리뷰 무료

이미지를 업로드하면 AI가 배경을 제거하고 투명 PNG를 반환합니다. 동기 처리 — 보통 몇 초.

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

인증 및 요청

요청 헤더의 X-Api-Key: YOUR_API_KEY에 시크릿 키를 보내세요. 계정 페이지에서 키를 생성하고 관리하세요.
파라미터 유형 필수 설명
image_file file 필수* 처리할 이미지, 멀티파트 업로드. JPG / PNG / WebP, 최대 20MB
image_url string 필수* 또는 공개 이미지 URL (image_file / image_url 중 하나 제공)
size string 선택 preview (무료, 워터마크 포함) / full (HD, 1 크레딧) / auto. 기본값 preview
format string 선택 auto (투명 시 PNG, 그 외 JPG — 기본값) / png / jpg
bg_color string 선택 결과 배경: transparent (기본값) / white / 임의 #RRGGBB
* image_file 또는 image_url 중 하나 이상을 제공하세요.
2

코드 샘플

언어를 선택하고 복사하세요 — 바로 실행 가능합니다.
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

응답

201 Created · JSON
1{2  "url": "https://cdn.pixmiller.com/result/8Kd2pQ.png"3}
url 처리된 이미지의 임시 URL (원본 이미지는 3일 후 자동 삭제됩니다).
4

오류

오류는 일치하는 상태 코드와 다음과 같은 형태의 JSON 본문을 반환합니다 {"errors":{"code":"…","message":"…"}}.

400 validation error image_file이 누락되었거나 유효하지 않음, 파일이 너무 크거나 이미지 소스가 충돌합니다.
401 authentication_failed X-Api-Key 헤더가 누락되었거나 유효하지 않습니다.
402 not_enough_credit size=full이 요청되었지만 계정에 HD 크레딧이 남아있지 않습니다.
422 invalid_image 이미지를 처리할 수 없습니다 — 너무 작거나, 지원되지 않거나, 디코딩에 실패했습니다.
429 throttled 속도 제한을 초과했습니다. Retry-After 헤더 후에 다시 시도해 주세요.
5

Migrating from remove.bg

Change the base URL — your existing request keeps working.
remove.bg stops accepting self-serve API requests on 2026-12-01. PixMiller mirrors its main path at POST /v1.0/removebg — same X-Api-Key header, same parameter names, HTTP 200 with the image bytes in the body. A matching GET /v1.0/account returns your credit balance.
Before · remove.bg
1curl -H "X-Api-Key: REMOVEBG_KEY" \2  -F "[email protected]" \3  -F "size=auto" \4  -o out.png \5  https://api.remove.bg/v1.0/removebg
After · PixMiller
1curl -H "X-Api-Key: PIXMILLER_KEY" \2  -F "[email protected]" \3  -F "size=auto" \4  -o out.png \5  https://api.pixmiller.com/v1.0/removebg
size mapping
remove.bg value PixMiller tier 설명
preview / small / regular preview Watermarked preview, up to 640 px. Free — no credit charged. This is the default, as on remove.bg.
medium / hd / 4k / full / 50MP full Full-resolution, watermark-free result, downscaled to the tier's megapixel cap (1.5 / 4 / 25 / 25 / 50 MP; PNG output is capped at 10 MP). 1 credit per image.
auto auto Full resolution when credits are available, free watermarked preview otherwise.
Response headers
X-Credits-Charged Credits actually deducted by this call (0 for the free preview tier).
X-Width / X-Height Pixel dimensions of the returned image.
X-Type Detected foreground class: person, product, animal, car or other (omitted with type_level=none).
X-Foreground-Top / -Left / -Width / -Height Bounding box of the subject in the returned image.
X-RateLimit-Limit / -Remaining / -Reset Rate limit state for your key, counted per image — one call uses one unit; Retry-After is added on 429.
Parameters without effect

Every remove.bg parameter is accepted and validated — size, type, type_level, format, roi, crop, crop_margin, scale, position, channels, bg_color, bg_image_url and bg_image_file behave as documented by remove.bg. These are accepted but never change the output, as on remove.bg for non-car subjects: shadow_type, shadow_opacity, add_shadow, semitransparency

Known differences
  • size=preview (and its aliases small / regular — the default, as on remove.bg) returns our free, watermarked preview at up to 640 px and costs no credit; remove.bg returns a 0.25-megapixel image without watermark for 0.25 credits.
  • medium, hd, 4k, full and 50MP all cost 1 credit, as on remove.bg. There is no free monthly preview quota, so /v1.0/account always reports free_calls = 0.
  • X-Type is a coarse class (person / product / animal / car / other) derived from the segmentation model that was used; type_level = 2 and latest return the same coarse classes.
  • Shadows (shadow_type / shadow_opacity / add_shadow) and car-window semitransparency are accepted but never rendered — as on remove.bg for non-car subjects.
  • Input files are limited to 20 MB (remove.bg: 22 MB).

Errors on this endpoint use the remove.bg JSON:API envelope {"errors":[{"title":"…","code":"…"}]} with 400 invalid_parameter / 402 insufficient_credits / 403 auth_failed / 429 rate_limit_exceeded.

This is a compatibility layer for the main HTTP path, not a certified drop-in for the official SDKs or CLI.

왜 배경 제거 API로 구축해야 할까요

PNG/JPG 출력
~5s 이미지당
40/min 배치 처리량
3d 자동 삭제
머리카락 수준 엣지 털, 모피, 반투명 엣지는 깨끗한 알파 채널로 자동 처리됩니다 — 할로 없음, 하드 컷오프 없음.
5초 이내 응답 단일 이미지는 보통 5초 이내에 결과 URL을 동기적으로 반환합니다.
배치 전용 대량 처리를 위한 안정적인 처리량; 동시성과 재시도를 결합하여 파이프라인에 통합하세요.
수 분 만에 연동 복사 가능한 샘플이 포함된 간단한 REST; 새 계정에 테스트용 무료 HD 크레딧이 제공됩니다.

개발자들이 배경 제거 API를 사용하는 곳

이커머스 대량 등록

판매자가 업로드한 제품 사진을 수동 편집 없이 마켓플레이스 호환 흰색 또는 투명 메인 이미지로 변환합니다.

앱 내 배경 제거

디자인, 갤러리 또는 사이트 빌더 제품에 원클릭 배경 제거를 내장 — API를 호출하고 결과를 받으세요.

자동화 워크플로우

ERP / DAM / 스크립트에 연결하여 새 이미지를 가져올 때 자동으로 잘라내고 정리합니다.

1 API 키 생성 API 키 페이지에서 키를 생성하세요. 새 계정에 테스트용 무료 HD 크레딧이 제공됩니다.
2 요청하기 위의 샘플을 복사하고 키와 이미지를 교체한 후 첫 번째 호출을 실행하세요.
3 프로덕션 배포 동시성과 재시도를 조정한 후 배포하세요 — 이미지당 과금, 볼륨 가격 가능.

개발자 FAQ

어떤 이미지를 지원하나요?

JPG / PNG / WebP / BMP 최대 20MB, 50메가픽셀 미만(최장 변 32–10000px). 출력은 원본 해상도의 투명 PNG, 최대 4096×4096.

과금 방식은 어떻게 되나요?

성공적으로 처리된 이미지당 — full 크기 = 1 크레딧; 프리뷰 크기(워터마크 포함)는 테스트 무료. 새 계정에 무료 HD 크레딧이 제공됩니다.

size 파라미터는 무엇을 하나요?

preview와 auto는 워터마크가 있는 미리보기를 반환; full은 Full HD 결과를 반환하고 1 크레딧을 사용합니다.

속도 제한은 어떻게 되나요?

기본적으로 키당 분당 최대 40장; 증가하려면 문의하세요.

다른 도구 API

인터랙티브 레퍼런스

전체 OpenAPI 스키마 — 아래에서 계정에 대해 실시간으로 요청을 테스트하세요.

PixMiller API로 빌드하기 API 키 받기