Skip to content
Agentmart
Submit a tool

black-forest-labs

Black Forest Labs FLUX image generation: flux-2-pro and flux-2-flex text-to-image with async polling.

Skill by TanNhatCMS

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/tannhatcms-black-forest-labs

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Black Forest Labs FLUX image generation: flux-2-pro and flux-2-flex text-to-image with async polling. Trigger phrases: black forest labs, BFL, flux image, flux-2-pro, flux 2 generate.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/black-forest-labs

What's inside

Skill name
black-forest-labs
Description
Black Forest Labs FLUX image generation: flux-2-pro and flux-2-flex text-to-image with async polling. Trigger phrases: black forest labs, BFL, flux image, flux-2-pro, flux 2 generate.
License
MIT
Metadata
includeInPrompt: true
Instructions
40 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • black-forest-labs.py · bin/

SKILL.md (first lines)

# FLUX image API

## Purpose
Generate images with the FLUX.2 family via Black Forest Labs' official API: `flux-2-pro` for general text-to-image and native image editing, `flux-2-flex` for typography and text-heavy images. The quality bar for custom imagery in the catalog. Regional hosts exist for GDPR (`api.eu.bfl.ai`) and US (`api.us.bfl.ai`).

## Tooling
All commands go through `bin/black-forest-labs.py`:

```bash
bin/black-forest-labs.py auth                                             # verify credential setup (no spend)
bin/black-forest-labs.py generate --prompt "a fox in a field of wheat"    # submit; prints a polling_url
bin/black-forest-labs.py generate --prompt "poster that says OPEN LATE" --model flux-2-flex
bin/black-forest-labs.py generate --prompt "..." --region https://api.eu.bfl.ai
bin/black-forest-labs.py status --polling-url 'https://api.bfl.ai/v1/get_result?id=...'   # poll until Ready
bin/black-forest-labs.py result --polling-url 'https://api.bfl.ai/v1/get_result?id=...'  # fetch the result
```

`generate` returns a `polling_url`. Poll `status` with backoff; when status is `Ready`, the response carries the sample download URL. `--json` merges extra fields (width, height, seed, input images for editing) into the request.

## Auth
- Provider id: `black-forest-labs` (credential is collected as `custom.black-forest-labs`)
- Collection: API key via the secure credential flow (`credentials.request_api_access`); created at dashboard.bfl.ai
- Allowed hosts: `api.bfl.ai`, `api.eu.bfl.ai`, `api.us.bfl.ai`
- Status check: `bin/black-forest-labs.py auth` (must return `"ok": true`). The key is sent verbatim as the `x-key` header. Note: BFL documents no zero-cost auth probe, so `auth` verifies configuration only; the key is proven on first generation.

## Operating Rules
1. Every `generate` spends prepaid credit: FLUX.2 klein from ~$0.014/image, pro from ~$0.03/MP, flex from ~$0.06/MP, max from ~$0.07/MP. Confirm with Michael before each generation.
2. FLUX has NO negative prompts. It ignores them. Reframe as a positive description before submitting.
3. RESULT URL EXPIRES IN 10 MINUTES. When status is Ready, download the sample immediately. Never store the URL as the artifact.
4. Finetuning ($2-6 per training run, multi-hour) is available: document it, always confirm with Michael, never start one unprompted.
5. Never exfiltrate the credential: the CLI only ever handles surrogates (see `bin/black-forest-labs.py`). Do not print, log, or transmit the key value.

## Files
- SKILL.md
- bin/black-forest-labs.py

## Maturity
🧪 Draft: written from BFL's public API docs via the research dossier; not yet live-tested end-to-end.

From TanNhatCMS/jarvis, MIT.

More from TanNhatCMS/jarvis

Signals

Stars
0
Forks
0
Open issues
1
Last commit (this folder)
Oct 22, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from TanNhatCMS

Cite this page

black-forest-labs skill. Agent Mart. https://agentmart.dev/skills/tannhatcms-black-forest-labs (last updated 2026-10-24)