Capybara: Image Edit - After
Capybara: Image Edit - Before

The Capybara: Image Edit workflow is a powerful tool designed to facilitate advanced image editing tasks using AI. At its core, this workflow leverages the Capybara model, which is adept at interpreting text instructions to modify images or videos. Whether you want to change the style of an image, replace objects, or adjust the time of day depicted, this workflow makes it possible with just a few simple inputs. The process begins with the LoadImage node, where users upload their desired image or video. Instructions are then processed by a specialized node (4f4ddf39-1508-4d34-a35c-ff10e6ce995b), which applies the specified edits using the Capybara model. The final output is saved using the SaveImage node.

Technically, this workflow is designed to handle various resolutions and aspect ratios, ensuring flexibility and adaptability for different projects. The Capybara model, available in a downloadable format for local users, operates efficiently with a recommended configuration of 50 steps for high-quality results. This workflow is particularly useful for creatives and professionals who require precise and nuanced image edits without the need for extensive manual adjustments.

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.

Image_capybara_v0_1_image_edit.json
Fetching workflow JSON…

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 "Capybara: Image Edit" (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("Image_capybara_v0_1_image_edit_api.json");

const asset = client.assets.fromFile("input.png");
wf.setInput("80", "image", asset); // LoadImage

const job = await client.run(wf);
await job.getOutputs("102")[0].toFile("output.png"); // SaveImage

The 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

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates