# flux2-models

Rule with prompting patterns for FLUX.2 models: klein, max, pro, flex, and dev. Shows the agent how to write generation and editing prompts for each variant.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 78316 repo stars
- Author: calesthio
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/flux-best-practices/rules/flux2-models.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/flux2-models

## What it does

The rule explains to the agent what each FLUX.2 variant does and how to structure prompts accordingly. klein (4B/9B parameters) is the fast model for previews, wants narrative prose with lighting emphasis. max is the strongest, needs technical camera specs (Hasselblad 90mm f/2.8, Kodak Portra 400). pro balances quality and speed, takes standard detailed prompts. flex specializes in typography, text goes in quotes with font style and placement specified.

All models support reference images for editing: up to 4 for klein, up to 8-10 for the rest. Separate editing models are no longer needed. The rule includes characteristic tables, prompt examples for each model, and editing scenarios.

Installed by creating `.claude/rules/flux2-models.md` in the project. Works in Claude Code and Codex.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/flux2-models.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/flux2-models.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/flux2-models.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/flux2-models.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/flux2-models.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/flux-best-practices/rules/flux2-models.md

## When to use it
- write a prompt for fast preview generation with FLUX.2 klein
- generate a final high-quality image through max with camera parameters
- edit an image via reference while preserving composition
- create a poster with text through flex, specifying font and text placement
- pick the right FLUX.2 model for a task and prompt style

## Example prompts
- Create `.claude/rules/flux2-models.md` with FLUX.2 prompting guidelines
- Generate a fisherman portrait through FLUX.2 max, add Hasselblad and Portra 400 parameters
- Write a flex prompt: poster with headline 'DESIGN SUMMIT 2025', bold sans-serif, white on purple-coral gradient

## Similar
- [layer-image](https://affpapa.org/en/nevibecode/skills/layer-image.md) — skill · 4900 installs
- [eachlabs-image-generation](https://affpapa.org/en/nevibecode/skills/eachlabs-image-generation.md) — skill · 351 installs
- [flux-image](https://affpapa.org/en/nevibecode/skills/flux-image.md) — skill · 238 installs
- [invokeai-image-gen](https://affpapa.org/en/nevibecode/skills/invokeai-image-gen.md) — skill · ★ 173 repo stars
- [gpt-image-2](https://affpapa.org/en/nevibecode/skills/gpt-image-2.md) — skill · 95100 installs
- [black-forest-labs-flux](https://affpapa.org/en/nevibecode/skills/black-forest-labs-flux.md) — skill · 137 installs

From the same set: [calesthio/openmontage](https://affpapa.org/en/nevibecode/by/calesthio/openmontage.md) — 101 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
