一键导入
lightflow-flux-text-to-image
Use this skill when working with the lightflow.flux_text_to_image workflow, syncing FLUX models, or generating images from prompts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill when working with the lightflow.flux_text_to_image workflow, syncing FLUX models, or generating images from prompts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill when working with the lightflow.flux_image_edit workflow, prompt-guided image editing, or FLUX image-edit model sync.
Use this skill when working with the lightflow.flux_inpaint workflow, masks, local repainting, or FLUX inpaint model sync.
Use this skill when working with the lightflow.flux_preview_text_to_image deterministic preview workflow or testing FLUX pipelines without a model backend.
Use this skill when working with the lightflow.flux_text_to_image_router workflow or routing image generation between real FLUX and preview runtimes.
| name | LightFlow FLUX Text To Image |
| description | Use this skill when working with the lightflow.flux_text_to_image workflow, syncing FLUX models, or generating images from prompts. |
| version | 0.1.0 |
Use lightflow.flux_text_to_image to generate images from text prompts through the LightFlow FLUX runtime.
lightflow.flux_text_to_imageprompt, negative, width, height, seed, count, steps, guidance, output_path, output_template, model.image, image_path, images, image_paths.lightflow.image.generate.flux_model, llm_model, and vae_model.image artifacts; model is bound to flux_model; width, height, count, steps, and guidance include editor ranges.Run lfw sync lightflow.flux_text_to_image --auto-model --apply before a real generation run. The preferred runtime is LightFlow built with --features flux-native. Native text-to-image keeps a loaded FLUX/Qwen/VAE session in the LightFlow process, reuses it for later images with the same locked model paths, and sends count > 1 requests as one native batch call.
For ComfyUI-style residency across requests, use a long-lived LightFlow process such as lfw serve; one-shot lfw run commands release the native session when the process exits.
This project also includes a stable-diffusion.cpp adapter for builds without flux-native. Configure it only when using the external fallback:
export LIGHTFLOW_SD_CLI=/path/to/stable-diffusion.cpp/build/bin/sd-cli
export LIGHTFLOW_FLUX_RUNNER="$PWD/scripts/sd-cli-flux-runner"
The adapter validates sd-cli, model files, and source assets before loading models. The external fallback is process-per-call; use native execution for performance work.
lfw sync lightflow.flux_text_to_image --auto-model --apply
lfw run lightflow.flux_text_to_image \
-i prompt='"a quiet lake at sunrise"' \
-i width=768 \
-i height=768 \
-i output_path='"out/lake.png"'
Fast real-backend smoke test:
cargo run --manifest-path ../LightFlow/Cargo.toml --features flux-native --bin lfw -- \
run lightflow.flux_text_to_image \
-i prompt='"real FLUX smoke test, small red cube"' \
-i width=128 \
-i height=96 \
-i seed=11 \
-i steps=1 \
-i guidance=1.0 \
-i output_path='"/tmp/lightflow-flux-test/runner-real.png"'
lfw node test lightflow.flux_text_to_image
Start lfw serve, then call the workflow through the shared HTTP run contract. Adjust inputs to match the workflow contract above.
curl -sS -X POST http://127.0.0.1:5174/workflows/lightflow.flux_text_to_image/run \
-H 'content-type: application/json' \
-d '{"inputs":{}}'