Interface: FluxImageProviderConfig
Defined in: packages/agentos/src/io/media/images/providers/FluxImageProvider.ts:65
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,
};
Properties
apiKey
apiKey:
string
Defined in: packages/agentos/src/io/media/images/providers/FluxImageProvider.ts:70
BFL API key. Sent as X-Key header on all requests.
Obtain from https://api.bfl.ml
baseURL?
optionalbaseURL:string
Defined in: packages/agentos/src/io/media/images/providers/FluxImageProvider.ts:76
Base URL for the BFL API. Override for testing or proxy setups.
Default
'https://api.bfl.ml'
defaultModelId?
optionaldefaultModelId:string
Defined in: packages/agentos/src/io/media/images/providers/FluxImageProvider.ts:82
Default Flux model to use when the request doesn't specify one.
Default
'flux-pro-1.1'
pollIntervalMs?
optionalpollIntervalMs:number
Defined in: packages/agentos/src/io/media/images/providers/FluxImageProvider.ts:88
Milliseconds between status polls while waiting for generation.
Default
1000
timeoutMs?
optionaltimeoutMs:number
Defined in: packages/agentos/src/io/media/images/providers/FluxImageProvider.ts:94
Maximum milliseconds to wait for generation before timing out.
Default
120000