
The '1.1 Starter – Text to Image' workflow is designed to introduce users to the basics of generating images from text prompts using ComfyUI. This workflow leverages the Z-Image Turbo model, known for its efficiency and high-quality image outputs. The workflow consists of several key nodes, including the MarkdownNote for documentation, the SaveImage node for exporting results, and the core diffusion model node identified by its unique ID (932f407c-4ab6-4cd4-8567-d338b0eb6e18). These nodes work in tandem to process text inputs and produce visually compelling images. This workflow is particularly useful for beginners who are new to AI image generation, as it provides a straightforward path from text input to image output, while also offering insights into node connections and model management.
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 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













