Skip to content

product / web and API cutouts

Unbg: Cut out photos on the web, or by API

Drop JPEG, PNG, WebP, or GIF stills. Free mode runs open-source ormbg in the browser so files stay on the device. Pro uses a monthly credit wallet and cloud fal BiRefNet. Preview or full size. Sign in for an API key. Files are not stored by default.

api

Use API for batch processing

POST https://zhanghe.dev/api/v1.0/removebg with an X-Api-Key issued in your account. Send exactly one of image_file, image_file_b64, or image_url. size=preview costs 0.25 credits; full costs 1. zip, 50MP, type hints, shadows, and crop are rejected in v1.

curl -X POST https://zhanghe.dev/api/v1.0/removebg \
  -H "X-Api-Key: YOUR_KEY" \
  -F "image_file=@input.jpg" \
  -F "size=preview" -o output.png
Sign in to issue an API key

faq

Frequently asked questions

Not in Free mode. The open-source ormbg IS-Net ONNX model runs in a browser worker, so files stay on this device. Pro and the API send the photo to Unbg, then to fal.ai BiRefNet. Source and result bytes are not written to R2 by default.

The free engine is about 59MB. This page starts the download immediately and shows progress. Files use a one-year immutable HTTP cache plus this browser's Cache Storage — not a site-wide service worker. The same browser will not fetch the model from R2 again. Clearing site data, or using another device or browser, downloads it again.

Free is on-device ormbg / IS-Net. Pro and the API use cloud fal BiRefNet (fal-ai/birefnet/v2). There is no public quality ranking between the two.

Yes, for images you have the right to process. Do not upload illegal content or CSAM. The service is provided as-is, without an SLA.

Free mode does not spend credits. Pro and the API share 12.5 credits a month: 0.25 for preview, 1 for full. New accounts are limited to 1 credit a day for the first three days.

POST https://zhanghe.dev/api/v1.0/removebg with X-Api-Key. Send image_file, image_file_b64, or image_url.