
The 'Text to Image (New)' workflow leverages the cutting-edge Z-Image-Turbo model to transform text prompts into vivid, high-quality images. This model represents a significant leap forward in image generation technology by optimizing both speed and fidelity. Unlike previous models, Z-Image-Turbo utilizes an advanced architecture that reduces computational overhead while maintaining intricate detail and color accuracy. This makes it particularly effective for applications requiring rapid image generation without sacrificing quality.
Z-Image-Turbo's innovation lies in its ability to interpret nuanced text prompts with greater precision, thanks to its enhanced natural language processing capabilities. This improvement allows users to generate images that more accurately reflect the intended message or theme of their prompts. By integrating this model into the ComfyUI workflow, users can now enjoy a more intuitive and efficient image creation process, making it ideal for both creative professionals and hobbyists alike.
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













