> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-feat-openapi-i18n.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ComfyUI Native HiDream-O1-Image Workflow Example

> This guide walks you through the ComfyUI native HiDream-O1-Image text-to-image and image editing workflows

<Tip>
  <Tabs>
    <Tab title="Portable or self deployed users">
      Make sure your ComfyUI is updated.

      * [Download ComfyUI](https://www.comfy.org/download)
      * [Update Guide](/installation/update_comfyui)

      Workflows in this guide can be found in the [Workflow Templates](/interface/features/template).
      If you can't find them in the template, your ComfyUI may be outdated. (Desktop version's update will delay sometime)

      If nodes are missing when loading a workflow, possible reasons:

      1. You are not using the latest ComfyUI version (Nightly version)
      2. Some nodes failed to import at startup
    </Tab>

    <Tab title="Desktop or Cloud users">
      * The Desktop is base on ComfyUI stable release, it will auto-update when there is a new Desktop stable release available.
      * [Cloud](https://cloud.comfy.org) will update after ComfyUI stable release.

      So, if you find any core node missing in this document, it might be because the new core nodes have not yet been released in the latest stable version. Please wait for the next stable release.
    </Tab>
  </Tabs>
</Tip>

![HiDream-O1-Image Demo](https://raw.githubusercontent.com/HiDream-ai/HiDream-O1-Image/main/assets/general.webp)

HiDream-O1-Image is a unified image generative foundation model open-sourced by HiDream-ai on May 8, 2026. Built on a Pixel-level Unified Transformer (UiT), it operates without external VAEs or disjoint text encoders, supporting **text-to-image**, **instruction-based image editing**, **subject-driven personalization**, and **storyboard generation** at up to 2,048 × 2,048 resolution.

HiDream-O1-Image is released under the [MIT License](https://github.com/HiDream-ai/HiDream-O1-Image?tab=MIT-1-ov-file) and natively supported in ComfyUI (PR [#13817](https://github.com/Comfy-Org/ComfyUI/pull/13817)).

[HiDream-O1-Image - GitHub](https://github.com/HiDream-ai/HiDream-O1-Image)

### Model Versions

| Model                   | Inference Steps | Repository                                                                        |
| ----------------------- | --------------- | --------------------------------------------------------------------------------- |
| HiDream-O1-Image (Full) | 50              | [🤗 HiDream-O1-Image](https://huggingface.co/HiDream-ai/HiDream-O1-Image)         |
| HiDream-O1-Image-Dev    | 28              | [🤗 HiDream-O1-Image-Dev](https://huggingface.co/HiDream-ai/HiDream-O1-Image-Dev) |

## HiDream-O1-Image Full Workflow

### 1. Download Workflow

Update your ComfyUI to the latest version, then go to `Workflow` -> `Browse Templates` -> `Image` and find "HiDream O1 Full: Image generation".

![HiDream-O1-Image Full Workflow](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/image_hidream_o1.png)

<Card title="Download JSON Workflow File" icon="download" href="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/templates/image_hidream_o1.json">
  Download workflow
</Card>

<Card title="Run on Comfy Cloud" icon="cloud" href="https://cloud.comfy.org/?template=image_hidream_o1&utm_source=docs">
  Open in cloud
</Card>

### 2. Download Models

**Checkpoint** — re-packaged and quantized. All use bf16 for worst outliers, unused deepstack layers removed:

* [hidream\_o1\_image\_fp8\_scaled.safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_fp8_scaled.safetensors) — FP8, uses fp8/mxfp8 matmuls on safe MLP layers for speedup on supported hardware
* [hidream\_o1\_image\_mxfp8.safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_mxfp8.safetensors) — MXFP8 quantized variant
* [hidream\_o1\_image\_bf16.safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_bf16.safetensors) — Full bf16 precision (largest)

**Text Encoder** (prompt enhancement) — shared across all versions:

* [gemma4\_e4b\_it\_fp8\_scaled.safetensors](https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e4b_it_fp8_scaled.safetensors)

**LoRA (optional)** — the Dev distillation can also be applied to the Full model as a LoRA, allowing you to adjust the distillation strength (by [Kijai](https://huggingface.co/Kijai/hidream-O1-image_comfy)):

* [hidream\_o1\_dev\_lora\_rank\_64\_bf16.safetensors](https://huggingface.co/Kijai/hidream-O1-image_comfy/resolve/main/loras/hidream_o1_dev_lora_rank_64_bf16.safetensors) — Full rank
* [hidream\_o1\_dev\_lora\_rank\_64\_bf16\_pruned\_v1.safetensors](https://huggingface.co/Kijai/hidream-O1-image_comfy/resolve/main/loras/hidream_o1_dev_lora_rank_64_bf16_pruned_v1.safetensors) — Pruned variant
* [hidream\_o1\_image\_dev\_2604\_lora\_avg\_rankg\_224\_bf16.safetensors](https://huggingface.co/Kijai/hidream-O1-image_comfy/resolve/main/loras/hidream_o1_image_dev_2604_lora_avg_rankg_224_bf16.safetensors) — Alternative checkpoint-based distillation

```
📂 ComfyUI/
├── 📂 models/
│   ├── 📂 checkpoints/
│   │   ├── hidream_o1_image_fp8_scaled.safetensors
│   │   ├── hidream_o1_image_mxfp8.safetensors
│   │   └── hidream_o1_image_bf16.safetensors
│   ├── 📂 loras/
│   │   └── hidream_o1_dev_lora_rank_64_bf16.safetensors
│   └── 📂 text_encoders/
│       └── gemma4_e4b_it_fp8_scaled.safetensors
```

### 3. Using the Workflow

* Make sure `CheckpointLoaderSimple` loads your chosen checkpoint
* Enter your prompt in the `CLIPTextEncode` node
* **Text-to-Image mode:** set the **"Switch to Image Edit"** toggle to **off** (default). The sampler will use your text prompt directly.
* **Image Edit mode:** set **"Switch to Image Edit"** to **on**, then upload a reference image in the `Load Image` node and connect it to `HiDreamO1ReferenceImages`.

> **Note:** The O1 sampler outputs latent samples that need to be decoded through a `VAEDecode` node using the VAE loaded by `CheckpointLoaderSimple`.

## HiDream-O1-Image Dev Workflow

### 1. Download Workflow

Go to `Workflow` -> `Browse Templates` -> `Image` and find "HiDream O1 Dev".

![HiDream-O1-Image Dev Workflow](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/image_hidream_o1_dev.png)

<Card title="Download JSON Workflow File" icon="download" href="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/templates/image_hidream_o1_dev.json">
  Download workflow
</Card>

<Card title="Run on Comfy Cloud" icon="cloud" href="https://cloud.comfy.org/?template=image_hidream_o1_dev&utm_source=docs">
  Open in cloud
</Card>

### 2. Download Models

**Checkpoint (Dev)** — re-packaged and quantized. All use bf16 for worst outliers, unused deepstack layers removed:

* [hidream\_o1\_image\_dev\_fp8\_scaled.safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_dev_fp8_scaled.safetensors) — FP8, uses fp8/mxfp8 matmuls on safe MLP layers for speedup on supported hardware
* [hidream\_o1\_image\_dev\_mxfp8.safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_dev_mxfp8.safetensors) — MXFP8 quantized variant
* [hidream\_o1\_image\_dev\_bf16.safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/resolve/main/checkpoints/hidream_o1_image_dev_bf16.safetensors) — Full bf16 precision (largest)

**Text Encoder** (prompt enhancement) — shared across all versions:

* [gemma4\_e4b\_it\_fp8\_scaled.safetensors](https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e4b_it_fp8_scaled.safetensors)

```
📂 ComfyUI/
├── 📂 models/
│   ├── 📂 checkpoints/
│   │   ├── hidream_o1_image_dev_fp8_scaled.safetensors
│   │   ├── hidream_o1_image_dev_mxfp8.safetensors
│   │   └── hidream_o1_image_dev_bf16.safetensors
│   └── 📂 text_encoders/
│       └── gemma4_e4b_it_fp8_scaled.safetensors
```

### 3. Using the Workflow

* Make sure `CheckpointLoaderSimple` loads `hidream_o1_image_dev_fp8_scaled.safetensors`
* The Dev version uses 28 steps with CFG=1.0 — no negative prompt needed
* **Text-to-Image mode:** set the **"Switch to Image Edit"** toggle to **off** (default)
* **Image Edit mode:** set **"Switch to Image Edit"** to **on**, upload a reference image in `Load Image`, and connect it to `HiDreamO1ReferenceImages`

## Additional Notes

* **Long Text Rendering:** HiDream-O1-Image excels at rendering text within images. Specify text content, font style, color, and positioning in your prompt for best results.

  ![Long-Text Rendering & Layout Control](https://raw.githubusercontent.com/HiDream-ai/HiDream-O1-Image/main/assets/text-layout.webp)

* **Image Scaling:** If your input reference image is too large, enable the `ImageScaleToTotalPixels` node (Ctrl+B) to scale it to 4MP.

* **Patch Seam Smoothing (Experimental):** The `HiDreamO1PatchSeamSmoothing` node reduces visible seam artifacts during sampling. Enabled by default in the Full workflow.
