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

> Generate images using the Flux.2 [pro] or Flux.2 [max] model from a text prompt and optional reference images.

Generate images using the Flux.2 \[pro] or Flux.2 \[max] model from a text prompt and optional reference images. The node sends the request to the BFL API, polls until the result is ready, and returns the generated image.

## Inputs

### Common Inputs

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

### Flux.2 \[pro] and Flux.2 \[max] Inputs

Shared by both models — the parameter sets are identical.

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `model.width` | The width of the generated image in pixels (default: 1024). | INT | Yes | 256 to 2048 (step 32) |
| `model.height` | The height of the generated image in pixels (default: 768). | INT | Yes | 256 to 2048 (step 32) |

### Reference Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `model.images` | Optional reference image(s) for image-to-image generation. Up to 8 images. Growable slot: connect 1..8 items (`image_1`...`image_8`). | IMAGE | No | 0 to 8 images |

**Note:**

* The maximum number of reference images is 8. If more than 8 images are provided, an error is raised. Batch images count toward this limit, since each image in a batch is counted individually.
* Reference images are resized so that the total pixel count does not exceed 2048 x 2048 before being sent to the API.
* The `model.width` and `model.height` values affect the generation cost. The cost also depends on the selected model and on whether reference images are provided.

## Outputs

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

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

***

**Source fingerprint (SHA-256):** `2994564757e1c66ac6da7b45d227b27ceb0020ac6fc9e8cbe2b53fe9f70bc195`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.