All models

FLUX.2 [klein]

by Black Forest Labs

Image

FLUX.2 [klein] is Black Forest Labs' efficient text-to-image model, offered in 4B and 9B sizes for a choice of speed versus fidelity. It brings the FLUX.2 line's image quality to hardware that can't run the largest checkpoints. Note that the two sizes ship under different terms: the 4B is Apache-2.0, while the 9B is released under the FLUX Non-Commercial License and is not licensed for commercial use.

Publisher
Black Forest Labs
Sizes
4B, 9B
Licence
flux-non-commercial-license
Model card on Hugging Face

Run FLUX.2 [klein]

Install it on a Pendra worker, then call it through the OpenAI-compatible API with a pdr_sk_ key.

from pendra import Pendra
import base64, pathlib

client = Pendra(api_key="pdr_sk_...")

result = client.images.generations.create(
    model="flux.2-klein-4b",
    prompt="A misty Welsh valley at dawn",
    size="1024x1024",
)

pathlib.Path("out.png").write_bytes(base64.b64decode(result.data[0].b64_json))

Run FLUX.2 [klein] on your own UK infrastructure

Deploy a worker, install FLUX.2 [klein], and start serving it through one sovereign API endpoint.