OptionalbaseUrl: stringProtectedCancelledThe result for a request its CancellationToken ended, before or during the provider call. A
caller cancellation is classified Cancelled, Fatal and never failed over; an abort caused by
a timeout reads as a retriable network error.
The request's cancellation signal, read for why it was aborted.
Optionalerror: unknownThe error the abort raised, if any.
ProtectedcreateHelper method to create an error result with proper timing
ProtectedcreateHelper method to create a successful result with proper timing
Create variations of an existing image. Uses image-to-image generation with the original as a reference.
Edit an existing image using FLUX Fill model. BFL offers FLUX.1 Fill [pro] for inpainting/outpainting operations.
Generate image(s) from a text prompt using FLUX models.
Get available FLUX models.
Get supported methods for this provider.
ProtectednormalizeHelper method to convert image input (Buffer, base64, or URL) to the format required by the specific provider. Subclasses can override as needed.
Image as Buffer, base64 string, or URL
Normalized image data
Configure polling behavior for async task completion
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:
A request's
CancellationTokenis handed to everyfetch(submit, poll and download), and the wait between polls ends as soon as it aborts, so cancelling a request stops it at once. The call then resolves as cancelled, never as a failure to fail over.