Image Generation

This ComfyUI workflow offers a vivid foray into the world of artistic image generation, utilizing the power of Stable Diffusion 1.5. By leveraging sophisticated nodes like KSampler and CLIPTextEncode, users can transform simple text prompts into visually stunning imagery. The workflow is designed to harness the nuances of Stable Diffusion, trained on 512x512 datasets, ensuring high-quality results for appropriately sized images. Whether you're crafting a picturesque landscape with 'beautiful scenery nature glass bottle' or experimenting with abstract concepts like 'purple galaxy bottle,' the combination of nodes in this workflow allows for intricate detail and creative depth.

The workflow's structure, which includes steps for loading models, setting image sizes, and crafting prompts, provides a seamless experience for both novice and experienced users. The inclusion of a MarkdownNote node offers a layer of documentation, making it easy to annotate and iterate on creative projects. The use of positive and negative prompts further enhances creative control, enabling users to specify and refine the desired visual outcomes effectively. Overall, this workflow is a testament to the creative possibilities unlocked by advanced AI models and intuitive UI design.

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.

default.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 this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");

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