/vibe:flux-expertfrom vibe
Expert guidance on Black Forest Labs FLUX.1 image generation: dev/schnell/pro variants, ControlNet, LoRA training with ai-toolkit or SimpleTuner, VRAM optimization, and inference via diffusers, ComfyUI, or APIs.
Ships in vibe. 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.
None: SKILL.md is the whole skill.
You are an expert in Black Forest Labs' FLUX.1 family - the 12B-parameter rectified-flow transformer that took over from SDXL/SD3 as the open-weight image-gen reference in late 2024 and is now the production baseline going into 2026. You know which variant to ship, how to tune samplers, when to add ControlNet, and how to train LoRAs with ai-toolkit or SimpleTuner.
| Variant | Params | License | Steps | When to use |
|---|---|---|---|---|
| FLUX.1 [pro] / 1.1 [pro] | API only | Commercial API | ~25 | Best quality, hosted only |
| FLUX.1 [dev] | 12B | Non-commercial research | 20-50 | Best open quality, finetuning |
| FLUX.1 [schnell] | 12B | Apache 2.0 | 1-4 | Sub-2s gen, distilled, commercial-OK |
| FLUX.1 Kontext [dev] | 12B | Non-commercial | 20-30 | Image editing / instruction-following |
| FLUX.1 Tools [dev] | 12B | Non-commercial | varies | Fill, Depth, Canny, Redux conditioning |
import torch
from diffusers import FluxPipeline
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
torch_dtype=torch.bfloat16,
)
pipe.enable_model_cpu_offload() # ~16 GB VRAM with offload
img = pipe(
prompt="cinematic photo of a fox in a neon-lit alley, 35mm, shallow depth of field",
height=1024, width=1024,
guidance_scale=3.5, # Flux uses lower CFG than SDXL
num_inference_steps=28,
max_sequence_length=512, # T5 token budget
generator=torch.Generator("cuda").manual_seed(42),
).images[0]
img.save("fox.png")
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16)
img = pipe(prompt=p, num_inference_steps=4, guidance_scale=0.0, max_sequence_length=256).images[0]
pipe.load_lora_weights("user/my-flux-lora", weight_name="my_style.safetensors")
pipe.set_adapters(["default_0"], adapter_weights=[0.85])
from diffusers import FluxControlNetModel, FluxControlNetPipeline
cn = FluxControlNetModel.from_pretrained("InstantX/FLUX.1-dev-Controlnet-Union", torch_dtype=torch.bfloat16)
pipe = FluxControlNetPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", controlnet=cn, torch_dtype=torch.bfloat16)
img = pipe(prompt=p, control_image=canny_img, controlnet_conditioning_scale=0.6,
guidance_scale=3.5, num_inference_steps=28).images[0]
# config/my_flux_lora.yaml (ostris/ai-toolkit train.py)
job: extension
config:
name: my_flux_lora
process:
- type: sd_trainer
training_folder: output
device: cuda:0
network: { type: lora, linear: 16, linear_alpha: 16 }
save: { dtype: float16, save_every: 250 }
datasets:
- folder_path: /data/my_concept
caption_ext: txt
resolution: [512, 768, 1024]
train: { batch_size: 1, steps: 2000, lr: 1e-4, optimizer: adamw8bit, gradient_checkpointing: true }
model: { name_or_path: black-forest-labs/FLUX.1-dev, is_flux: true, quantize: true }
sample: { sampler: flowmatch, sample_steps: 20, guidance_scale: 3.5 }
Run with python run.py config/my_flux_lora.yaml. SimpleTuner config equivalent uses flux model_family with lora_rank: 16 and supports multi-GPU FSDP.
"a portrait of X, oil painting, dramatic side lighting, 50mm lens, rule-of-thirds"."five fingers, legible signage" callouts.max_sequence_length over 512 will silently truncate the T5 path.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
flux, image-generation, diffusion, lora, controlnet, ai-toolkit
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job