Civitai Image Background Removal
One image in, transparent PNG out
- image
- api_config
- image
- workflow_id
- raw_json
Background removal is the most commoditized job in this whole ecosystem - the KB calls it "the most commoditized operation and still the least settled," with hair and fur deciding who wins. Civitai Image Background Removal is the no-hardware version: you feed it an image, it runs Civitai's cloud segmentation, and hands back the cutout as a native IMAGE with transparency. If you're on a laptop, a remote box, or just don't want to babysit a BiRefNet download, that's the pitch.
What it is
A one-shot recipe node under Civitai/Image. Input: image (required, an IMAGE tensor - anything from a LoadImage or a previous generation). Optional: format (empty default, or png / webp). Outputs: image (the cutout, back as a ComfyUI IMAGE), plus workflow_id and raw_json.
That's the whole node. The segmentation model runs on Civitai's fleet; locally there's no model file, no VRAM, no torch dependency beyond what ComfyUI already has.
How it works and where it sits in the toolchain
The obvious wiring: generate → this node → composite onto a new background, or downscale and use as a sticker/icon. The transparent result plugs straight into any ComfyUI masking or compositing step. Because it returns a real IMAGE, it composes with the rest of your graph exactly like a local background-removal node would.
For the quality question, set expectations from the KB: local BiRefNet (now in core ComfyUI) is the community's quality default, and InSPyReNet has its fans for difficult edges - but both need a GPU and a model download. The cloud trade is simple: you trade local control and zero marginal cost for a metered call that needs nothing installed. For a one-off cutout on a machine with no card, this node wins on setup alone. Pick by which failure you can tolerate - this is Civitai's choice of segmentation model, not yours.
Install & gotchas
Standard pack install: ComfyUI Manager → search Civitai Comfy Nodes (publisher civitai) → install → restart, or comfy node registry-install civitai-comfy-nodes, or git clone + pip install -r requirements.txt (just requests).
Things that trip people:
- Auth is non-negotiable. Every call needs a token -
CIVITAI_API_TOKENenv var, stored OAuth, or a wiredCivitai Authnode. No credentials means "No Civitai credentials" before anything runs. - It's metered. Each cutout costs Buzz. Cheap per call, but it adds up fast if you batch-remove backgrounds on hundreds of images - this is exactly the per-call economics the KB's external-api-nodes essay warns about ("a local generation is free after the electricity; a cloud call is metered every time"). For serious batch work, a local rembg or BiRefNet pass is still the move.
- Your image leaves the machine. The source image is uploaded for segmentation. For private or licensed reference work, that data flow matters more than the cutout quality.
formatis optional for a reason. Leave it empty and you get the default; setpngwhen you need lossless transparency,webpwhen size matters.
The one-line verdict: it's the right node when the alternative is installing a segmentation stack you'll use once. If you remove backgrounds every day, go local and save the Buzz.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The source image to remove the background from. | |
| formatopt | COMBO | 3 options: , png, webp | |
| api_configopt | CIVITAI_CONFIG | Optional Civitai Auth connection; defaults to CIVITAI_API_TOKEN or stored OAuth login. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| workflow_id | STRING | — |
| raw_json | STRING | — |