/dw:flux3-kleinfrom dw
Generates images via FLUX 3 Image Klein on a dw MCP server: text-to-image, photo editing, multi-reference composition, and layout with boxed elements. Handles template selection, distilled schedule, size grid, reference rules, cost quoting, and points to BFL's upsampler and prompting guide.
Ships in dw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
FLUX 3 Image Klein (Black Forest Labs) is a 5.6B distilled flow map that draws text-to-image, edits and multi-reference images in 16 steps. It pairs the FLUX.2 VAE with a Qwen3-VL-4B text encoder, about 19 GB of bf16 weights. Klein was trained on long captions written by BFL's prompt upsampler, and BFL says not to run it without one: a short prompt gives a generic picture.
This skill is written for dw 0.23.1; get_server_info's plugin says whether that is current.
get_server_info: the device. The templates place every component on
cuda. Apple Silicon is unmeasured (the same 19 GB of weights in unified
memory, plus activations); on mps say so before spending, and
on cpu stop.get_diffusers_state, then list_classes for
Flux3DistilledModularPipeline. The modular pipeline is in diffusers
main only (merged 2026-10-15). If it is missing, the server needs
update_diffusers and a restart. That is the user's call; ask first.hf auth login; a 401 or
GatedRepoError in get_job means one of those is missing. The
upsampler is Apache-2.0 and ungated.list_workflows(shape="image") for the text-to-image templates and
list_workflows(shape="image-edit") for the edit ones. Take names,
summary and cost from the listing over the names quoted below, then
get_workflow on the one chosen, for its variables.templates/flux3/upsample-then-generate. The upsampler writes the caption,
is released, and Klein draws from it. The caption is saved as an
intermediate text file: read it, and reuse or edit it as the prompt of
text-to-image without paying for the upsampler again.templates/flux3/text-to-image.templates/flux3/image-edit, an instruction
and an image. The upsampler sees the same picture as the pipeline. With
no width or height the output is 1 MP at the reference's aspect ratio.templates/flux3/multi-reference, an instruction and images in order.
The first reference sets the aspect ratio.templates/flux3/layout-boxes. The
caption carries the boxes; the format is in references/layout-boxes.md.
Boxes from a short request (BFL's box upsampler) are not in the catalog
yet, so the caption is written by hand.Input media must be on the server: upload_asset, then asset: in the
argument, or output: for an earlier run's file.
num_inference_steps at 16 (trained for 4-16) and add no
guidance_scale or negative_prompt to a workflow you write.width and height are multiples of 16 (the VAE's 8x times the 2x2
latent packing). The pipeline only refuses an off-grid size after the
weights load, so the templates declare the rule and validate_workflow
catches it first.<ref_image_0>,
<ref_image_1> and so on, zero-based in the order given. The upsampler's
own captions say "the first image", "the second image".device. The modular pipeline runs
on its first component's device, so one left unplaced keeps the prompt
and the noise on the CPU (index is on cpu, Cannot generate a cpu tensor from a generator of type cuda). For the same reason the text
encoder cannot be residency: on_demand.release_models on the upsample step and load Klein
after it.remove_blocks: ["prompt_upsampler"], so the explicit upsample step is the only
upsampler and Klein receives the caption as written, never rewritten twice. A Klein
workflow you author needs the same setting, plus load_components.names listing only
the four components the run uses.The prompt path is the upsampler. The builtins flux3_klein_upsample (a
request to a caption) and flux3_klein_upsample_edit (an instruction plus
the references to a caption) run BFL's flux-3-image-klein-pup with BFL's
own system prompts, read from the pup repository at a pinned commit. The
templates call them; a workflow you compose names them as a builtin: step
before the Klein step.
To write a caption by hand, read BFL's prompting guide:
https://docs.bfl.ml/guides/prompting_summary. It is written for the API
model, which upsamples on the server side, so read it as a description of
the caption Klein expects, not as advice for a short prompt. The stored
flux3/ prompts (list_prompts, get_prompt) are BFL's own upsampled
captions, man_dog and balloons_layout: read one before writing your own.
The upsampler writes English only.
A shot size, camera move or look in film words: the cinematography
skill's Klein table. A still has no move; it becomes framing.
Starting from a result rather than a template: references/intents.md.
validate_workflow first - free, and catches an off-grid size.plan.estimate and name any downloads_required (Klein, plus the
upsampler for every template but text-to-image and layout-boxes). Do not
quote minutes from memory: the estimate is the number. More references
cost more per step, because each one adds tokens. Get the go-ahead, then
run_workflow with acknowledged_cost set to the plan's
{fingerprint, minutes, downloads}.wait_for_job, timeout_seconds = estimate plus margin. Call again
while still_running. If the call dies client-side first, call again
with timeout_seconds 60 and loop.subfolder: the image shown to the user is
final, the upsampler's caption intermediate.
list_gallery(subfolder="final") lists only deliverables, so keep both
in anything you compose.get_output_image on the final image against the
ask, and get_output_text on the caption when the picture misses - the
caption is what Klein drew. Then get_job for the manifest and its
warnings, and give the user the gallery url.get_job_workflow, save_workflow) to rerun it by name.What goes wrong, and where to look:
compare_outputs.get_output_text. The edit templates always re-upsample: their
prompt is the upsampler's output and they have no caption variable. Either narrow the
instruction and rerun, or reuse the corrected caption: get_workflow on
the edit template, and compose a one-step workflow from its Klein step
with the caption as prompt and the same image list. Text-to-image is no
answer here, since it drops the references.The flux-3-image-klein and flux-3-image-klein-pup model cards (Hugging Face),
BFL's flux-3-image-klein GitHub repository (commit bbfe317d), docs.bfl.ml,
and diffusers.modular_pipelines.flux3. Read 2026-10-15.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
flux3, image-generation, text-to-image, photo-editing, multi-reference
npx claudepluginhub dkackman/diffusers-workflow --plugin dw12 skills in this plugin
/choosing-a-modelUse when a dw MCP server is connected and the user asks for a picture without naming a model family, workflow or model ("draw a lighthouse", "make me an image of...", "the best you can do"). Routes the request to the server's preferred model through templates/preferred/text-to-image and its tier, keeps SD 1.5 for "does it work" smoke tests, lets a named family or workflow win, and reads the plan's preference line before spending./cinematographyUse when a dw MCP server is connected and the user directs the camera or the look - a shot size, a camera move (dolly, crane, orbit, whip pan, crash zoom), a lens, lighting, a film era, a pace, or a named colour grade (noir, teal-orange, 70s stock, VHS, bleach bypass) - for an H3, LTX-2.5, Kandinsky 6, FLUX 3 Klein or MiniMax-H3-Image generation. Gives a closed vocabulary and the one sentence each value becomes in that family's own caption format, and the grades as apply_lut palettes plus film_grain./kandinsky-6Use when a dw MCP server is connected and the user wants Kandinsky 6.0 video - a five-second clip with its own soundtrack from text, or from a picture that becomes the first frame. Picks the template, states the distilled schedule and the size and frame rules the pipeline does not enforce for you, quotes cost, and points at Kandinsky Lab's own prompt format./long-formUse when a dw MCP server is connected and the request is longer than one clip - a scene to block, a long take, a series, a music video, or music or narration longer than one generation. Splits the piece into scenes, picks per scene a single clip, cuts or a chain, sets the chain's shot preset and per-segment check, repairs one bad segment in place, joins long narration and music, and exports the cut for an editor. Every rule cites the bench record it came from./ltx-2.5Use when a dw MCP server is connected and the user wants LTX-2.5 video - a short clip with its own soundtrack, a clip from one picture or between two, a sharper full-size render, a 2x upscale of its own or the user's clip, a subject held across a clip from a reference sheet, a blurry or compressed clip restored, a black-and-white clip colourised, an alpha matte pulled from a clip, or a clip extended or chained longer. Picks the template, states schedule and size rules, quotes cost, and carries the trained caption spec the prompt must follow./minimax-h3Use when a dw MCP server is connected and the user wants MiniMax H3 video - a clip with its own sound, dialogue or a speaking character, a music video, a multi-shot short with cuts, a longer take, or a consistent subject/voice from a reference. Picks the template, states the rules that bite, quotes cost, points at MiniMax's prompt guides.Other plugins' skills for the same job