← 返回
未分类 Key 中文

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...
通过 BFL API密钥使用 Black Forest Labs 的 FLUX 模型生成图像,适用于用户直接通过 Black Forest Labs 进行图像生成的场景。
gamaleldientarek gamaleldientarek 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 330
下载
💾 0
安装
1
版本
#latest

概述

Black Forest Labs FLUX

Generate images through Black Forest Labs' direct API using the bundled script in scripts/bfl-generate.sh.

Quick start

  1. Ensure BFL_API_KEY is available in the environment or in /root/.clawdbot/.env.
  2. 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:

  1. Submit a generation request
  2. Capture polling_url
  3. Poll until status becomes Ready
  4. 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

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-07 16:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 136 📥 53,065
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 431 📥 117,448
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 222 📥 48,249