Official skills from Black Forest Labs for FLUX image generation - prompting guidelines and API integration patterns
npx claudepluginhub black-forest-labs/skillsBFL skills for image generation including best practices for prompting, T2I, I2I, structured JSON, and API integration patterns
Share bugs, ideas, or general feedback.
Official skills from Black Forest Labs for FLUX image generation models. These skills provide prompting guidelines and API integration patterns following the agentskills.io specification.
npx skills add black-forest-labs/skills
Or install individual skills:
# FLUX best practices only
npx skills add black-forest-labs/skills --skill flux-best-practices
# API integration only
npx skills add black-forest-labs/skills --skill bfl-api
You can also add this as a plugin marketplace in Claude Code:
/plugin marketplace add black-forest-labs/skills
/plugin install flux-best-practices@black-forest-labs
Comprehensive guide for all FLUX models including:
API integration guide covering:
| Model | Best For | Pricing |
|---|---|---|
| FLUX.2 [klein] | Fastest generation, real-time | from $0.014/image |
| FLUX.2 [pro] | Production balanced | from $0.03/MP |
| FLUX.2 [flex] | Typography/text | from $0.06/MP |
| FLUX.2 [max] | Highest quality, grounding search | from $0.07/MP |
| FLUX.2 [dev] | Local development | Free (non-commercial) |
All FLUX.2 models support both text-to-image and image editing natively—no need for separate models. FLUX.1 models are also available.
[Subject] + [Action] + [Style] + [Context] + [Lighting] + [Technical]
import requests
import time
API_KEY = "your-api-key"
BASE_URL = "https://api.bfl.ai"
# Submit request
response = requests.post(
f"{BASE_URL}/v1/flux-2-pro",
headers={"x-key": API_KEY},
json={"prompt": "A serene mountain landscape"}
)
polling_url = response.json()["polling_url"]
# Poll for result
while True:
result = requests.get(polling_url, headers={"x-key": API_KEY})
data = result.json()
if data["status"] == "Ready":
print(f"Result: {data['result']}") # Expires in 10 min
break
time.sleep(2)
MIT