flux-2-klein

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

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/brillianodhiya/VisionScript --skill flux-2-klein-brillianodhiya
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: flux-2-klein
Source: https://github.com/brillianodhiya/VisionScript/tree/main/.agents/skills/flux-2-klein
Command: npx skills add https://github.com/brillianodhiya/VisionScript --skill flux-2-klein-brillianodhiya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @runcomfy/cli.

What problem does it solve? Choosing the right Flux 2 Klein variant, step count, and prompt structure is non-obvious, and naive prompting against the model produces weak results. This Skill bundles the model's documented prompting patterns, endpoint schemas, and routing guidance so image generation requests produce sharper output on the first attempt. ## Core Features & Use Cases - Variant routing: Picks between the 4B variant (sub-second latency for live iteration) and the 9B variant (~25 steps for polished final output), and redirects to Flux 2 Pro, Seedream 5, or GPT Image 2 when the task exceeds Klein's limits. - Model-specific prompting guidance: Applies subject-first declarative grammar, step-count-by-phase strategy, and multi-reference alignment rules that empirically improve Flux 2 Klein output. - CLI-based generation: Invokes runcomfy run blackforestlabs/flux-2-klein/<variant>/text-to-image with validated JSON input, async polling, and automatic download of results. - Use Case: During a live art-direction session, iterate on product visualizations at 4-8 steps on the 4B variant, then re-run the same prompt at 25 steps on the 9B variant for the final asset. ## Quick Start Ask the AI 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 --input '{"prompt": "..."}' --output-dir <path>`. The CLI polls until completion and downloads the result.

Flux 2 Klein 4B vs 9B: which variant should I use?▼

Use the 4B variant for sub-second latency during live iteration and concepting at 4-8 steps. Use the 9B variant at around 25 steps for polished final output with stronger texture and microdetail. Both share the same endpoint shape and prompt grammar.

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. Klein's strengths are latency-first iteration and multi-reference brand styling.

What are the limitations of Flux 2 Klein image generation?▼

Flux 2 Klein caps resolution at roughly 2K, aspect ratio at 16:9, prompts at about 512 tokens, and reference images at 4 per call. Exceeding the token cap degrades quality rather than truncating, and extreme aspect ratios get cropped.

How many steps should I use for Flux 2 Klein prompts?▼

Use 4-8 steps on the 4B variant for concepting, 8-15 steps for refinement while locking subject and framing, and around 25 steps on the 9B variant for polish. The step-distilled architecture gains little beyond 25 steps.

Why does the runcomfy CLI return exit code 77?▼

Exit code 77 means you are not signed in or the 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.