---
title: "Flux 2 API — All variants, pricing, code samples | RunAPI"
url: "https://runapi.ai/models/flux-2.md"
canonical: "https://runapi.ai/models/flux-2.md"
locale: "en"
model: "Flux 2"
provider: "Black Forest Labs"
modality: "image"
variant_count: 4
price_from_cents: 5
---

# Flux 2

Text-to-image and image-to-image with strong prompt adherence from Black Forest Labs.

**Provider:** Black Forest Labs
**Modality:** Image
**Catalog:** 4 variants

Flux 2 is Black Forest Labs&#39; text-to-image and image-to-image model known for strong prompt adherence and high visual fidelity. It supports flexible and pro tiers optimized for speed and quality respectively.

## Variants

| Version | Variant | Pricing | Billing | URL |
|---|---|---|---|---|
| flux-2-flex-image-to-image | `flex-image-to-image` | $0.140 | call | https://runapi.ai/models/flux-2/flex-image-to-image.md |
| flux-2-flex-text-to-image | `flex-text-to-image` | $0.140 | call | https://runapi.ai/models/flux-2/flex-text-to-image.md |
| flux-2-pro-image-to-image | `pro-image-to-image` | $0.050 | call | https://runapi.ai/models/flux-2/pro-image-to-image.md |
| flux-2-pro-text-to-image | `pro-text-to-image` | $0.050 | call | https://runapi.ai/models/flux-2/pro-text-to-image.md |


## Install

```sh
npm install @runapi.ai/flux-2
# or
gem install runapi-flux_2
```

## Quickstart

```sh
curl -X POST https://runapi.ai/api/v1/flux_2/image_to_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "flux-2-flex-image-to-image", "prompt": "..." }'
```

## Context

Flux 2 is Black Forest Labs&#39; generation model, delivering high prompt adherence across text-to-image and image-to-image. Through RunAPI, Pro and Flex variants share the same API shape.

## FAQ

### Which variant should I start with?

Pick the cheapest variant that meets your quality bar. Most teams start on the fast variant and graduate to pro for production.

### Is there a free tier?

New accounts get free first calls on every model. After that, pay per call.

### Do you stream results?

Where streaming is available, RunAPI streams end-to-end.

### How are failures billed?

Failed generations are not charged.

### Are outputs cached?

Generated outputs are stored and retrievable by task ID. Inputs are not cached.

### Can I use commercially?

Yes — commercial use is included for every variant unless a model license explicitly restricts it, which is called out on the variant page.

### What about rate limits?

Per-key rate limits scale with usage tier. See pricing page for current limits.

### Where can I report issues?

Open an issue on the public GitHub repo or email support.

