Nodes/civitai-comfy-nodes/Civitai Image Background Removal
ComfyUI Node

Civitai Image Background Removal

One image in, transparent PNG out

By civitai·Created 2 months ago·Updated about a month ago· 42
Civitai Image Background Removal
  • image
  • api_config
  • image
  • workflow_id
  • raw_json
format

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:

  1. Auth is non-negotiable. Every call needs a token - CIVITAI_API_TOKEN env var, stored OAuth, or a wired Civitai Auth node. No credentials means "No Civitai credentials" before anything runs.
  2. 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.
  3. 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.
  4. format is optional for a reason. Leave it empty and you get the default; set png when you need lossless transparency, webp when 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.

CategoryCivitai/Image

Inputs (3)

NameTypeDefaultDescription
imageIMAGEThe source image to remove the background from.
formatoptCOMBO3 options: , png, webp
api_configoptCIVITAI_CONFIGOptional Civitai Auth connection; defaults to CIVITAI_API_TOKEN or stored OAuth login.

Outputs (3)

NameTypeDescription
imageIMAGE
workflow_idSTRING
raw_jsonSTRING