HiDream I1 Dev

The HiDream I1 Dev workflow in ComfyUI is designed to generate high-quality images using a balanced approach that is suitable for medium-range hardware. This workflow leverages the HiDream model, specifically the 'hidream_i1_dev_bf16.safetensors' version, which optimizes the image generation process with 28 inference steps. The workflow is structured into three main steps: loading the necessary models, setting the image size, and crafting the prompt for image generation. Key nodes include KSampler for sampling, VAEDecode for decoding the latent image, and CLIPTextEncode for processing text prompts. The workflow also utilizes nodes like EmptySD3LatentImage and QuadrupleCLIPLoader to manage latent space and text encoding efficiently.

Technically, this workflow is beneficial for users who need to generate images with a specific aesthetic or style, such as baroque oil paintings, as indicated by the example prompts. The use of the HiDream model ensures that the images produced are of high quality, with attention to detail and texture. The workflow's balanced configuration makes it accessible for users with medium-range hardware, providing a practical solution without requiring high-end computational resources.

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.

hidream_i1_dev.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 "HiDream I1 Dev" (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("hidream_i1_dev_api.json");

wf.setInput("16", "text", "your prompt here"); // CLIPTextEncode

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