
This ComfyUI workflow, titled 'Capybara: Text to Image', leverages the Capybara unified model to transform text prompts into vivid images. At its core, the workflow utilizes a series of nodes, including the SaveImage node and a unique identifier node (4f4ddf39-1508-4d34-a35c-ff10e6ce995b), to process and output the generated images. The Capybara model is renowned for its ability to synthesize high-quality images from textual descriptions, making it an invaluable tool for artists, designers, and content creators seeking to visualize concepts quickly.
Technically, the workflow is designed to handle various aspect ratios and resolutions, from 480p at a 16:9 ratio to a square 1:1 format. This flexibility is achieved through careful configuration of the model parameters, such as steps and CFG (Classifier-Free Guidance), which are set to default values of 20 and 6.0, respectively, in ComfyUI. However, for enhanced image quality, users are encouraged to increase the steps to 50. The integration of MarkdownNote allows users to document their creative process within the workflow, further enhancing its utility for iterative design and experimentation.
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 "Capybara: Text to Image" (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_text_to_image_api.json");
const job = await client.run(wf);
await job.getOutputs("102")[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













