flux2-models — Claude Code rule: FLUX.2 prompting guide
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.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/flux2-models.mdWhat flux2-models 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.
What it helps with
- 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 for the agent
- Create
.claude/rules/flux2-models.mdwith 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
How to install flux2-models
Manually: put the files in place
.claude/rules/flux2-models.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/flux2-models.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/flux2-models.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/flux2-models.mdManually: put the files in place
.clinerules/flux2-models.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about flux2-models
How to install flux2-models in Claude Code?
Create a .claude/rules/flux2-models.md file in the project root with the rule content.
What does the flux2-models rule do?
Tells the agent how to write prompts for FLUX.2 models. For klein, use narrative prose with lighting focus; for max, technical camera specs; for flex, quote text and specify font parameters. Includes a model table, prompt examples, and reference-based editing instructions.
What is the difference between FLUX.2 klein and max?
klein has 4B or 9B parameters, generates in under a second, supports up to 4 references, prompts written as prose. max is the strongest model, maximum quality and detail, up to 8-10 references, prompts with technical parameters (camera, lens, film stock).