Black Forest Labs FLUX

Black Forest Labs FLUX API

Access Black Forest Labs FLUX instantly with Puter.js, and add AI to any app in a few lines of code without backend or API keys.

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.txt2img("A beautiful sunset", {
    model: "black-forest-labs/FLUX.1-schnell"
}).then(imageElement => {
    document.body.appendChild(imageElement);
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.txt2img("A beautiful sunset", {
            model: "black-forest-labs/FLUX.1-schnell"
        }).then(imageElement => {
            document.body.appendChild(imageElement);
        });
    </script>
</body>
</html>

List of Black Forest Labs FLUX Models

Image

FLUX.2 [klein] 4B

black-forest-labs/flux.2-klein-4b

FLUX.2 Klein 4B is a compact, Apache 2.0 licensed model distilled from the full FLUX.2 architecture, capable of sub-second image generation on consumer GPUs with ~13GB VRAM. It supports text-to-image, image editing, and multi-reference generation in a unified model.

Image

FLUX.2 [klein] 9B

black-forest-labs/flux.2-klein-9b

FLUX.2 Klein 9B is a larger variant of the Klein family built on a 9B flow model with an 8B Qwen3 text embedder, matching or exceeding models 5x its size in quality. It offers higher output diversity than the 4B distilled variant and is ideal for fine-tuning and research.

Image

FLUX.1 Kontext [dev]

black-forest-labs/flux.1-kontext-dev

FLUX.1 Kontext Dev is an open-weight 12B parameter model for in-context image generation and editing, allowing prompting with both text and images to modify visual concepts. It was the first open model to deliver proprietary-level image editing performance and runs on consumer hardware.

Image

FLUX.1 Kontext [max]

black-forest-labs/flux.1-kontext-max

FLUX.1 Kontext Max is the highest-quality model in the Kontext series, optimized for iteratively modifying existing images via text prompts with maximum fidelity. It offers the best editing consistency and prompt following among Kontext variants.

Image

FLUX.1 Kontext [pro]

black-forest-labs/flux.1-kontext-pro

FLUX.1 Kontext Pro is a production-grade in-context image generation and editing model that balances quality and speed. It powers integrations in Adobe Photoshop's Generative Fill and Meta's platforms.

Image

FLUX.2 [dev]

black-forest-labs/flux.2-dev

FLUX.2 Dev is a 32B parameter open-weight flow matching transformer for text-to-image generation and multi-reference image editing. It uses Mistral-3 24B as its vision-language backbone and features a new VAE, improved typography, and support for up to 10 reference images.

Image

FLUX.2 [flex]

black-forest-labs/flux.2-flex

FLUX.2 Flex is a specialized FLUX.2 variant focused on typography accuracy and fine detail preservation, with a configurable 'steps' parameter for trading off between quality and speed. It exposes advanced controls like guidance and step count for precise diffusion tuning.

Image

FLUX.2 [max]

black-forest-labs/flux.2-max

FLUX.2 Max is the most capable model in the FLUX.2 family, delivering the highest editing consistency, strongest prompt following, and best photorealism. It uniquely supports grounded generation with real-time web search to visualize current events and trending content.

Image

FLUX.2 [pro]

black-forest-labs/flux.2-pro

FLUX.2 Pro is the production-grade FLUX.2 model balancing high quality and affordability, designed for professional image generation and editing workflows. It uses fixed optimal inference parameters for consistent output without manual tuning.

Image

FLUX1.1 [pro]

black-forest-labs/flux.1.1-pro

FLUX 1.1 Pro is an improved flagship model released October 2024, offering better quality and efficiency than the original FLUX.1 Pro. It added Ultra mode for 4x higher resolution (up to 4MP) and Raw mode for hyper-realistic candid photography-style images. Generation time is approximately 10 seconds per sample.

Image

FLUX.1 [dev]

black-forest-labs/flux.1-dev

FLUX.1 Dev is a 12B parameter open-weight text-to-image model released under a non-commercial license. It offers quality comparable to DALL-E 3 and Midjourney 6 in prompt fidelity and photorealism, and is the most popular open image model globally. It's designed for developers and researchers to run on consumer hardware.

Image

FLUX.1 [dev] LoRA

black-forest-labs/flux.1-dev-lora

FLUX.1 Dev LoRA is a fine-tuning adapter layer built on top of FLUX.1 Dev, enabling customization of image generation for specific styles, subjects, or concepts. It allows developers to train lightweight adaptations without retraining the full model.

Image

FLUX.1 Krea [dev]

black-forest-labs/flux.1-krea-dev

FLUX.1 Krea Dev is an open-weight text-to-image model developed in collaboration with Krea AI, trained to achieve better photorealism and more varied aesthetics than standard FLUX.1 models. It overcomes the oversaturated 'AI look' common in other generators.

Image

FLUX.1 [pro]

black-forest-labs/flux.1-pro

FLUX.1 Pro is Black Forest Labs' original flagship proprietary text-to-image model, offering high prompt fidelity and photorealistic output comparable to Midjourney 6. It supports fine-tuning via the FLUX Pro Finetuning API for enterprise customization.

Image

FLUX.1 [schnell]

black-forest-labs/flux.1-schnell

FLUX.1 Schnell (German for 'fast') is the speed-optimized variant of FLUX.1, designed for rapid image generation with lower latency at the cost of some quality. It is the most permissively licensed model in the FLUX.1 family, released under Apache 2.0. Ideal for real-time applications and high-throughput workflows.

Frequently Asked Questions

What is this Black Forest Labs FLUX API about?

The Black Forest Labs FLUX API gives you access to models for AI image generation. Through Puter.js, you can start using Black Forest Labs FLUX models instantly with zero setup or configuration.

Which Black Forest Labs FLUX models can I use?

Puter.js supports a variety of Black Forest Labs FLUX models, including FLUX.2 [klein] 4B, FLUX.2 [klein] 9B, FLUX.1 Kontext [dev], and more. Find all AI models supported by Puter.js in the AI model list.

How much does it cost?

With the User-Pays model, users cover their own AI costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.

What is Puter.js?

Puter.js is a JavaScript library that provides access to AI, storage, and other cloud services directly from a single API. It handles authentication, infrastructure, and scaling so you can focus on building your app.

Does this work with React / Vue / Vanilla JS / Node / etc.?

Yes — the Black Forest Labs FLUX API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building. See the documentation for more details.