← Back to Skills Marketplace
gamaleldientarek

Black Forest Labs FLUX

by Gamal Eldien Tarek Abdelsataar · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
90
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install black-forest-labs-flux
Description
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...
README (SKILL.md)

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
Usage Guidance
This skill likely does what it claims (submits prompts to api.bfl.ai and downloads images), but there are a few practical concerns to consider before installing or running it: - The script expects BFL_API_KEY but the skill metadata does not declare this — you should provide a valid BFL_API_KEY environment variable before running. Prefer setting only that key in the agent environment rather than relying on shared env files. - The script automatically sources /root/.clawdbot/.env if it exists. That file may contain other secrets (tokens, keys). Inspect /root/.clawdbot/.env and remove unrelated secrets or modify the script to avoid sourcing it if you do not want it read. - Ensure the runtime has curl and python3 available (the metadata did not list these binaries). If they are missing the script will fail. - Note the default output path (/root/clawd/output) and the script creating directories under /root; adjust paths or permissions if that is undesirable. If you want higher assurance: ask the skill author/maintainer to (1) update the manifest to declare BFL_API_KEY and required binaries, (2) remove or document the automatic sourcing of /root/.clawdbot/.env, or (3) provide an option to explicitly pass the API key rather than implicitly sourcing files.
Capability Analysis
Type: OpenClaw Skill Name: black-forest-labs-flux Version: 0.1.0 The skill provides a legitimate interface for generating images via the Black Forest Labs FLUX API. The core logic in `scripts/bfl-generate.sh` uses standard tools (curl and python) to submit prompts, poll for results, and download images to a designated output directory. It correctly handles API authentication using environment variables and follows the documented asynchronous flow of the BFL service without any signs of malicious intent, data exfiltration, or obfuscation.
Capability Assessment
Purpose & Capability
The skill's stated purpose (direct Black Forest Labs FLUX image generation) matches the script's actions (POST to https://api.bfl.ai and polling). However the package metadata declares no required environment variables or binaries, while the script requires BFL_API_KEY and uses curl and python3. This mismatch between declared requirements and actual needs is incoherent and could mislead install-time checks or users.
Instruction Scope
SKILL.md instructs using the bundled script and says BFL_API_KEY must be in the environment or /root/.clawdbot/.env. The script will source /root/.clawdbot/.env if present, which may load unrelated secrets or variables from that file. The script also writes output to /root/clawd/output by default. Reading/sourcing a root-scoped env file is broader scope than strictly required to accept a single API key and is worth scrutinizing.
Install Mechanism
There is no install spec (instruction-only plus a script). That is low-risk from an installation/download perspective; nothing is fetched or extracted at install time.
Credentials
The script requires a BFL_API_KEY (and optionally BFL_MODEL/BFL_WIDTH/BFL_HEIGHT) but the skill metadata does not declare any required env vars or a primary credential. The script also sources /root/.clawdbot/.env automatically, which could expose other environment variables or secrets stored there. The requested environment access is not fully documented in the manifest.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or cross-skill privileges. It does not modify other skills' configs. Its actions are limited to making network requests to the BFL API and writing image files to the output directory.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install black-forest-labs-flux
  3. After installation, invoke the skill by name or use /black-forest-labs-flux
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release
Metadata
Slug black-forest-labs-flux
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 90 downloads so far.

How do I install Black Forest Labs FLUX?

Run "/install black-forest-labs-flux" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Black Forest Labs FLUX free?

Yes, Black Forest Labs FLUX is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Black Forest Labs FLUX support?

Black Forest Labs FLUX is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Black Forest Labs FLUX?

It is built and maintained by Gamal Eldien Tarek Abdelsataar (@gamaleldientarek); the current version is v0.1.0.

💬 Comments