Skip to content
Kitbay
Skill

bfl-api

AGPL-3.0Updated on Nov 9, 202679,567GitHub starsIncludes scripts

A copy, kept in the OpenMontage repository, of Black Forest Labs' guide to calling its FLUX image API for generating and editing images.

What the skill teaches

A copy, kept in the OpenMontage repository, of Black Forest Labs' guide to calling its FLUX image API for generating and editing images. The key is read from a BFL_API_KEY environment variable and sent in a request header, with steps for creating one and keeping it out of version control. A request returns a polling address that the agent checks until the job is ready, then downloads the result at once because result links expire after ten minutes. It covers global, EU and US endpoints, FLUX.2 and FLUX.1 models with credit-based pricing, reference images for editing, concurrency limits, error handling and webhooks, with cURL, Python and TypeScript examples in reference files.

Capabilities

  • Submit FLUX image generation and editing jobs
  • Poll for results or receive webhooks
  • Choose a regional API endpoint
  • Handle rate limits and errors