---
last_updated: 2026-11-30
source_url: https://opper.ai/black-forest-labs/flux-2-klein-4b
title: "FLUX.2 [klein] 4B by Black Forest Labs"
description: "FLUX-2-klein-4b by Black Forest Labs, lightweight 4B parameter Apache 2.0 model for fast local image generation and editing on consumer GPUs."
---

# FLUX.2 [klein] 4B

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

Released 15 Jan 2026 · [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-4b is a 4 billion parameter distilled rectified flow transformer released in January 2026, built for fast image generation and editing on consumer hardware. It uses the Qwen3 4B text encoder and achieves sub-second generation on modern hardware, fitting in roughly 13GB of VRAM and running on consumer GPUs such as the RTX 3090 and RTX 4070, with quantized FP8 and NVFP4 builds reducing memory use further.

Released under the Apache 2.0 license, FLUX-2-klein-4b permits personal, scientific, and commercial use, making it the most accessible variant in the FLUX-2 family. It natively supports text-to-image generation, single-reference editing, and multi-reference composition without swapping models, and a separate undistilled 4B Base model is available for fine-tuning and LoRA training, suiting rapid iteration and interactive workflows.

## Available routes

FLUX.2 [klein] 4B 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-4b.

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

## Key info

- Model id: `deepinfra/black-forest-labs/FLUX-2-klein-4b`
- Input: Text, Image
- Output: Image
- Features: none listed
- Pricing: $0.014 / 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.014 / megapixel |

## Data handling per route

Each route hosting FLUX.2 [klein] 4B 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] 4B 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] 4B 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] 4B
```

### 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-4b",
    "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-4b",
    "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] 4B in your apps

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

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