Integrate BFL FLUX API in Python or TypeScript to generate, edit, and process images, while applying best prompting practices for T2I, I2I, JSON structures, typography, colors, and model-specific optimizations like async polling, rate limits, webhooks, and error handling.
npx claudepluginhub black-forest-labs/skills --plugin flux-best-practicesBFL FLUX API integration guide covering endpoints, async polling patterns, rate limiting, error handling, webhooks, and regional endpoints with Python and TypeScript code examples.
Comprehensive guide for BFL FLUX image generation models. Covers prompting, T2I, I2I, structured JSON, hex colors, typography, multi-reference editing, and model-specific best practices for FLUX.2 and FLUX.1 families.
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
Generate optimized prompts for Gemini 2.5 Flash Image (Nano Banana). Use for image generation, crafting photo prompts, art styles, or multi-turn editing workflows with best practices.
Share bugs, ideas, or general feedback.
GPT Image 2 CLI as a Claude Code skill: OpenAI gpt-image-2 + Codex image_generation under one command surface, with masks, transparent backgrounds, custom sizes up to 4K, and structured JSON / JSONL progress output.
AI image generation with creative workflow orchestration, parallel multi-direction output, prompt engineering, and a 1,300+ curated inspiration library. Requires MeiGen MCP server (supports MeiGen Cloud, local ComfyUI, and OpenAI-compatible APIs).
Claude Code plugin for ComfyUI — generate images, visualize workflows, manage models, and explore custom nodes
OpenAI GPT Image 2 prompt gallery, image prompt library, agentic skill + CLI. Curated text-to-image prompts, reference-image editing workflows, and split gallery atlas for skill-capable agent runtimes.
AI image generation Creative Director powered by Google Gemini Nano Banana models. Claude interprets intent, selects domain expertise, constructs optimized prompts, and orchestrates Gemini for best results.