通过 BFL API密钥使用 Black Forest Labs 的 FLUX 模型生成图像,适用于用户直接通过 Black Forest Labs 进行图像生成的场景。
Generate images through Black Forest Labs' direct API using the bundled script in scripts/bfl-generate.sh.
BFL_API_KEY is available in the environment or in /root/.clawdbot/.env.bash
/root/clawd/skills/black-forest-labs-flux/scripts/bfl-generate.sh "your prompt here" [output-file]
Example:
bash
/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.
Use this skill when:
Do not use this skill for:
FAL_KEY) — use built-in fal support insteadThe script defaults to:
flux-2-pro-preview15361024Override these with environment variables before running:
bash
export BFL_MODEL=flux-pro
export BFL_WIDTH=1024
export BFL_HEIGHT=1024
Then call the script normally.
The BFL API is asynchronous:
polling_urlReadyThe bundled script already handles this flow.
BFL_API_KEY not set, add the key to the environment first.scripts/bfl-generate.sh — direct Black Forest Labs FLUX generation via API