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.
GET https://comfy.org/workflows/download/6fcaf95e52b2.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run "Capybara: Image Edit" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("Image_capybara_v0_1_image_edit_api.json")
asset = client.assets.from_file("input.png")
wf.set_input("80", "image", asset) # LoadImage
job = client.run(wf)
for output in job.get_outputs("102"): # SaveImage
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ
















