Black Forest Labs FLUX
/install black-forest-labs-flux
Black Forest Labs FLUX
Generate images through Black Forest Labs' direct API using the bundled script in scripts/bfl-generate.sh.
Quick start
- Ensure
BFL_API_KEYis available in the environment or in/root/.clawdbot/.env. - Run:
/root/clawd/skills/black-forest-labs-flux/scripts/bfl-generate.sh "your prompt here" [output-file]
Example:
/root/clawd/skills/black-forest-labs-flux/scripts/bfl-generate.sh \
"A cinematic scene of a monkey sitting proudly on top of a red Ferrari sports car" \
/root/clawd/output/monkey-ferrari.jpg
The script prints the saved file path on success.
When to use this skill
Use this skill when:
- The user has a Black Forest Labs API key
- The user wants direct FLUX generation instead of fal.ai or another wrapper
- The user mentions BFL, Black Forest Labs, or direct FLUX model endpoints
Do not use this skill for:
- fal.ai keys (
FAL_KEY) — use built-in fal support instead - OpenAI image generation
- Google Gemini image generation
Default behavior
The script defaults to:
- model:
flux-2-pro-preview - width:
1536 - height:
1024
Override these with environment variables before running:
export BFL_MODEL=flux-pro
export BFL_WIDTH=1024
export BFL_HEIGHT=1024
Then call the script normally.
How it works
The BFL API is asynchronous:
- Submit a generation request
- Capture
polling_url - Poll until status becomes
Ready - Download the returned image URL
The bundled script already handles this flow.
Troubleshooting
- If the script says
BFL_API_KEY not set, add the key to the environment first. - If generation fails, inspect the JSON returned by the API; the script prints it to stderr.
- If the request succeeds but takes longer than expected, re-run with a simpler prompt or smaller dimensions.
scripts/
scripts/bfl-generate.sh— direct Black Forest Labs FLUX generation via API
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install black-forest-labs-flux - 安装完成后,直接呼叫该 Skill 的名称或使用
/black-forest-labs-flux触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Black Forest Labs FLUX 是什么?
Generate images with Black Forest Labs FLUX models using a direct BFL API key. Use when the user wants FLUX image generation through Black Forest Labs itself... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 90 次。
如何安装 Black Forest Labs FLUX?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install black-forest-labs-flux」即可一键安装,无需额外配置。
Black Forest Labs FLUX 是免费的吗?
是的,Black Forest Labs FLUX 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Black Forest Labs FLUX 支持哪些平台?
Black Forest Labs FLUX 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Black Forest Labs FLUX?
由 Gamal Eldien Tarek Abdelsataar(@gamaleldientarek)开发并维护,当前版本 v0.1.0。