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

# ComfyUI Flux.2 Dev の例

> 本ガイドでは、Flux.2 モデルについて簡単に紹介し、ComfyUI で Flux.2 Dev モデルを用いたテキストから画像への生成手順を解説します。

<iframe width="560" height="315" src="https://www.youtube.com/embed/TzTS74Ii23A?si=f2NFmhNbU2VI3PwX" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />

## FLUX.2 について

[FLUX.2](https://bfl.ai/blog/flux-2) は、[Black Forest Labs](https://blackforestlabs.ai/) が開発した次世代画像生成モデルであり、最大 4MP の写真級リアルな出力を実現します。特に、ライティング、肌の質感、布地の表現、手のディテールにおいて、従来よりも大幅に向上しています。また、信頼性の高いマルチリファレンス一貫性（最大 10 枚の参照画像に対応）、編集精度の向上、より優れた視覚理解能力、およびプロフェッショナルクラスのテキスト描画機能を備えています。

**主な特長：**

* **マルチリファレンス一貫性：** 複数の出力画像間で、人物のアイデンティティ、製品の形状・ジオメトリ、テクスチャ・マテリアル、衣装、構図意図を確実に維持
* **高解像度の写真級リアリズム：** 現実世界のライティング挙動、空間的推論、物理に基づくディテールを伴う最大 4MP の画像生成
* **プロフェッショナルレベルの制御：** 姿勢の正確な制御、16進数で指定可能なブランドカラー、任意のアスペクト比、およびプログラムによるワークフロー向けの構造化プロンプト対応
* **実用的なテキスト描画：** UI 画面、インフォグラフィック、多言語コンテンツなど、さまざまな用途で明瞭かつ読みやすいテキストを生成

**利用可能なモデル：**

* **FLUX.2 Dev：** オープンソースモデル（本チュートリアルで使用）
* **FLUX.2 Pro：** Black Forest Labs が提供する API 版

<Note>
  本ワークフローでは量子化された重み（quantized weights）を使用しています。オリジナルの FLUX.2 リポジトリは[こちら](https://huggingface.co/black-forest-labs/FLUX.2-dev/)から確認できます。
</Note>

<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>

## 単一画像生成ワークフロー

FLUX.2 Dev を用いた基本的なテキストから画像への生成ワークフローです。

<CardGroup cols={2}>
  <Card title="Comfy Cloud で実行" icon="cloud" href="https://cloud.comfy.org/?template=image_flux2&utm_source=docs">
    このワークフローを直接 Comfy Cloud で開きます
  </Card>

  <Card title="ワークフローをダウンロード" icon="download" href="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/templates/image_flux2.json">
    ローカル環境で使用するための JSON ワークフロー・ファイルをダウンロード
  </Card>
</CardGroup>

## 複数画像参照ワークフロー

2 枚の参照画像を用いるワークフローの例です。この実装を拡張することで、さらに多くの参照画像に対応させることも可能です。

<CardGroup cols={2}>
  <Card title="Comfy Cloud で実行" icon="cloud" href="https://cloud.comfy.org/?template=image_flux2_fp8&utm_source=docs">
    このワークフローを直接 Comfy Cloud で開きます
  </Card>

  <Card title="ワークフローをダウンロード" icon="download" href="https://raw.githubusercontent.com/comfyui-wiki/workflow_templates/refs/heads/main/templates/image_flux2_fp8.json">
    ローカル環境で使用するための JSON ワークフロー・ファイルをダウンロード
  </Card>
</CardGroup>

## モデルのダウンロードリンク

**text\_encoders**

* [mistral\_3\_small\_flux2\_bf16.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/text_encoders/mistral_3_small_flux2_bf16.safetensors)

**diffusion\_models**

* [flux2\_dev\_fp8mixed.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/diffusion_models/flux2_dev_fp8mixed.safetensors)

**vae**

* [flux2-vae.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors)

**モデルの保存先**

```
📂 ComfyUI/
├── 📂 models/
│   ├── 📂 text_encoders/
│   │      └── mistral_3_small_flux2_bf16.safetensors
│   ├── 📂 diffusion_models/
│   │      └── flux2_dev_fp8mixed.safetensors
│   └── 📂 vae/
│          └── flux2-vae.safetensors
```
