flux-txt2img

flux-txt2img is a skill for Claude Code from sandyup/comfyui-mcp. It costs 44 tokens per session (3,700 once invoked), scanned A, a copy of flux-txt2img, MIT.

A set of workflows for generating images from text with Flux, a family of image-generation models from Black Forest Labs. It covers several Flux model versions and the model components needed to run them locally.

In plain words
What is it for?
Use it to build ComfyUI-style Flux text-to-image workflows, choose among Flux.1 Dev SRPO, Flux 2 Klein 9B, and Turbo LoRA setups, and configure their required model files.
Why use it?
It removes the need to work out which model loaders, text encoders, VAE files, guidance settings, and step counts belong together. It also documents important model-specific limits, such as BF16-only support for one model.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the comfy plugin — 32 skills, 11 commands, 4 agents, 2 hooks shipped together

Good fit Use it to build ComfyUI-style Flux text-to-image workflows, choose among Flux.1 Dev SRPO, Flux 2 Klein 9B, and Turbo LoRA setups, and configure their required model files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sandyup/comfyui-mcp/flux-txt2img
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sandyup/comfyui-mcp --skill flux-txt2img
Clone the repo
git clone --depth 1 https://github.com/sandyup/comfyui-mcp

Made for: Claude Code.

Or install comfy, the plugin that ships this one along with the rest of its 32 skills, 11 commands, 4 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flux-txt2img

README.md
[![agentmods](https://agentmods.dev/badge/skills/sandyup/comfyui-mcp/flux-txt2img/github.svg)](https://agentmods.dev/skills/sandyup/comfyui-mcp/flux-txt2img)
Your own site
<a href="https://agentmods.dev/skills/sandyup/comfyui-mcp/flux-txt2img"><img src="https://agentmods.dev/badge/skills/sandyup/comfyui-mcp/flux-txt2img/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flux-txt2img

Your own site · 80×15
<a href="https://agentmods.dev/skills/sandyup/comfyui-mcp/flux-txt2img"><img src="https://agentmods.dev/badge/skills/sandyup/comfyui-mcp/flux-txt2img.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,700 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.03700
Opus 5 $0.00022 $0.01850
Sonnet 5 $0.00009 $0.00740
Haiku 4.5 $0.00004 $0.00370

Measured 9d ago against content hash ab07170c0195, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

flux-txt2img scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

89% identical to flux-txt2img — 54 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugin/skills/flux-txt2img/SKILL.md · 286 lines

How it starts

The opening of the file, as written. The whole thing — 286 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flux Text-to-Image Workflows

Overview

Flux is a guidance-distilled diffusion model family from Black Forest Labs. It uses a separate FluxGuidance node instead of KSampler CFG (which must always be 1.0). Three variants are available locally:

  1. Flux.1 Dev SRPO — Fine-tuned Flux.1 Dev with SRPO alignment. Uses DualCLIPLoader (T5XXL + CLIP-L). BF16 only.
  2. Flux 2 Klein 9B — Distilled Flux 2 variant. Uses single CLIPLoader (Qwen3-8B) + flux2-vae.safetensors. Fast 4-step generation.
  3. Flux 2 Turbo LoRA — Applied to Flux.1 Dev for 4-step generation.

Models

Flux.1 Dev SRPO

Component Node Model Notes
UNET UNETLoader flux.1-dev-SRPO-BFL-bf16.safetensors 22.7GB, BF16 only — FP8 produces broken results
CLIP DualCLIPLoader (type=flux) clip_name1: t5xxl_fp8_e4m3fn.safetensors, clip_name2: clip_l.safetensors T5XXL (4.7GB) + CLIP-L (235MB)
VAE VAELoader ae.safetensors Standard Flux VAE (320MB). Z-Image uses the same VAE architecture but different weights — its VAE is a separate file (z-image-ae.safetensors), not this one

Flux 2 Klein 9B

Component Node Model Notes
UNET UNETLoader bigLove_klein1.safetensors 17.3GB, Klein 9B variant
CLIP CLIPLoader (type=flux) qwen_3_8b_fp8mixed.safetensors Qwen3-8B in text_encoders/ (8.3GB)
VAE VAELoader flux2-vae.safetensors Flux 2 specific VAE (321MB)

Klein 9B vs Flux.1 Dev: Klein uses Qwen3-8B text encoder (not T5XXL + CLIP-L). It has a different VAE (flux2-vae.safetensors). 9B distilled runs in 4 steps; 9B base needs ~50 steps at CFG 5.0. Fits in ~20GB VRAM with FP8.

Flux 2 Turbo LoRA (applied to Flux.1 Dev)

Component Node Model Notes
LoRA LoraLoaderModelOnly flux2-turbo-lora.safetensors 2.6GB, strength 1.0
Alt LoRA LoraLoaderModelOnly Flux2TurboComfyv2.safetensors Community variant, same size

Read the full file on GitHub · 286 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 286 lines · 44 tokens per session scan A ab07170c0195

Subscribe to this mod's changes

flux-txt2img is a skill published in the GitHub repository sandyup/comfyui-mcp (1 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 3,700 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to flux-txt2img, differing in 54 lines, and is treated as a copy.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens