Spiral gives your agent every tool with one account. Browse the tools →

n8n · ImageReleased 2026-01-15

How to Use FLUX.2 Klein 9B in n8n

FLUX.2 Klein 9B turns written briefs into images for creative exploration and design drafts. Choose it for general image generation; FLUX.2 Klein 9B LoRA adds custom style adaptation.

Prompts to try with FLUX.2 Klein 9B in n8n

Copy an example into n8n, or ask in your own words.

Every Monday, use FLUX.2 Klein 9B to draft a square gardening illustration, 1024 pixels on each side. This week's scene is a gardener's bench with seed trays, a watering can, and young tomato plants in soft morning light. Keep the upper third quiet for a headline and include the written image brief with the draft.

FLUX.2 Klein 9Bn8n
Try asking
  • Each Friday, use FLUX.2 Klein 9B to create an illustration for the weekly reading newsletter. Show an open book beside a mug on a train table, with countryside passing beyond the window and late afternoon light across the pages. Keep the pages visually plain and reserve space above the table for text added later.

  • Each morning, use FLUX.2 Klein 9B to draft a square image for our coffee campaign. Today, show a ceramic cup beside a hand grinder on a narrow café counter, with soft light entering from the left and steam visible against the darker background. Keep the artwork free of lettering and hold it for review.

  • Every Wednesday, use FLUX.2 Klein 9B to create a square environment concept for the art review. Begin with an old harbor workshop at dusk: wooden boats under repair, coils of rope, and warm light spilling through a half-open door. On later runs, keep the location description and explore a different lighting treatment.

  • Every Monday at 9am: generate a product photo with FLUX.2 Klein 9B: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first.

How to set up FLUX.2 Klein 9B 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:

    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:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run FLUX.2 Klein 9B 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 9B, 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.

    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 9B

    One request; the result comes back by polling or a webhook.

    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/9b",
        "input": {
          "prompt": "A bright, surreal scene on a vast white salt flat under a clear blue sky, featuring two fluffy white alpacas standing in the foreground. Behind them sits a…"
        }
      }'

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

FLUX.2 Klein 9B providers and prices

Spiral runs FLUX.2 Klein 9B through fal. Open a card for today's price, with every fee included.

falImage

Settings you can ask for

FLUX.2 Klein 9B works from your prompt. Ask n8n for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number

The seed to use for the generation. If not provided, a random seed will be used.

Number of inference steps4 to 84

The number of inference steps to perform.

Number of images1 to 41

The number of images to generate.

Output formatjpeg, png, or webppng

The format of the generated image.

Every API field of FLUX.2 [klein] 9B · Text to Image is on its tool page: open its card above.

What can you do with FLUX.2 Klein 9B in n8n?

Produce recurring image drafts for editorial and campaign review. An agent running on a schedule can turn each day's written brief into a scene while carrying forward the same visual direction.

Website artwork drafts

Turn a page brief into a scene with room for a headline. Compare composition and lighting before choosing artwork for the page.

Editorial illustrations

Translate an article's central idea into a visual metaphor, such as a crowded workbench for an essay about information overload.

Product concept scenes

Describe an imagined product, its materials, and its surroundings to explore presentation ideas before a photo shoot or physical prototype.

Campaign art exploration

Create alternative scenes for the same campaign brief. Keep the subject constant while comparing framing, backgrounds, or lighting.

Game environment concepts

Explore a location's mood through written descriptions of terrain, architecture, weather, and light. Use the results as visual direction for an artist.

Presentation illustrations

Create one clear scene for a slide, with the subject placed away from the area reserved for your explanation. Add slide text afterward.

Questions about FLUX.2 Klein 9B in n8n

Can n8n use FLUX.2 Klein 9B?

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

How much does FLUX.2 Klein 9B cost in n8n?

$0.006162 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 9B in n8n?

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

How long does it take to set up FLUX.2 Klein 9B 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 9B runs?

FLUX.2 Klein 9B 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 9B good for?

Use it to explore visual ideas, draft illustrations, and compare compositions from a written brief. Black Forest Labs positions Klein for rapid prototyping, previews, and high-volume image generation.

How should I write a prompt for FLUX.2 Klein 9B?

Describe a scene in connected prose: the subject, setting, framing, and lighting. Black Forest Labs suggests roughly 40 to 70 words, with particular attention to the light source and atmosphere.

Does FLUX.2 Klein expand a short prompt automatically?

No. Include the visual details you care about in your own description, such as the material of an object, its position, and the direction of the light.

Can I trust text inside a generated image?

Check every word before using it. Black Forest Labs warns that generated text can be inaccurate or distorted, so consider adding important headlines and labels afterward.

What image size is a documented starting point?

Black Forest Labs demonstrates 1024 × 1024 output with four inference steps. That is a useful starting point for square illustrations and concept drafts.

Get started

Start using FLUX.2 Klein 9B in n8n

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into n8n:

Set up n8n

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options