PHPackages                             lanos/php-bfl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. lanos/php-bfl

ActiveLibrary[API Development](/categories/api)

lanos/php-bfl
=============

PHP SDK for Black Forest Labs' FLUX API - Professional image generation toolkit

v1.0.1(8mo ago)221MITPHPPHP ^8.1CI passing

Since Aug 24Pushed 8mo agoCompare

[ Source](https://github.com/l4nos/PHP-Black-Forest-Labs)[ Packagist](https://packagist.org/packages/lanos/php-bfl)[ Docs](https://github.com/l4nos/php-bfl)[ RSS](/packages/lanos-php-bfl/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (3)Used By (1)

PHP Black Forest Labs SDK
=========================

[](#php-black-forest-labs-sdk)

A professional PHP SDK for [Black Forest Labs' FLUX API](https://api.bfl.ai/), providing easy integration for AI-powered image generation and fine-tuning services.

[![Latest Version](https://camo.githubusercontent.com/4b53ef35b590f6237edf24f140e327ff89d475b0f25d6e788caf4fcb1026ae13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c616e6f732f7068702d62666c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lanos/php-bfl)[![PHP Version](https://camo.githubusercontent.com/17bdc93cdf256c5856160609b6ec9950780e0d31f01b11c111137f9eb32962b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c616e6f732f7068702d62666c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lanos/php-bfl)[![License](https://camo.githubusercontent.com/d52d4ad31ee3fda542bf5a00a7764d79ea748fd2ac33990932164f5f05c86c6a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c616e6f732f7068702d62666c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/l4nos/PHP-Black-Forest-Labs/blob/main/LICENSE.md)[![Tests](https://github.com/l4nos/PHP-Black-Forest-Labs/actions/workflows/tests.yml/badge.svg)](https://github.com/l4nos/PHP-Black-Forest-Labs/actions)[![Coverage Status](https://camo.githubusercontent.com/8f8e8a7d3e7f04163b0022b9c689b275b8acd5892d1ab37396664b97849ebfd3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c346e6f732f5048502d426c61636b2d466f726573742d4c6162732f62616467652e737667)](https://coveralls.io/github/l4nos/PHP-Black-Forest-Labs)

Features
--------

[](#features)

- **Complete API Coverage**: All FLUX API endpoints including image generation, fine-tuning, and utilities
- **Type-Safe**: Full PHP 8.1+ type hints and strict types for better IDE support and error detection
- **Fluent API**: Intuitive builder pattern for constructing complex requests
- **Error Handling**: Comprehensive exception handling with detailed error messages
- **Async Support**: Built-in polling mechanisms for handling async image generation tasks
- **PSR Standards**: Follows PSR-4 autoloading and PSR-12 coding standards
- **Well Documented**: Extensive inline documentation and examples

Installation
------------

[](#installation)

Install via Composer:

```
composer require lanos/php-bfl
```

Quick Start
-----------

[](#quick-start)

```
