AI on the Lot 2026 - Z-Image Turbo - t2i

This template is a compact, text-to-image workflow built around the Z-Image Turbo generator, designed to get from prompt to output with minimal setup. At its core is a single custom Z-Image Turbo T2I node (node id f2fdebf6-dfaf-43b6-9eb2-7f70613cfdc1) that encapsulates text encoding and image generation, paired with a SaveImage node to write results to disk and a MarkdownNote for in-graph guidance. The template is configured to use the Qwen 3 4B text encoder weights (qwen_3_4b.safetensors) for prompt conditioning.

Technically, the Z-Image Turbo node handles the end-to-end generation: it ingests your prompt (and optional negative prompt), encodes it with the specified text encoder, and runs the model’s internal sampler to produce an image tensor. That tensor is passed directly to SaveImage, which exports PNGs to your ComfyUI output folder using the configured filename prefix. Because the heavy lifting is wrapped in a single node, you get a clean, reliable T2I pipeline that’s easy to iterate: tweak prompts, resolution, seed, and sampling controls in one place, then save consistent, reproducible outputs.

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.

8e090ccf5a29.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