# Flux 2 Flex API

> Black Forest Labs's Flux 2 Flex: text to image and image editing, up to 4MP. By Black Forest Labs, on Revana from $0.05 per image. The lowest listed Flux 2 Flex price we found at 1MP, 2MP, 3MP and 4MP (checked 2026-10-26).

- Model id: `flux-2-flex`
- Kind: image
- Maker: Black Forest Labs
- Tasks: Text to image, Image to image
- Resolutions: 1MP, 2MP, 3MP, 4MP
- Aspect ratios: auto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21
- Input images: up to 8
- Routes: 1
- Status: live on the API
- Page: https://revana.si/models/flux-2-flex

## Price (per image, USD)

| Setting | Price | Credits |
|---|---|---|
| 1MP | $0.05 | 5 |
| 2MP | $0.10 | 10 |
| 3MP | $0.15 | 15 |
| 4MP | $0.20 | 20 |

100 credits = $1. Charged once, only for the route that succeeds; failed generations cost nothing.

## Price at other APIs (checked 2026-10-26)

Per output image at each resolution. Input tokens and reference images, where a seller bills them, and card and top-up fees are not included.

| API | 1MP | 2MP | 3MP | 4MP |
|---|---|---|---|---|
| Revana | $0.05 | $0.10 | $0.15 | $0.20 |
| Replicate | $0.06 | $0.12 | $0.18 | $0.24 |

Lowest listed price per image: 1MP Revana ($0.05); 2MP Revana ($0.10); 3MP Revana ($0.15); 4MP Revana ($0.20).
Full comparison and sources: https://revana.si/blog/cheapest-ai-image-generation-api (data: https://revana.si/data/market-prices.json)

## Request

POST https://api.revana.si/v1/generations with `Authorization: Bearer $REVANA_API_KEY`:

```json
{
  "model": "flux-2-flex",
  "input": {
    "prompt": "A product photo of a ceramic coffee cup on a linen tablecloth, soft morning light",
    "resolution": "1MP",
    "aspect_ratio": "16:9"
  }
}
```

Poll `GET /v1/generations/{id}` until `status` is `succeeded` or `failed`, then download `GET /v1/generations/{id}/content`. Full API: https://revana.si/llms.txt

## Similar models

- [Flux 2 Pro](https://revana.si/models/flux-2-pro.md): from $0.03 per image
- [Flux 3 Video](https://revana.si/models/flux-3-video.md): from $0.06 per second of video
- [Flux 2 Max](https://revana.si/models/flux-2-max.md): from $0.07 per image
- [Flux 3](https://revana.si/models/flux-3.md): from $0.05 per image
- [Flux Kontext Max](https://revana.si/models/flux-kontext-max.md): from $0.07 per image
- [Flux Kontext Pro](https://revana.si/models/flux-kontext-pro.md): from $0.04 per image

