FLUX.2 [klein]
Approved Data Classifications
Description
FLUX.2 [klein] is Black Forest Labs’ fast image generation family for interactive, high-volume visual workflows. The Klein family emphasizes sub-second inference, strong image quality, and efficient deployment, with 4B and 9B variants available for different quality and hardware needs. BFL documents pricing starting at $0.014 per image for Klein 4B and $0.015 per image for Klein 9B, with cost scaling by output resolution.
Capabilities
| Model | Release Date | Input | Output | Context Length | Cost (per image) |
|---|---|---|---|---|---|
| flux.2-klein | January 15, 2026 | Text | Image | n/a | from $0.014/image |
info
- Pricing varies by output resolution
- Klein 4B starts at
$0.014/image - Klein 9B starts at
$0.015/image - All prices listed are based on 1 image
Availability
Cloud Provider
Usage
- curl
- python
- javascript
curl -X POST https://api.ai.it.ufl.edu/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API_TOKEN>" \
-d '{
"model": "flux.2-klein",
"prompt": "An Alligator walking around the University of Florida saying hi to students.",
"n": 1,
"size": "1024x1024",
"quality": "standard",
"response_format": "b64_json"
}'
from openai import OpenAI
client = OpenAI(
api_key="your_api_key",
base_url="https://api.ai.it.ufl.edu/v1"
)
response = client.images.generate(
model="flux.2-klein",
prompt="An Alligator walking around the University of Florida saying hi to students.",
size="1024x1024",
quality="standard",
n=1,
response_format="url"
)
image_url = response.data[0].url
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: 'your_api_key',
baseURL: 'https://api.ai.it.ufl.edu/v1'
});
const response = await openai.images.generate({
model: "flux.2-klein",
prompt: "An Alligator walking around the University of Florida saying hi to students.",
n: 1,
size: "1024x1024",
quality: "standard",
response_format: "url",
});
const image_url = response.data[0].url;
References
- Black Forest Labs - FLUX.2 [klein]
https://bfl.ai/models/flux-2-klein- Black Forest Labs Pricing
https://docs.bfl.ml/quick_start/pricing