# Flux (Image Generator)

{% embed url="<https://www.youtube.com/watch?v=xbwm9D5zwAw>" %}

Flux is a powerful AI image generator from [Black Forest Labs](https://bfl.ai/), which (as of this writing) includes a free credits tier.

Choose *Window/AI Services/Flux Image Generation* to open the generator window.

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2F68oNHb0qOpXFx4CKql0E%2FScreenshot%202025-07-11%20at%205.37.46%E2%80%AFPM.png?alt=media&#x26;token=1b6bce8a-d707-4fee-868f-955e1fd2c014" alt=""><figcaption></figcaption></figure>

Generally you'll use the Text Prompt to generate images.&#x20;

### Text Prompt

Here you can add the content and the style. These are merged, but can be used to help organize series of image prompts which use the same content, or the same style, in the [**Flux History Window**](https://infinitypbr.gitbook.io/infinity-pbr/ai-service-integrations/flux-image-generator/flux-history-window).

#### Text Prompt Variables

You can add variables to your prompts by using double-curly-brackes. For example, the prompt "A {{Red,Blue, Green }} {{Dragon, Hydra }} eating a chicken wing" will submit 6 total image prompts, with all combinations of the two groups of variables.&#x20;

### Image Prompt

Using this option, you can select an image and get additional images that are very similar to the one provided. You are unable to give additional prompts in this method, but it can be used to get more variety of an image you already have.

## Generation & Advanced Settings

You can select the model, the number of images, and the image resolution. Note that if you are using the double-brackets to add variables to the prompts, the image count will be determined by your prompt.

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2Fl2dr0WSn7VAMzkiImRK6%2FScreenshot%202025-07-11%20at%205.38.04%E2%80%AFPM.png?alt=media&#x26;token=b1af93a2-4290-4b55-94a8-9980aa477504" alt=""><figcaption></figcaption></figure>

### Prompt Upsampling

This will automatically enhance and expand your prompt with the aim of getting better results.

### Safety Tolerance

A value of 1 will be very safe, and many prompts may be blocked if they include violence or sexual content. A value of 6 will allow much more content to be generated.

### Output Format

You can select a PNG or JPG format.

### Import As

You can import the images as a `Sprite` or a `Texture2D`.

### Use Seed

When enabled, the same seed will be used for predictable results.

## Export Options

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FPNeBrwhh384xNFwlVCFE%2FScreenshot%202025-07-11%20at%205.38.08%E2%80%AFPM.png?alt=media&#x26;token=3aa0d9d7-e27e-45ce-b112-d2e4c3659e52" alt=""><figcaption></figcaption></figure>

You can choose the Root Folder and Naming Pattern for your generated images. Use the variables in the strings to automate the organization.

## Generated images

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2F5mMdWgyw3hzUKp1w0ntC%2FScreenshot%202025-07-11%20at%205.39.09%E2%80%AFPM.png?alt=media&#x26;token=30de4599-01db-447c-8e41-71d5c4943497" alt=""><figcaption></figcaption></figure>

Images generated will appear below the Generate Images button. Click the image to load them in the [**Image Viewer**](https://infinitypbr.gitbook.io/infinity-pbr/ai-service-integrations/image-viewer), and then click the image in the viewer to close the viewer.

## Use with AudioClip fields, lists, and arrays

Right click on the label of any  `Sprite` or `Texture2D` field, including individual items within a `list` or `array`. You can also click the array/list label to focus on the entire list.

Select "Flux Image Generator" for `Sprite` and `Texture2D` generations.

<div><figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FPdcvDtGrXKRpfCXVaT7h%2FScreenshot%202025-07-11%20at%205.30.18%E2%80%AFPM.png?alt=media&#x26;token=1b19abad-c204-4183-95e0-bbb9a14065bf" alt=""><figcaption></figcaption></figure> <figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2Fb5Zgl6Q1hqZIloonyfjz%2FScreenshot%202025-07-11%20at%205.30.29%E2%80%AFPM.png?alt=media&#x26;token=2b0b3ae4-0d2c-407c-91e2-8c200f9ae31c" alt=""><figcaption></figcaption></figure></div>

When you open the window from a field, you will see additional information in the generator window.

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FUx13ahR5RwkBCjXz350l%2FScreenshot%202025-07-11%20at%205.52.01%E2%80%AFPM.png?alt=media&#x26;token=89c15b22-05c3-483d-8f63-56e37ff752ed" alt=""><figcaption></figcaption></figure>

The content generatoed will automatically be added to the field selected.

When you select a List or Array, you'll have the option to replace the list, or append the new content to the list.

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FlPWUsRUALKhS2720aP3N%2FScreenshot%202025-07-11%20at%205.52.12%E2%80%AFPM.png?alt=media&#x26;token=a1887c65-a8c5-46d9-b33f-94fc3eac419d" alt=""><figcaption></figcaption></figure>
