# Black Forest Labs

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

- Repository: https://github.com/Anil-matcha/awesome-muse-connectors (1403 stars)
- Category: Media
- License: MIT
- Last updated: 2026-10-13
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add Anil-matcha/awesome-muse-connectors --skill black-forest-labs -g -a claude-code -y`
Codex: `npx skills add Anil-matcha/awesome-muse-connectors --skill black-forest-labs -g -a codex -y`
Cursor: `npx skills add Anil-matcha/awesome-muse-connectors --skill black-forest-labs -g -a cursor -y`
Gemini CLI: `npx skills add Anil-matcha/awesome-muse-connectors --skill black-forest-labs -g -a gemini-cli -y`

## 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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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.

The rest: https://github.com/Anil-matcha/awesome-muse-connectors/blob/HEAD/connectors/black-forest-labs/SKILL.md
