> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Flux2ImageNode - ComfyUI Built-in Node Documentation

> Complete documentation for the Flux2ImageNode node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/Flux2ImageNode/en.md)

## Overview

Generate images using the Flux.2 \[pro] or Flux.2 \[max] model from a text prompt and optional reference images. This node sends your request to the BFL API, polls for the result, and returns the generated image as a tensor.

## Inputs

| Parameter | Data Type | Required | Range                                  | Description                                                                                                                        |
| --------- | --------- | -------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `prompt`  | STRING    | Yes      | N/A                                    | Prompt for the image generation or edit (default: empty string).                                                                   |
| `model`   | COMBO     | Yes      | `"Flux.2 [pro]"`<br />`"Flux.2 [max]"` | The Flux.2 model version to use. Selecting a model unlocks additional parameters for width, height, and optional reference images. |
| `seed`    | INT       | Yes      | 0 to 18446744073709551615              | The random seed used for creating the noise. Can be set to randomize after each generation (default: 0).                           |

**Additional Parameters (unlocked by `model` selection):**

When you select a model, the following parameters become available:

| Parameter      | Data Type | Required | Range         | Description                                                                            |
| -------------- | --------- | -------- | ------------- | -------------------------------------------------------------------------------------- |
| `model.width`  | INT       | Yes      | 256 to 1440   | The width of the generated image in pixels.                                            |
| `model.height` | INT       | Yes      | 256 to 1440   | The height of the generated image in pixels.                                           |
| `model.images` | IMAGE     | No       | 0 to 8 images | Optional reference images to guide the generation. A maximum of 8 images is supported. |

**Constraints:**

* The maximum number of reference images is 8. If more than 8 images are provided, an error will be raised.
* The `model.width` and `model.height` values affect the cost of the generation (see price badge logic in source code).

## Outputs

| Output Name | Data Type | Description                                                          |
| ----------- | --------- | -------------------------------------------------------------------- |
| `image`     | IMAGE     | The generated image as a tensor, downloaded from the BFL API result. |

***

**Source fingerprint (SHA-256):** `ce3ee97d5ccb746892f3bfdb0dd5450d79cb4e0775a88d1f8c09569ce43ecbbb`
