Four steps
The distilled 9B checkpoint is designed for fast visual generation and editing; 9B Base is undistilled and targets customization.
MODEL REFERENCE / BLACK FOREST LABS
FLUX.2 Klein 9B image generation and editing: pricing per megapixel, BFL API, ComfyUI setup, GPU memory and commercial license explained.
SOURCE-VERIFIED EDITORIAL UPDATE · 2026-11-26
BFL still lists $0.015 for the first output megapixel, plus $0.002 per additional output MP and reference MP. Its pricing documentation now lists the public-beta flux-2-klein-9b-kv-finetuned endpoint at the equivalent base-model rate for the same resolution. The 9B local weights use the FLUX Non-Commercial License; the separate 4B model is Apache 2.0. Klein supports up to four references. FLUX 3 Image Klein is a different model and billing schedule. Do not equate beta pricing with a permanent rate or hosted API access with commercial local-weight rights.
Primary sources: BFL price card · Fine-tuned endpoint pricing · Official inference and licensing repository · BFL model capabilities
PRIMARY-SOURCE VERIFIED
Black Forest Labs does not publish a token context window for this service. Input modalities: text + image. Output: image. Pricing status: Official paid API.
CAPABILITY CONTRACT
The distilled 9B checkpoint is designed for fast visual generation and editing; 9B Base is undistilled and targets customization.
Input modalities come from the cited official model documentation.
Output modality and output-limit claims remain separate so an undocumented token cap is not guessed.
PRICING STATUS
$0.015 per first output MP (additional/reference MP extra).
This image-model service is billed per rounded image megapixel, not text tokens. The SXF pricing breakdown below shows separately billed output and reference-image inputs.
FLUX.2 KLEIN 9B / DIRECT ANSWER
FLUX.2 [klein] 9B is Black Forest Labs' nine-billion-parameter, step-distilled image model for text-to-image generation, image editing and multi-reference composition. The distilled version uses four inference steps; the undistilled 9B Base is a different checkpoint intended for customization and fine-tuning. It is not a text chatbot and has no meaningful publicly specified token context window.
For developers, the important choices are hosted API versus local weights, distilled versus Base, and whether a roughly 20–24 GB GPU budget is available. The hosted BFL API starts at $0.015 for the first billed output megapixel; local 9B weights carry a FLUX Non-Commercial License. BFL lists 19.6 GB VRAM for its distilled 9B reference configuration, but advises planning around 24 GB for local use. These are different claims, not a universal minimum.
OFFICIAL MODEL FACTS
Four-step distilled checkpoint. Separate 9B Base weights are undistilled and intended for tuning.
Generate images from prompts or edit with one or multiple visual references. BFL's Klein API guide describes up to four references.
Provider's published table for distilled 9B; its 9B Base table lists 21.7 GB. Actual peak memory varies with encoders, offloading, precision and resolution.
BFL reports roughly 0.5 seconds on GB200 and 2 seconds on RTX 5090 for distilled 9B. These are vendor configurations, not SXF-measured results.
Downloadable does not mean Apache 2.0 for 9B. Commercial use of self-hosted weights requires appropriate BFL rights.
Official request route: POST /v1/flux-2-klein-9b. Billed by image megapixels, not language-model input/output tokens.
SXF ORIGINAL COST ANALYSIS
Black Forest Labs publishes three separate components for the hosted Klein 9B image API: $0.015 for the first billed output megapixel, $0.002 for each additional billed output megapixel, and $0.002 per billed reference-image input megapixel. A starting rate is not a flat price for every resolution or editing request. Verify the current rate on BFL's pricing page.
Estimated API charge = $0.015 + ($0.002 × additional billed output MP) + ($0.002 × billed reference input MP), for an output containing at least one billed MP.
Arithmetic derived by SXF from BFL's published rate components. Billed MP values—not raw pixel counts—are used below. Excludes retries, taxes, storage, engineering and third-party platform fees.| Scenario | Billed output MP | Reference input MP | Per image | 1,000 images |
|---|---|---|---|---|
| Small text-to-image | 1 | 0 | $0.015 | $15 |
| Larger text-to-image | 2 | 0 | $0.017 | $17 |
| Four-MP output | 4 | 0 | $0.021 | $21 |
| 2-MP edited output, two 1-MP references | 2 | 2 | $0.021 | $21 |
Practical conclusion: the difference between a $0.015 and $0.021 request is modest per image but becomes meaningful at scale. Measure cost per approved image, not simply cost per generation: if a workflow needs two attempts on average, its generation-only expense doubles. Reference images may be resized or billed differently depending on API rules; confirm the actual billed dimensions instead of assuming that a nominal 1024 × 1024 image is exactly one billable MP.
For the broader picture, compare SXF's model pricing directory, the FLUX.2 Pro model page and the FLUX.2 Max premium image model. Do not use the site's token-cost calculator for these per-image rates.
DEVELOPER QUICKSTART
Create a Black Forest Labs API key, send a text prompt to the flux-2-klein-9b endpoint, then follow the asynchronous result flow described in the official API documentation. A basic request has the following shape:
curl -X POST "https://api.bfl.ai/v1/flux-2-klein-9b" \
-H "x-key: $BFL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"Studio product photograph of a ceramic mug on a neutral backdrop, soft side lighting","width":1024,"height":1024}'
The API key must stay on the server; never expose it in client-side JavaScript or a public repository. Confirm accepted dimensions, reference-image fields, status polling and delivery URLs in the live BFL API reference. An image-editing workflow adds an input image and an explicit instruction to retain or change named details; source-image size can affect cost.
Example editing prompt: “Replace the background with a bright kitchen, retain the mug's exact handle shape, logo and ceramic texture, and preserve its original viewing angle.” Evaluate logo accuracy and object preservation before accepting the result; prompt text cannot guarantee pixel-perfect consistency.
LOCAL INSTALLATION
For local ComfyUI use, update ComfyUI, obtain the licensed 9B checkpoint from BFL's Hugging Face model repository, accept the repository's access terms and follow ComfyUI's FLUX.2 Klein workflow tutorial. Choose the 9B workflow rather than accidentally mixing 4B text encoders and diffusion files.
| ComfyUI folder | Example 9B file | Role |
|---|---|---|
models/diffusion_models/ | flux-2-klein-9b-fp8.safetensors | Fast distilled checkpoint |
models/text_encoders/ | qwen_3_8b_fp8mixed.safetensors | 9B workflow text encoder |
models/vae/ | flux2-vae.safetensors | Image encoder/decoder |
Can 9B run on 8 GB VRAM? Not as a documented standard full-GPU configuration. The manufacturer's reference table lists 19.6 GB for distilled 9B; support guidance suggests a ~24 GB GPU budget. Quantization, CPU offload and third-party workflows can change feasibility and speed, but should be treated as separate configurations, not guaranteed 8 GB support. If hardware is tight, investigate the 4B Apache-licensed variant or the newer FLUX 3 Image Klein local setup guide rather than conflating generations.
LEGAL / DEPLOYMENT CHOICE
No—not merely because its weights are downloadable. Black Forest Labs makes the FLUX.2 Klein 9B local weights available under the FLUX Non-Commercial License. For commercial use of self-hosted 9B weights, obtain the proper BFL license. BFL says commercial rights are included when using its paid hosted API, subject to the applicable terms. By contrast, the Klein 4B weights use Apache 2.0. Read BFL's licensing explainer.
Before deploying, document whether you are calling the API or shipping weights, whether outputs enter client work or model training, and which license applies. Training on generated outputs may require separate synthetic-data rights. See the site's AI model licensing due-diligence guide for a broader verification checklist. This is an operational summary, not legal advice.
MODEL SELECTION
| Model | Best starting use case | First output MP | Local weights |
|---|---|---|---|
| FLUX.2 Klein 9B | Quality-focused fast iteration; local experimentation with enough VRAM | $0.015 | Yes; non-commercial license |
| FLUX.2 Klein 4B | Lower VRAM and latency; flexible self-hosting | $0.014 | Yes; Apache 2.0 |
| FLUX.2 Pro | Hosted production image workflows | $0.03 | Not a published Klein-weight release |
| FLUX.2 Max | Premium visual fidelity and complex compositions | $0.07 | Hosted API |
These are product-positioning and price comparisons, not an independent quality leaderboard. A fair comparison must fix prompts, output size, reference inputs and acceptance criteria. Read the focused FLUX.2 Pro vs Klein 9B comparison or the broader AI image-generator guide before selecting by headline price alone.
SXF REPRODUCIBLE EVALUATION METHOD
We do not publish a fabricated SXF speed test, fidelity score or benchmark winner. Instead, this is an original six-task evaluation protocol a team can replay against Klein 9B, 4B and Pro to decide whether a lower per-image fee produces cheaper usable output:
total generation spend / accepted outputs instead of per-attempt price.Record model/checkpoint version, seed where supported, hardware, precision, inference steps, input images, dimensions, prompt, acceptance rubric and all failures. Keep model-generated outputs and external reviewer judgments separate. Results from BFL's own hardware are vendor-reported reference measurements until independently reproduced. This protocol is guidance, not a claim that SXF has already executed the benchmark.
COMMON QUESTIONS
Direct BFL API billing starts at $0.015 for the first billed output megapixel; further output MP and reference-image input MP cost $0.002 each at the published rate. The full price varies by billed image dimensions.
Use POST https://api.bfl.ai/v1/flux-2-klein-9b and authenticate with an x-key API key header. Consult the official API documentation for request parameters and asynchronous result handling.
Yes. ComfyUI publishes dedicated FLUX.2 Klein 9B text-to-image and image-editing workflows and lists the matching diffusion, Qwen3 8B text-encoder and VAE files.
BFL's distilled model table lists 19.6 GB in its reference configuration and its local-use support guidance suggests around 24 GB. CPU offloading, quantization and workload configuration can alter requirements.
Its weights can be downloaded, but their license is FLUX Non-Commercial, not Apache 2.0. Commercial local deployment requires appropriate rights; BFL's hosted API includes commercial usage rights under its terms.
9B is the four-step distilled model for fast inference. 9B Base is the undistilled checkpoint designed for fine-tuning and greater control, with different speed and memory characteristics.
EVIDENCE AND LIMITS
This SXF editorial explanation uses published BFL pricing, licensing, model and weights documentation, plus ComfyUI's own workflow instructions. Price examples are SXF calculations, not invoices or measured workloads. No synthetic image-quality ranking is presented. The catalog's October 12, 2026 baseline remains separate from this editorial update (November 7, 2026).
CAVEATS
Official BFL API endpoint is POST /v1/flux-2-klein-9b. The model's weights are available with license terms; open weights do NOT imply unrestricted commercial usage.
BFL API published price: $0.015 for the first OUTPUT megapixel, +$0.002 for each additional output MP, +$0.002 per reference-image input MP. Displayed $0.015 is a STARTING first-MP rate.
Image pixels are rounded to billed megapixels; reference images and resolution can increase per-result charges. 4K and multi-image workflows require checking configuration caps.
Useful for low-latency imagery and on-premise experimentation; quality comparisons must use real prompts.
EXPLORE
OFFICIAL SOURCES
WHAT CHANGED
No post-baseline factual changes recorded for FLUX.2 Klein 9B since 2026-10-12.
VERIFIED CHANGE HISTORY
Baseline verified: context not published · Not published max output · $0.015 per first output MP (additional/reference MP extra)
Official evidence ↗Append-only SXF ledger · 1 verified event · chain head 744b2a3d12d1…
COMPARE FLUX.2 KLEIN 9B