> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ninjachat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FLUX.2 Pro

> flux-2-pro — Balanced quality, speed, and cost. $0.05/image.

|              |                                         |
| ------------ | --------------------------------------- |
| **Model ID** | `flux-2-pro`                            |
| **Provider** | Black Forest Labs                       |
| **Cost**     | \$0.05/img                              |
| **Tier**     | Standard                                |
| **Speed**    | \~3-5s                                  |
| **Best for** | Production apps, balanced quality/speed |

## Description

Black Forest Labs' balanced FLUX.2 model. The best mix of quality, speed, and cost — recommended for most production applications.

## Features

* High quality output
* Fast generation
* Strong prompt adherence
* Multiple aspect ratios
* Custom width/height support

## Example

```bash theme={null}
curl -X POST https://www.ninjachat.ai/api/v1/images \
  -H "Authorization: Bearer nj_sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "flux-2-pro", "prompt": "A sunset over mountains, photorealistic"}'
```

```python theme={null}
import requests, os

r = requests.post("https://www.ninjachat.ai/api/v1/images",
    headers={"Authorization": f"Bearer {os.environ['NINJACHAT_API_KEY']}"},
    json={"model": "flux-2-pro", "prompt": "A sunset over mountains, photorealistic"}
)
print(r.json()["images"][0]["url"])
```

***

**Guides:** [Image Generation](/image-generation) | [All Models](/models) | [Pricing](/pricing) | [Error Handling](/error-handling)
