微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

🫧 Flux 2 Klein — Pro Pack on RunComfy

🫧 Flux 2 Klein — Pro Pack on RunComfy · v0.1.0
安全 unknown 级 作者 kalvinrv 公开目录收录
3.7k 下载 1 安装 18k 收藏 1 浏览

简介

🫧 Flux 2 Klein — Pro Pack on RunComfy

原始描述

Generate images with Flux 2 Klein (Black Forest Labs' distilled fast variant of Flux 2) on RunComfy — bundled with the model's documented prompting patterns...

通过你的 Agent 添加

安装目录:flux-2-klein/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/flux-2-klein-pro-pack-on-runcomfy/
Codex CLI~/.codex/skills/flux-2-klein-pro-pack-on-runcomfy/
DeepSeek Harness~/.agents/skills/flux-2-klein-pro-pack-on-runcomfy/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: flux-2-klein displayName: "🎨 Flux 2 Klein — Pro Pack on RunComfy" description: > Generate images with Flux 2 Klein (Black Forest Labs' distilled fast variant of Flux 2) on RunComfy — bundled with the model's documented prompting patterns so the agent gets sharper output than naive prompting against the same model. Knows Flux 2 Klein's strengths (sub-second latency, multi-reference brand styling, declarative subject-first prompts), the step-count strategy (4–8 for fast iteration, ~25 for polish), the 9B vs 4B variant trade-off, and when to route to Flux 2 Pro / Seedream 5 / GPT Image 2 instead. Calls runcomfy run blackforestlabs/flux-2-klein/9b/text-to-image (or /4b/) through the local RunComfy CLI. Triggers on "flux 2 klein", "flux-2-klein", "flux klein", "BFL flux 2", or any explicit ask to generate with this model. emoji: "🎨" homepage: https://www.runcomfy.com license: MIT

🎨 Flux 2 Klein — Pro Pack on RunComfy

runcomfy.com · 9B model · 4B model · docs

Black Forest Labs' Flux 2 Klein (the distilled, low-latency variant of Flux 2) hosted on the RunComfy Model API — no API key, async REST.

This skill bundles the model's documented prompting patterns — declarative subject-first prompts, step-count strategy by phase, multi-reference alignment rules, sibling-routing — so the agent gets the model's strongest output on the first or second try, instead of burning iterations on prompts the model wasn't going to nail.

Why this skill (vs calling the model raw)

A bare runcomfy run blackforestlabs/flux-2-klein/9b/text-to-image --input '{"prompt":"..."}' runs, but you'll spend several iterations relearning what Klein 9B and 4B actually respond to. This skill packs that knowledge in:

  • 9B vs 4B variant routing — 4B is sub-second 4-step inference for fast iteration; 9B trades latency for fine detail. The agent picks based on user intent (concepting → 4B, polish → 9B).
  • Step-count strategy — 4–8 steps for fast concepting and exploration; ~25 steps for polish and final output. The model is step-distilled; running 50 steps doesn't buy linearly more quality.
  • Declarative subject-first prompts — "Subject + action + lighting + camera + quality" is the structure Flux 2 Klein was trained on. Front-load the subject, not the style.
  • Multi-reference alignment — Up to 4 reference images are supported, but mixing radically different aesthetic looks confuses edits. Keep references stylistically aligned.
  • Token cap awareness — ~512 tokens max for stable output; longer prompts degrade rather than help.
  • Aspect ratio limits — capped at 16:9; max ~2K resolution. The agent doesn't ask the model for 4K.
  • Sibling routing — when Flux 2 Klein wins (real-time art direction, interactive product viz, fast iteration) vs when Flux 2 Pro / Seedream 5 / GPT Image 2 beat it (extreme high-res, embedded text precision, hyperrealistic portraits).

The agent calling this skill gets the model's strongest output on the first or second iteration — same model, sharper result.

When to pick this model (vs siblings)

Flux 2 Klein's distinct strength is latency-first creative iteration: sub-second feedback enables live art-direction sessions and rapid product visualization that batch-style models can't sustain. Pick it when iteration speed matters more than ceiling resolution.

You want Use
Real-time / live art-direction sessions Flux 2 Klein 4B ✓
Fast iteration with strong detail at the end Flux 2 Klein 9B ✓
Multi-reference brand styling with consistent looks Flux 2 Klein ✓
2K–4K hero images, max resolution Seedream 5
Maximum prompt adherence + extreme detail Flux 2 Pro
Embedded text, logos, multilingual signage GPT Image 2
Hyperrealistic portrait Nano Banana Pro

If the user said "Flux 2 Klein" / "BFL Klein" / "flux klein" explicitly, route here regardless. If they said "Flux 2" generically, ask whether they want Klein (fast) or Pro (max quality) before defaulting.

Prerequisites

  1. RunComfy CLI — npm i -g @runcomfy/cli or curl -fsSL https://runcomfy.com/install.sh | sh
  2. RunComfy account — runcomfy login opens a browser device-code flow.
  3. CI / containers — set RUNCOMFY_TOKEN=<token> instead of runcomfy login.

Endpoints + input schema

Two variants, same endpoint shape, same prompt grammar.

blackforestlabs/flux-2-klein/9b/text-to-image

The fidelity-first variant. Use for polish / final output.

Field Type Required Default Notes
prompt string yes — Up to ~512 tokens. Longer degrades.
steps int no 25 4–50. Step-distilled architecture — 4–8 enough for concepting; ~25 for polish; >25 buys little.
width int no 1024 512–1536 typical. Aspect ratio capped at 16:9, max ~2K total.
height int no 1024 Match width's aspect intent.

blackforestlabs/flux-2-klein/4b/text-to-image

The latency-first variant. Sub-second 4-step inference. Use for live iteration / concepting.

Same field set as 9B. Default steps is effectively 4 — the variant is built for that step count.

Reference images (both variants)

Up to 4 simultaneous reference images are supported on the same endpoint for style transfer / guided composition. The exact field name in the JSON body is documented on the model's API tab — pass it through the CLI verbatim. Reference-image use enables editing-style workflows without a separate /edit endpoint.

How to invoke

Fast concepting (4B, sub-second):

runcomfy run blackforestlabs/flux-2-klein/4b/text-to-image \
  --input '{"prompt": "<user prompt>"}' \
  --output-dir <absolute/path>

Polish / final (9B, ~25 steps):

runcomfy run blackforestlabs/flux-2-klein/9b/text-to-image \
  --input '{
    "prompt": "<user prompt>",
    "steps": 25,
    "width": 1024,
    "height": 1024
  }' \
  --output-dir <absolute/path>

Wide-format poster:

runcomfy run blackforestlabs/flux-2-klein/9b/text-to-image \
  --input '{"prompt": "<user prompt>", "width": 1536, "height": 864}' \
  --output-dir <absolute/path>

The CLI submits, polls every 2s until terminal, then downloads any *.runcomfy.net / *.runcomfy.com URL from the result into --output-dir. Stdout is the result JSON. Stderr is progress.

For pipe-friendly usage:

runcomfy --output json run blackforestlabs/flux-2-klein/4b/text-to-image \
  --input '{"prompt":"..."}' --no-wait | jq -r .request_id

Prompting — what actually works

These are model-specific patterns that empirically improve output quality.

Subject-first declarative grammar. The structure Flux 2 Klein was trained on is "Subject + action + scene + style + lighting + camera + quality". Front-load the subject; trail with directives. Example: "A vibrant hummingbird mid-flight sipping nectar from a bright pink hibiscus, iridescent feathers in morning sun, soft bokeh tropical garden, macro photography, razor-sharp detail, cinematic lighting".

Specificity wins over flowery language. "4k product photo, softbox lighting, reflective table, 35mm, f/2.8" guides predictably. "A really pretty product image" doesn't.

Step-count by phase.

  • Concepting: 4–8 steps on the 4B variant — sub-second feedback for live exploration.
  • Refinement: 8–15 steps still on 4B, locking in subject + framing.
  • Polish: ~25 steps on the 9B variant — texture, microdetail, fine typography.

Multi-reference alignment. When passing reference images, keep their aesthetics aligned. Mixing a watercolor + a photoreal + a 3D render in the same call confuses the editor. Pick one consistent visual register across all refs.

Conditional edits: state what stays, then what changes. "Same composition and lighting as reference, but change the background from beach to mountain studio." This pattern holds composition stable.

For text rendering (Klein has the 8B Qwen3 embedder, decent but not GPT Image 2 territory): add "crisp typography, high-contrast label" and bump steps to ~25 if the text comes out soft. For heavy in-image text or multilingual rendering, route to GPT Image 2 instead.

Anti-patterns:

  • Don't conflict adjectives. "minimalist + ornate" cancels.
  • Don't exceed ~512 tokens. The model degrades, doesn't truncate gracefully.
  • Don't ask for 4K — the model's resolution ceiling is ~2K.
  • Don't ask for ultra-wide (>16:9) — the model crops.

Where it shines

Use case Why Flux 2 Klein
Live art-direction sessions Sub-second feedback (4B) enables real-time iteration
Interactive product visualization Fast UI previews and product comps without batch waits
Multi-reference brand styling Strong style consistency across references for unified asset packs
Rapid concepting → polish workflow 4B for exploration, 9B for the final pass — same prompt grammar throughout
Consumer-GPU-friendly inference 4B variant runs on modest hardware; relevant for self-host comparisons but RunComfy-hosted is fine

Sample prompts (verified to produce strong results)

From the model page (BFL example):

A vibrant hummingbird mid-flight sipping nectar from a bright pink hibiscus
flower, iridescent emerald and sapphire feathers catching the morning sun,
soft bokeh tropical garden background, macro photography, razor-sharp
detail, cinematic lighting

Product-photo pattern:

A matte ceramic mug on a reclaimed-wood table, soft northern window light
from the left, shallow depth of field, 50mm prime, f/2.0, neutral
background, e-commerce ready, 4K product photography

Brand-consistent pair (multi-ref):

Same composition and lighting as the reference image, but the bottle
label is now blue with white sans-serif typography reading "AURA";
keep the bottle silhouette, table, and shadow exactly as in the reference

Default behavior for the calling agent

  • Pass the user's prompt through raw. Don't translate, polish, or add modifiers unless asked.
  • Pick variant by intent.
    • Unspecified or "fast / iterate / mockup" → 4B at default steps.
    • "Polish / final / hi-fi" → 9B at steps: 25.
    • User said "Flux 2 Klein" without variant → default to 9B (better all-round).
  • Pick width/height by intent.
    • Unspecified → 1024×1024.
    • "Portrait / vertical" → 1024×1536 (capped 16:9 means height ≤ 1536 if width=1024 — adjust).
    • "Landscape / banner" → 1536×864 (16:9 max).
    • Never request more than ~2K total resolution.
  • Always pass --output-dir. Default ./ if user didn't say.
  • Deliver the image. After the CLI succeeds, attach / display the file. Don't stop at "done, see X.png".

Hard constraints

  • Don't switch models without permission. If user said "Flux 2 Klein", don't substitute Flux 2 Pro, GPT Image 2, Nano Banana, or any other model.
  • Don't rewrite the prompt unless asked.
  • Don't ask the model for >2K resolution or >16:9 aspect — those will downsize/crop.

Limitations

  • Resolution ceiling ~2K — for higher native res, route to Seedream 5.
  • Aspect ratio cap 16:9 — extreme wide/tall ratios get cropped.
  • Prompt cap ~512 tokens — longer degrades quality; doesn't truncate gracefully.
  • Reference image cap 4 — more than 4 increases latency and dilutes guidance.
  • Text rendering — the 8B Qwen3 embedder helps but GPT Image 2 still wins for embedded text precision.

Exit codes

The runcomfy CLI uses sysexits-style codes:

code meaning
0 success
64 bad CLI args
65 bad input JSON / schema mismatch (e.g. width: 4096 would 422)
69 upstream 5xx
75 retryable: timeout / 429
77 not signed in or token rejected

Full reference: docs.runcomfy.com/cli/troubleshooting.

How it works

  1. The skill invokes runcomfy run blackforestlabs/flux-2-klein/<variant>/text-to-image with a JSON body matching the schema.
  2. The CLI POSTs to https://model-api.runcomfy.net/v1/models/blackforestlabs/flux-2-klein/<variant>/text-to-image with the user's bearer token.
  3. The Model API returns a request_id; the CLI polls GET .../requests/<id>/status every 2 seconds.
  4. On terminal status, the CLI fetches GET .../requests/<id>/result and downloads any URL whose host ends with .runcomfy.net or .runcomfy.com into --output-dir. Other URLs are listed but not fetched.
  5. Ctrl-C while polling sends POST .../requests/<id>/cancel so you don't get billed for GPU you stopped.

Security & Privacy

  • This skill only invokes the runcomfy CLI. No other endpoints, no telemetry, no callbacks.
  • The token saved by runcomfy login lives at ~/.config/runcomfy/token.json (mode 0600), read only by runcomfy.
  • Auto-download is restricted to *.runcomfy.net / *.runcomfy.com — a compromised model cannot trick the CLI into pulling arbitrary internet content.
  • Downloads stream to disk and abort if any single response exceeds 2 GiB.
  • No env vars are read other than RUNCOMFY_TOKEN (optional, for CI).

What this skill is not

Not a self-hosted Flux runner. Not a capability grant — depends on a working RunComfy account. Not multi-tenant.


About RunComfy

RunComfy is a hosted platform for running AI media models — image, video, audio. The Model API exposes a catalog of models behind a single async REST endpoint: submit a request, poll status, fetch results. No deployment, no GPU rental, no separate provider keys. Models on RunComfy include Black Forest Labs Flux 2 Klein (and Pro/Turbo/Flash/Kontext), OpenAI GPT Image 2, ByteDance Seedance and Seedream, Google Nano Banana 2, Wan 2.7, and many more. The runcomfy CLI wraps the API for shell / agent use, with sysexits-style exit codes, JSON output mode, and auto-download of generated files. See the full models catalog.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill