This workflow, titled 'Bira: Remove Image Background,' is designed to automate the process of removing backgrounds from images using the Bria API. It is particularly useful for users looking to streamline their image editing tasks, especially when dealing with large batches of images. The workflow begins by loading an image through the 'LoadImage' node, which prepares the file for processing. The core of the workflow is the 'BriaRemoveImageBackground' node, which interfaces with the Bria API to remove the background from the uploaded image. This process is handled asynchronously, allowing for efficient processing without requiring constant user input. Finally, the 'SaveImage' node is used to save the output image with a transparent background, ready for use in various applications like graphic design or product listings.
What makes this workflow particularly useful is its ability to handle complex image backgrounds with ease, thanks to the advanced capabilities of the Bria API. By leveraging the power of AI, this workflow can distinguish between the subject and the background, ensuring precise and clean extractions. The inclusion of the 'ImageCompare' node allows users to verify the quality of the background removal by comparing the original and edited images side by side, ensuring that the results meet their standards before finalizing the output.
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
// Install (beta)
npm i @comfyorg/sdk
// Run "Bira: Remove Image Background" (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("utility_bria_remove_image_background_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("26", "image", asset); // LoadImage
const job = await client.run(wf);
await job.getOutputs("27")[0].toFile("output.png"); // SaveImageThe SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).
Comfy Cloud API access requires a plan with an API key.
FAQ















