---
last_updated: 2026-11-30
source_url: https://opper.ai/black-forest-labs/flux-2-dev
title: "FLUX.2 [dev] by Black Forest Labs"
description: "FLUX-2-dev by Black Forest Labs, 32B parameter open-weight model for text-to-image generation and multi-reference image editing up to 4MP."
---

# FLUX.2 [dev]

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

Released 25 Nov 2025 · [Announcement](https://bfl.ai/blog/flux-2) · [All Black Forest Labs releases](https://opper.ai/model-releases/black-forest-labs)

FLUX-2-dev is a 32 billion parameter rectified flow transformer released in November 2025 as the open-weight flagship of the FLUX-2 family. It supports both text-to-image generation and multi-reference image editing, accepting up to 10 reference images at once and producing output at up to 4 megapixels, with strong handling of fine detail such as hands, faces, fabrics, and small objects alongside reliable text rendering.

Designed for high-quality work where latency is less critical, FLUX-2-dev is strong at character consistency across assets, accurate object positioning, and dependable style adherence. It is available under the FLUX Non-Commercial License and accepts exact hex color codes directly in prompts for precise color reproduction, supporting flexible output resolutions and aspect ratios for product visualization, brand asset creation, and design system generation.

## Available routes

FLUX.2 [dev] 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-dev.

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

## Key info

- Model id: `deepinfra/black-forest-labs/FLUX-2-dev`
- Input: Text, Image
- Output: Image
- Features: none listed
- Pricing: $0.01 / megapixel
- Billing: Per megapixel
- Released: 25 Nov 2025
- 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.01 / megapixel |

## Data handling per route

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

### 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-dev",
    "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-dev",
    "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 [dev] in your apps

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

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

## Other models from Black Forest Labs

- [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 \[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)
