Z-Image-Turbo Fun Union ControlNet - After
Z-Image-Turbo Fun Union ControlNet - Before

The 'Z-Image-Turbo Fun Union ControlNet' workflow is a sophisticated image generation process that leverages multiple ControlNet models to enhance and manipulate images with precision. This workflow integrates various image preprocessing techniques, including Canny edge detection, HED (Holistically-Nested Edge Detection), Depth estimation, Pose recognition, and MLSD (Multi-Line Segment Detection). These techniques are orchestrated to refine and control the output of the Z-Image-Turbo model, allowing for nuanced and detailed image transformations. By utilizing nodes such as SaveImage, MarkdownNote, PreviewImage, and ImageScaleToMaxDimension, the workflow ensures that images are processed efficiently and effectively.

Technically, this workflow stands out due to its ability to handle multiple control inputs simultaneously, providing users with a high degree of control over the image generation process. The integration of various ControlNet models allows users to apply different preprocessing techniques to the input images, which are then scaled and transformed according to the desired output specifications. This makes the workflow particularly useful for applications that require precise image manipulation, such as digital art creation, augmented reality, and advanced photo editing.

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.

image_z_image_turbo_fun_union_controlnet.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 "Z-Image-Turbo Fun Union ControlNet" (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_z_image_turbo_fun_union_controlnet_api.json");

const asset = client.assets.fromFile("input.png");
wf.setInput("58", "image", asset); // LoadImage

const job = await client.run(wf);
await job.getOutputs("9")[0].toFile("output.png"); // SaveImage

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