Member Junction
    Preparing search index...

    Black Forest Labs FLUX Image Generator implementation. Supports FLUX.2 Pro, FLUX 1.1 Pro, and other FLUX models via the BFL API.

    BFL uses an async task-based API:

    1. Submit generation request -> get task ID
    2. Poll for result until ready
    3. Retrieve generated image URL

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get apiKey(): string

      Only sub-classes can access the API key

      Returns string

    Methods

    • Helper method to convert image input (Buffer, base64, or URL) to the format required by the specific provider. Subclasses can override as needed.

      Parameters

      • input: string | Buffer

        Image as Buffer, base64 string, or URL

      Returns Promise<{ base64: string; buffer: Buffer }>

      Normalized image data

    • Configure polling behavior for async task completion

      Parameters

      • config: Partial<BFLPollingConfig>

      Returns void