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.
- Modelu2netp
- Max upload12 MB
- Cost$0 / image
Drag & drop a product photo
or · PNG · JPEG · WebP
Removing background…
Original
Background removed
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
| Field | Type | Description |
|---|---|---|
image | file | JPEG / PNG / WebP, ≤ 12 MB |
crop | 0 / 1 | Crop tightly around the subject (default 0) |
bg_color | string | #rrggbb or r,g,b — composite over color (default transparent) |
response | binary / json | binary 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"}'