flux-2-klein

Generate images with Flux 2 Klein text-to-image models via the RunComfy CLI.

12|2|Updated Aug 12, 2026
One-click install
npx skills add https://github.com/genmedia-labs/skills --skill flux-2-klein-genmedia-labs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: flux-2-klein
Source: https://github.com/genmedia-labs/skills/tree/main/flux-2-klein
Command: npx skills add https://github.com/genmedia-labs/skills --skill flux-2-klein-genmedia-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @runcomfy/cli.

What problem does it solve? Generating images with Flux 2 Klein requires knowing the right endpoint variant, step counts, resolution limits, and prompting grammar; this Skill packages that model-specific knowledge so prompts produce strong output on the first attempts instead of trial-and-error against the API. ## Core Features & Use Cases - Dual-variant routing: Choose between the 4B variant for sub-second live iteration and the 9B variant for polished final output, with step-count guidance per phase (4–8 for concepting, ~25 for polish). - Model-specific prompting patterns: Applies Flux 2 Klein's subject-first declarative grammar, multi-reference alignment rules, and conditional-edit phrasing documented for this model. - Routing decisions: Directs requests to Flux 2 Pro, Seedream 5, or GPT Image 2 when the task needs max resolution, prompt adherence, or embedded text instead of low latency. - Use Case: A designer runs a live art-direction session, iterating on product visuals in sub-second cycles with the 4B variant, then re-renders the winning concept at 25 steps on the 9B variant for the final asset. ## Quick Start Ask the agent to generate an image with Flux 2 Klein, for example: "Use Flux 2 Klein to generate a product photo of a matte ceramic mug on a wooden table with soft window light."

Frequently Asked Questions about flux-2-klein

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images with Flux 2 Klein?▼

Install the RunComfy CLI with npm i -g @runcomfy/cli, authenticate via runcomfy login, then run runcomfy run blackforestlabs/flux-2-klein/9b/text-to-image with a JSON input containing your prompt. The CLI polls until completion and downloads the output to your specified directory.

What is the difference between Flux 2 Klein 4B and 9B?▼

The 4B variant is latency-first, delivering sub-second 4-step inference for live iteration and concepting. The 9B variant is fidelity-first, using around 25 steps for polished final output with stronger texture and microdetail.

When should I use Flux 2 Pro or GPT Image 2 instead of Flux 2 Klein?▼

Route to Flux 2 Pro for maximum prompt adherence and extreme detail, Seedream 5 for 2K–4K hero images, and GPT Image 2 for embedded text, logos, or multilingual signage. Flux 2 Klein is best when iteration speed matters more than ceiling resolution.

Does Flux 2 Klein support reference images for style transfer?▼

Yes, both variants accept up to four simultaneous reference images on the same endpoint for style transfer and guided composition. Keep reference aesthetics aligned, since mixing watercolor, photoreal, and 3D styles in one call degrades results.

What are the resolution and prompt limits of Flux 2 Klein?▼

The resolution ceiling is approximately 2K, aspect ratio is capped at 16:9, and prompts degrade beyond roughly 512 tokens. Requests exceeding these limits are cropped or produce lower-quality output rather than failing cleanly.

Why does the RunComfy CLI return exit code 77?▼

Exit code 77 means you are not signed in or your token was rejected. Run runcomfy login to complete the browser device-code flow, or set the RUNCOMFY_TOKEN environment variable in CI and container environments.