Interface FluxImageProviderConfig

Configuration for the BFL (Black Forest Labs) image provider.

Example

const config: FluxImageProviderConfig = {
apiKey: process.env.BFL_API_KEY!,
defaultModelId: 'flux-pro-1.1',
pollIntervalMs: 1500,
};
interface FluxImageProviderConfig {
    apiKey: string;
    baseURL?: string;
    defaultModelId?: string;
    pollIntervalMs?: number;
    timeoutMs?: number;
}

Properties

apiKey: string

BFL API key. Sent as X-Key header on all requests. Obtain from https://api.bfl.ml

baseURL?: string

Base URL for the BFL API. Override for testing or proxy setups.

Default

'https://api.bfl.ml'
defaultModelId?: string

Default Flux model to use when the request doesn't specify one.

Default

'flux-pro-1.1'
pollIntervalMs?: number

Milliseconds between status polls while waiting for generation.

Default

1000
timeoutMs?: number

Maximum milliseconds to wait for generation before timing out.

Default

120000