FLUX 3 Image Klein API
FLUX 3 Image Klein is Black Forest Labs' compact open-weight image model for text-to-image generation, single-reference editing and multi-reference composition at up to 4K.
FLUX 3 Image Klein is an open-weight image model from Black Forest Labs, released on October 15, 2026. It accepts text and images and returns images, covering text-to-image generation, editing from a single reference image, and composition from up to 10 reference images. Bounding boxes on a 0 to 1000 grid steer the placement and scale of elements without hard-masking pixels, and the model can render text inside generated images. A prompt upsampler expands short requests into detailed scene captions and is on by default in the CLI, demo and ComfyUI; using the model without it significantly weakens results.
The image transformer has 5.6B parameters and pairs with Qwen3-VL-4B-Instruct as a separate text encoder. A distilled checkpoint runs in 16 steps without guidance and backs the BFL API, while the undistilled Klein Base checkpoint uses 50 steps at CFG 3.5 for fine-tuning, LoRA training and research. Weights are 11.2GB in BF16 and 5.6GB in FP8, and an INT8 build runs with 8GB of VRAM on NVIDIA GeForce RTX GPUs via ComfyUI or Diffusers, generating a 1-megapixel image in about 4 seconds on an RTX 5090 and under 9 seconds on an RTX 4070.
It suits creators and developers who need fast local or on-device image editing, multi-reference composition, and deployment on their own infrastructure for data sovereignty. Internal evaluations place it first for text-to-image, multi-reference generation and image editing, ahead of larger open-weight models and above Ideogram V4.5 and FLUX.2 pro. Non-commercial use is permitted under the FLUX Kommunity License v1.0, with commercial output exceptions for eligible users subject to conditions and restrictions; other uses may require a separate license from Black Forest Labs.
Updated:
MODEL ID
flux-3-image-klein- Input
- text / image
- Output
- image
Highlights
- 5.6B-parameter image transformer
- Text, image input; image output
- Up to 10 reference images
- Bounding-box layout control
- Up to 4K resolution
- INT8 build runs in 8GB VRAM
Providers
Compare API prices across providers. Select a provider to view all charges and conditions.
| Uptime | ||
|---|---|---|
| $0.009 |
Historical observations are not a live health check. Missing data does not mean an outage.
Benchmarks
- 91
Text-to-image Elo vs FLUX.2 klein
Elo improvement over FLUX.2 klein
- 70
Image editing Elo vs FLUX.2 klein
Elo improvement over FLUX.2 klein
Scores as published by the model provider.
Quick Start
Submit an image task, poll its status, then save the images. These examples use curl and Python 3 (standard library only).
POST https://openapi.felo.ai/api/v1/images/generations
1Get your API key
Create a key from your Felo API Platform account and set it as an environment variable.
export FELO_API_KEY="YOUR_API_KEY"2Make your first request
Optional values vary by model. This example leaves them unset; confirm supported values in Playground before adding them. Request fields sit alongside model and prompt, without an input wrapper.
curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-o created.json \
-d '{
"prompt": "A studio product photo of a ceramic coffee cup on warm linen, soft morning light",
"model": "flux-3-image-klein"
}'3Poll the task
Submission returns task_id. Poll every 3 seconds while queued or running; stop on succeeded, failed or interrupted. This example stops waiting after 30 minutes. Keep created.json to resume querying the same task instead of submitting again.
python3 - <<'PY'
import json, os, time
from pathlib import Path
from urllib.parse import quote
from urllib.request import Request, urlopen
task = json.loads(Path("created.json").read_text())
task_id = task["task_id"]
url = "https://openapi.felo.ai/api/v1/images/generations/" + quote(task_id, safe="")
headers = {"Authorization": "Bearer " + os.environ["FELO_API_KEY"]}
deadline = time.monotonic() + 1800
while task["status"] in ("queued", "running"):
if time.monotonic() >= deadline:
raise TimeoutError(f"Keep task_id={task_id} to resume polling")
time.sleep(3)
with urlopen(Request(url, headers=headers), timeout=60) as response:
task = json.load(response)
if task.get("task_id") != task_id or task.get("kind") != "image":
raise ValueError("Unexpected task response")
print(task["status"])
if task["status"] != "succeeded":
raise RuntimeError(task.get("error") or task["status"])
if not task.get("outputs"):
raise ValueError("Task succeeded without image outputs")
Path("task.json").write_text(json.dumps(task))
print("Saved task.json")
PY4Download the output
After success, save outputs from task.json. Results may be HTTPS URLs, URL objects or b64_json. Download signed URLs promptly; media downloads do not use your API key.
python3 - <<'PY'
import base64, json
from pathlib import Path
from urllib.request import urlopen
task = json.loads(Path("task.json").read_text())
if task.get("status") != "succeeded" or not task.get("outputs"):
raise ValueError("No completed image outputs")
extensions = {"image/png": ".png", "image/jpeg": ".jpg", "image/webp": ".webp", "image/gif": ".gif", "image/avif": ".avif"}
for index, output in enumerate(task["outputs"], 1):
item = output if isinstance(output, dict) else {}
url = output if isinstance(output, str) else item.get("url") or item.get("unsigned_url")
mime = item.get("media_type") or "image/png"
if url and url.startswith("https://"):
with urlopen(url, timeout=60) as response:
data = response.read()
mime = response.headers.get_content_type()
elif url and url.startswith("data:image/") and ";base64," in url:
header, encoded = url.split(",", 1)
mime = header[5:].split(";", 1)[0]
data = base64.b64decode(encoded, validate=True)
elif item.get("b64_json"):
data = base64.b64decode(item["b64_json"], validate=True)
else:
raise ValueError("Unrecognized image output")
path = Path(f"image-{index}" + extensions.get(mime, ".bin"))
path.write_bytes(data)
print(path)
PYinput_references
For image editing, replace the example URL with your HTTPS image URL or a base64 image data URL. Submit once, then use the same polling and saving steps.
curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-o created.json \
-d '{
"prompt": "Keep the product and framing. Replace the background with a sunlit marble countertop.",
"model": "flux-3-image-klein",
"input_references": [
{
"type": "image_url",
"image_url": {
"url": "https://example.com/product.png"
}
}
]
}'Supported parameters
- n
- seed
- resolution
- aspect_ratio
- output_format
- input_references
Prefer the full reference?
API reference →Frequently asked questions
What is FLUX 3 Image Klein?
FLUX 3 Image Klein is an open-weight image model from Black Forest Labs, released on October 15, 2026. It accepts text and images and returns images, covering text-to-image generation, editing from a single reference image, and composition from up to 10 reference images. Bounding boxes on a 0 to 1000 grid steer the placement and scale of elements without hard-masking pixels, and the model can render text inside generated images. A prompt upsampler expands short requests into detailed scene captions and is on by default in the CLI, demo and ComfyUI; using the model without it significantly weakens results. The image transformer has 5.6B parameters and pairs with Qwen3-VL-4B-Instruct as a separate text encoder. A distilled checkpoint runs in 16 steps without guidance and backs the BFL API, while the undistilled Klein Base checkpoint uses 50 steps at CFG 3.5 for fine-tuning, LoRA training and research. Weights are 11.2GB in BF16 and 5.6GB in FP8, and an INT8 build runs with 8GB of VRAM on NVIDIA GeForce RTX GPUs via ComfyUI or Diffusers, generating a 1-megapixel image in about 4 seconds on an RTX 5090 and under 9 seconds on an RTX 4070. It suits creators and developers who need fast local or on-device image editing, multi-reference composition, and deployment on their own infrastructure for data sovereignty. Internal evaluations place it first for text-to-image, multi-reference generation and image editing, ahead of larger open-weight models and above Ideogram V4.5 and FLUX.2 pro. Non-commercial use is permitted under the FLUX Kommunity License v1.0, with commercial output exceptions for eligible users subject to conditions and restrictions; other uses may require a separate license from Black Forest Labs.
How is usage billed?
Your bill depends on the provider you use, its prices and your usage. Longer inputs or other conditions may have different prices.
What inputs and outputs does FLUX 3 Image Klein support?
It takes text and image input and produces image output, covering text-to-image generation, single-reference editing and composition from up to 10 reference images.
What resolutions can it generate?
It supports resolutions up to 4K.
What is the difference between the distilled checkpoint and Klein Base?
The distilled Klein checkpoint runs in 16 steps without guidance and is the checkpoint behind the BFL API. Klein Base is undistilled, uses 50 steps at CFG 3.5, and is intended for fine-tuning, LoRA training and research.
Can it run on consumer hardware?
Yes. The INT8 build runs with 8GB of VRAM on NVIDIA GeForce RTX GPUs via ComfyUI or Diffusers, generating a 1-megapixel image in about 4 seconds on an RTX 5090 and under 9 seconds on an RTX 4070.
How are image elements positioned?
Bounding boxes specified on a 0 to 1000 grid control the placement and scale of image elements; they guide placement and size without hard-masking pixels.
What licensing applies?
Non-commercial use is permitted under the FLUX Kommunity License v1.0, and commercial output exceptions for eligible users are subject to conditions and restrictions. Other uses may require a separate license from Black Forest Labs.