# FLUX.2 (https://docs.fuser.studio/docs/nodes/image/flux-2)

_Provided by [Fal](https://fal.ai) — [Learn More](https://bfl.ai/blog/flux-2)._

## Inputs [#inputs]

- **Prompt** (`textarea`) — The prompt to generate an image from. You can reference colors directly in the prompt (e.g. `#FF0000`), or directly reference fields (e.g. `@scene`, `@style`, `@camera`). You can also use the following JSON example to format your JSON prompt.

```json
{
  "scene": "Post-apocalyptic survivor portrait",
  "subjects": [
    {
      "type": "survivor",
      "description": "A lone individual with a dust-covered face.",
      "pose": "Looking directly at the camera.",
      "position": "foreground"
    }
  ],
  "style": "Gritty realism",
  "color_palette": [
    "#5A4A40",
    "#8B7568",
    "#D3C0B0"
  ],
  "lighting": "Dramatic, harsh sunlight",
  "mood": "Hopeful resilience",
  "background": "A desolate, ruined urban landscape.",
  "composition": "Close-up, Dutch angle",
  "camera": {
    "angle": "Dutch angle",
    "distance": "Close-up",
    "focus": "Sharp focus on the survivor's face",
    "lens": "Prime lens",
    "f-number": "f/2.8",
    "ISO": 400
  },
  "effects": [
    "Dust particles",
    "Halation around light sources",
    "Desaturated colors"
  ]
}
```

- **Images** (`image`) _(accepts multiple)_ — Images to edit or create variations from. You can use a maximum of 3 images for [dev] model, 9 for [pro], and 10 for [flex] model to combine their features, or use a single image to edit or create variations from.

   Optional: `true`

- **Image Size** (`dropdown`) — The size of the generated image.

   Optional: `true` • Default: `square` • Accepts: `Square (1:1)`, `Portrait 4:3`, `Portrait 16:9`, `Landscape 4:3`, `Landscape 16:9`

- **Model Type** (`dropdown`) — The type of model to use.

   Optional: `true` • Default: `turbo` • Accepts: `Turbo`, `Dev`, `Pro`, `Max`, `Flex`, `Klein 4B`, `Klein 9B`

- **Steps** (`slider`) — The number of inference steps to perform.

   Optional: `true` • Default: `8` • Minimum: `2` • Maximum: `50`

- **Seed** (`seed`) — The same seed and prompt will output the same image every time.

   Optional: `true` • Default: `9076`

- **CFG Scale** (`slider`) — Classifier Free Guidance controls how closely the generated image adheres to the text prompt you provide. Accepts values between 0 and 20.

   Optional: `true` • Default: `2.5` • Minimum: `0` • Maximum: `20`

- **Expand Prompt** (`toggle`) — Whether to expand the prompt using the model's own capabilities

   Optional: `true` • Default: `true`

- **Block NSFW** (`toggle`) — Prevents the model from generating images that portray nudity, violence, and other unsafe content.

   Optional: `true` • Default: `false`

- **Output Format** (`dropdown`) — The file format for the output image.

   Optional: `true` • Default: `jpeg` • Accepts: `PNG`, `JPEG`, `WebP`

## Outputs [#outputs]

- **Generated Image** (`image`) — The generated image from the model.