One-click product background removal

Drop in a product photo, get a crisp transparent PNG ready for your store, marketplace, or visual search index. Powered by ONNX u²-net — no credits, no quotas, fully self-hosted.

Drag & drop a product photo

or · PNG · JPEG · WebP

REST API

Everything the web UI does is exposed as a single endpoint. Authenticate with the X-API-Key header (or Authorization: Bearer …).

curl -X POST https://<your-host>/api/v1/remove-bg \
  -H "X-API-Key: $FRESH_REMOVE_BG_API_KEY" \
  -F "image=@product.jpg" \
  -F "crop=1" \
  --output product-clean.png

Form fields

FieldTypeDescription
imagefileJPEG / PNG / WebP, ≤ 12 MB
crop0 / 1Crop tightly around the subject (default 0)
bg_colorstring#rrggbb or r,g,b — composite over color (default transparent)
responsebinary / jsonbinary returns image/png; json returns base64 + metadata

JSON alternative

curl -X POST https://<your-host>/api/v1/remove-bg \
  -H "X-API-Key: $FRESH_REMOVE_BG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_b64": "...", "crop": 1, "response": "json"}'