Image · sync
bg-strip
Background removal for product shots, headshots, anything.
Source photo
About
bg-strip is orqis's background-removal endpoint. The implementation is a Node service that proxies to a Python sidecar running rembg (the same U²-Net the open-source community has standardised on for foreground extraction). The sidecar isolation is deliberate — it's the same shape we'll use for seller-supplied Docker services in Month 4.
Four model presets are supported by the sidecar: `u2net` (default, general-purpose), `u2netp` (smaller / faster), `isnet-general-use` (sharp edges), `silueta` (better for people).
Output is always PNG with an alpha channel. Pass `fillHex` (e.g. `#ffffff`) to replace the removed pixels with a flat colour instead of transparency — useful when downstream tools don't preserve alpha.
Mock mode runs entirely in Node: it samples the four corner pixels, treats their average as the background colour, and turns near-matches transparent. Works surprisingly well on clean studio shots; predictably bad on complex backgrounds. Switch to real mode (`BG_STRIP_PIPELINE=real` + `BG_STRIP_SIDECAR_URL`) for production use.
{
"type": "object",
"required": [
"imageBase64"
],
"properties": {
"imageBase64": {
"type": "string",
"description": "Base64-encoded source image (raw or data: URL)."
},
"model": {
"type": "string",
"enum": [
"u2net",
"u2netp",
"isnet-general-use",
"silueta"
],
"default": "u2net"
},
"fillHex": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"description": "Optional. Replace removed pixels with this flat colour instead of transparency."
}
}
}These are descriptive previews. Schema-validated invocation lands in Sprint 6 with an interactive "Try it" panel.
Reviews (0)
No reviews yet — be the first to share your experience.