---
last_updated: 2026-11-30
source_url: https://opper.ai/black-forest-labs/flux-2-klein-9b
title: "FLUX.2 [klein] 9B by Black Forest Labs"
description: "FLUX-2-klein-9b by Black Forest Labs, 9B parameter open-weight model balancing speed and quality for text-to-image and multi-reference image editing."
---

# FLUX.2 [klein] 9B

By [Black Forest Labs](https://opper.ai/black-forest-labs).

Released 15 Jan 2026, 30 days after [FLUX.2 \[max\]](https://opper.ai/black-forest-labs/flux-2-max) · [Announcement](https://bfl.ai/blog/flux2-klein-towards-interactive-visual-intelligence) · [All Black Forest Labs releases](https://opper.ai/model-releases/black-forest-labs)

FLUX-2-klein-9b is a 9 billion parameter rectified flow transformer released in January 2026 as a middle ground between the lightweight 4B variant and the flagship FLUX-2-dev. It pairs a 9B flow model with an 8B Qwen3 text embedder and is step-distilled to 4 inference steps, delivering more nuanced prompt adherence and quality than the 4B variant while still running on consumer and professional GPU hardware.

FLUX-2-klein-9b supports text-to-image generation along with single-reference and multi-reference editing, enabling character consistency and product visualization at fast inference speeds. Available under the FLUX Non-Commercial License, it suits developers who want more sophisticated output than the 4B model without the heavier compute of the 32B FLUX-2-dev, with a separate undistilled 9B Base model available for fine-tuning.

## Available routes

FLUX.2 [klein] 9B runs on 1 route through the Opper gateway. Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=deepinfra%2Fblack-forest-labs%2FFLUX-2-klein-9b.

| Provider | Model id | Region | Zero data retention | Training | Price |
| --- | --- | --- | --- | --- | --- |
| [DeepInfra](https://opper.ai/provider/deepinfra) | `deepinfra/black-forest-labs/FLUX-2-klein-9b` | US (United States) | Yes | No | $0.015 / megapixel |

## Key info

- Model id: `deepinfra/black-forest-labs/FLUX-2-klein-9b`
- Input: Text, Image
- Output: Image
- Features: none listed
- Pricing: $0.015 / megapixel
- Billing: Per megapixel
- Released: 15 Jan 2026
- US residency available
- Zero data retention on pay-as-you-go
- No training by default

## Pricing

Usage-based pricing, billed per megapixel, not by token.

| Variant | Price |
| --- | --- |
| Standard | $0.015 / megapixel |

## Data handling per route

Each route hosting FLUX.2 [klein] 9B has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### DeepInfra — United States

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-19.

## Get started

Call FLUX.2 [klein] 9B through the Opper gateway with one API key. Image models run on Opper's images endpoint: POST /v3/images returns the image in the response, as base64 by default.

See the [Opper images guide](https://docs.opper.ai/build/multimodal/images) and the [Opper multimodal skill](https://skills.opper.ai/opper-multimodal/SKILL.md).

FLUX.2 [klein] 9B is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai/opper-multimodal/SKILL.md Generate an image with FLUX.2 [klein] 9B
```

### Or call it directly

cURL:

```bash
curl -s https://api.opper.ai/v3/images \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepinfra/black-forest-labs/FLUX-2-klein-9b",
    "prompt": "A watercolor lighthouse on a cliff at sunrise",
    "size": "1024x1024"
  }' \
  | jq -r '.data[0].b64_json' | base64 --decode > image.png
```

JavaScript:

```javascript
import { writeFile } from "node:fs/promises";

const res = await fetch("https://api.opper.ai/v3/images", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPPER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "deepinfra/black-forest-labs/FLUX-2-klein-9b",
    "prompt": "A watercolor lighthouse on a cliff at sunrise",
    "size": "1024x1024"
  }),
});
const { data } = await res.json();
// Each image comes back as base64 (b64_json) unless you ask for a url
await writeFile("image.png", Buffer.from(data[0].b64_json, "base64"));
```

## Use FLUX.2 [klein] 9B in your apps

Pick your tool to see how to run it on FLUX.2 [klein] 9B through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/flux-2-klein-9b)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/flux-2-klein-9b)
- [Codex](https://opper.ai/apps/codex/flux-2-klein-9b)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/flux-2-klein-9b)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/flux-2-klein-9b)
- [Aider](https://opper.ai/apps/aider/flux-2-klein-9b)
- [Goose](https://opper.ai/apps/goose/flux-2-klein-9b)
- [Droid](https://opper.ai/apps/droid/flux-2-klein-9b)
- [OpenCode](https://opper.ai/apps/opencode/flux-2-klein-9b)
- [Pi](https://opper.ai/apps/pi/flux-2-klein-9b)
- [OpenClaw](https://opper.ai/apps/openclaw/flux-2-klein-9b)
- [Hermes](https://opper.ai/apps/hermes/flux-2-klein-9b)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/flux-2-klein-9b)
- [OmniRoute](https://opper.ai/apps/omniroute/flux-2-klein-9b)
- [Cursor](https://opper.ai/apps/cursor/flux-2-klein-9b)
- [Cline](https://opper.ai/apps/cline/flux-2-klein-9b)
- [Continue](https://opper.ai/apps/continue/flux-2-klein-9b)
- [Kilo Code](https://opper.ai/apps/kilo-code/flux-2-klein-9b)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/flux-2-klein-9b)
- [Zed](https://opper.ai/apps/zed/flux-2-klein-9b)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/flux-2-klein-9b)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/flux-2-klein-9b)
- [n8n](https://opper.ai/apps/n8n/flux-2-klein-9b)
- [LibreChat](https://opper.ai/apps/librechat/flux-2-klein-9b)
- [Open WebUI](https://opper.ai/apps/open-webui/flux-2-klein-9b)
- [See all apps](https://opper.ai/apps)

## Other models from Black Forest Labs

- [FLUX.2 \[dev\]](https://opper.ai/black-forest-labs/flux-2-dev)
- [FLUX.2 \[flash\]](https://opper.ai/black-forest-labs/flux-2-flash)
- [FLUX.2 \[klein\] 4B](https://opper.ai/black-forest-labs/flux-2-klein-4b)
- [FLUX.2 \[max\]](https://opper.ai/black-forest-labs/flux-2-max)
- [FLUX.2 \[pro\]](https://opper.ai/black-forest-labs/flux-2-pro)
- [FLUX1.1 \[pro\]](https://opper.ai/black-forest-labs/flux-1-1-pro)
