[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [FLUX.2 Klein 4B LoRA](https://spiral.ai/integrations/n8n/flux-2-klein-4b-lora)

# How to Use FLUX.2 Klein 4B LoRA in n8n

FLUX.2 Klein 4B LoRA generates images from text with custom LoRA support for a learned visual style. It keeps the four-step approach of FLUX.2 Klein 4B while adding adaptation for recurring illustration work.

|  |  |
| --- | --- |
| Model | FLUX.2 Klein 4B LoRA |
| Available through | fal |
| Category | Image |
| Price | $0.013 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with FLUX.2 Klein 4B LoRA in n8n

- Every Friday, use FLUX.2 Klein 4B LoRA with my selected style adapter to draft a square reading-themed illustration, 1024 pixels on each side. Choose a different reading setting each week and collect the result for review.
- Every Monday at 9am: generate a product photo with FLUX.2 Klein 4B LoRA: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first.
- Make four logo concepts for a coffee brand called "Northline" with FLUX.2 Klein 4B LoRA.
- Create a 16:9 hero image of a quiet mountain cabin at dusk with FLUX.2 Klein 4B LoRA.
- Generate a 9:16 poster with FLUX.2 Klein 4B LoRA for a jazz night called "Blue Hour", deep navy and brass tones.

## How to set up FLUX.2 Klein 4B LoRA in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run FLUX.2 Klein 4B LoRA in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds FLUX.2 Klein 4B LoRA, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run FLUX.2 Klein 4B LoRA**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/flux-2/klein/4b/lora",
    "input": {
      "prompt": "Cheetah in pre-sprint crouch, muscles tensed, gazelle visible in distance, African savanna golden grass, dust particles in air, National Geographic wildlife…"
    }
  }'
```

Then paste one of the prompts above: n8n finds FLUX.2 Klein 4B LoRA on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## FLUX.2 Klein 4B LoRA tools and prices

- [FLUX.2 \[klein\] 4B LoRA · Text to Image](https://spiral.ai/tools/fal/fal-ai/flux-2/klein/4b/lora) (fal): $0.013 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — | The seed to use for the generation. If not provided, a random seed will be used. |
| num_inference_steps | 4 to 8 | 4 | The number of inference steps to perform. |
| image_size |  | landscape_4_3 | The size of the image to generate. |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| output_format | jpeg, png, webp | png | The format of the generated image. |
| loras |  | [] | List of LoRA weights to apply (maximum 3). |

## What can you do with FLUX.2 Klein 4B LoRA in n8n?

Prepare recurring image drafts from a written editorial plan or recurring creative brief. Keep the subject, composition, and lighting instructions explicit on each run, and collect the results for review.

### Website artwork drafts

Generate a scene from a written website brief, leaving deliberate empty space for headings. Add the final typography in the page layout.

### Editorial illustrations

Turn an article's central idea into a visual metaphor, such as an overflowing inbox for a story about distraction.

### Product concept scenes

Explore an imagined product's materials, setting, and lighting from text before commissioning photography or building a physical prototype.

### Social post artwork

Draft square scenes for social posts using a clear focal subject. Keep required wording outside the generated image.

### Storyboard planning

Generate separate scene concepts from written shot descriptions to discuss framing and mood before a shoot.

### Game item concepts

Describe individual objects such as potions, treasure chests, or tools to explore their appearance. Use a suitable style LoRA when a learned art treatment is required.

### Illustration series with a learned style

Use a selected style LoRA to carry one learned appearance across different subjects, such as a series of illustrated newsletter covers.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## FLUX.2 Klein 4B LoRA in other agents

- [Amp](https://spiral.ai/integrations/amp/flux-2-klein-4b-lora)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/flux-2-klein-4b-lora)
- [Claude](https://spiral.ai/integrations/claude-desktop/flux-2-klein-4b-lora)
- [Claude Code](https://spiral.ai/integrations/claude-code/flux-2-klein-4b-lora)
- [Cline](https://spiral.ai/integrations/cline/flux-2-klein-4b-lora)
- [Codex](https://spiral.ai/integrations/codex/flux-2-klein-4b-lora)
- [Cursor](https://spiral.ai/integrations/cursor/flux-2-klein-4b-lora)
- [Devin](https://spiral.ai/integrations/devin/flux-2-klein-4b-lora)
- [dots](https://spiral.ai/integrations/dots/flux-2-klein-4b-lora)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/flux-2-klein-4b-lora)
- [Gemini](https://spiral.ai/integrations/gemini/flux-2-klein-4b-lora)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/flux-2-klein-4b-lora)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/flux-2-klein-4b-lora)
- [goose](https://spiral.ai/integrations/goose/flux-2-klein-4b-lora)
- [Grok](https://spiral.ai/integrations/grok/flux-2-klein-4b-lora)
- [Grok Build](https://spiral.ai/integrations/grok-build/flux-2-klein-4b-lora)
- [Hermes](https://spiral.ai/integrations/hermes/flux-2-klein-4b-lora)
- [Instinct](https://spiral.ai/integrations/instinct/flux-2-klein-4b-lora)
- [Manus](https://spiral.ai/integrations/manus/flux-2-klein-4b-lora)
- [Muse](https://spiral.ai/integrations/muse/flux-2-klein-4b-lora)
- [Muse Code](https://spiral.ai/integrations/muse-code/flux-2-klein-4b-lora)
- [Notion](https://spiral.ai/integrations/notion/flux-2-klein-4b-lora)
- [OpenClaw](https://spiral.ai/integrations/openclaw/flux-2-klein-4b-lora)
- [opencode](https://spiral.ai/integrations/opencode/flux-2-klein-4b-lora)
- [Perplexity](https://spiral.ai/integrations/perplexity/flux-2-klein-4b-lora)
- [Raycast](https://spiral.ai/integrations/raycast/flux-2-klein-4b-lora)
- [VS Code](https://spiral.ai/integrations/vscode/flux-2-klein-4b-lora)
- [Windsurf](https://spiral.ai/integrations/windsurf/flux-2-klein-4b-lora)
- [Zapier](https://spiral.ai/integrations/zapier/flux-2-klein-4b-lora)

## More n8n guides

- [FLUX.2 Klein 4B Base LoRA](https://spiral.ai/integrations/n8n/flux-2-klein-4b-base-lora)
- [FLUX.2 Klein 9B](https://spiral.ai/integrations/n8n/flux-2-klein-9b)
- [FLUX.2 Klein 4B Base](https://spiral.ai/integrations/n8n/flux-2-klein-4b-base)
- [FLUX.2 Klein 9B Base](https://spiral.ai/integrations/n8n/flux-2-klein-9b-base)
- [FLUX.2 Klein 4B](https://spiral.ai/integrations/n8n/flux-2-klein-4b)
- [FLUX.2 Klein 9B Base LoRA](https://spiral.ai/integrations/n8n/flux-2-klein-9b-base-lora)

## Questions about FLUX.2 Klein 4B LoRA in n8n

**Can n8n use FLUX.2 Klein 4B LoRA?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run FLUX.2 Klein 4B LoRA like any built-in tool.

**How much does FLUX.2 Klein 4B LoRA cost in n8n?**

$0.013 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need a fal account to use FLUX.2 Klein 4B LoRA in n8n?**

You need no fal account. n8n uses one Spiral API key for every tool, and Spiral runs FLUX.2 Klein 4B LoRA on its own fal account.

**How long does it take to set up FLUX.2 Klein 4B LoRA in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while FLUX.2 Klein 4B LoRA runs?**

FLUX.2 Klein 4B LoRA runs in the background. n8n starts the run, checks on it and gives you the image when it's ready.

**What is FLUX.2 Klein 4B useful for?**

Use it to explore image ideas from written briefs, such as editorial illustrations, product concepts, and website artwork. Its distilled four-step design makes iterative visual work a sensible starting point.

**How should I write a FLUX.2 Klein prompt?**

Describe a complete scene in connected sentences: the subject, its surroundings, composition, and lighting. Klein does not automatically expand your prompt, so write the details you want to see.

**How large can FLUX.2 Klein images be?**

Black Forest Labs documents output from 64 by 64 pixels to 4 megapixels, with each dimension divisible by 16. A 1024 by 1024 image is a practical starting point for reviewing composition.

**Should I use FLUX.2 Klein for factual diagrams?**

Treat the result as an illustration draft. The model is not a source of factual information, so check structures, labels, and relationships against a reliable reference before publishing.

**How many generation steps should I start with?**

Start with four steps, the distilled model's intended generation approach. Compare the resulting composition with your brief before experimenting further.

