> ## 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 Klein

> flux-2-klein — Fastest FLUX model, optimized for speed. $0.03/image.

|              |                                             |
| ------------ | ------------------------------------------- |
| **Model ID** | `flux-2-klein`                              |
| **Provider** | Black Forest Labs                           |
| **Cost**     | \$0.03/img                                  |
| **Tier**     | Budget                                      |
| **Speed**    | `&lt;2s`                                    |
| **Best for** | Fast generation, batch processing, previews |

## Description

Black Forest Labs' fastest FLUX.2 model with 9 billion parameters. Optimized for speed and cost-efficiency — ideal for real-time applications, previews, and high-volume batch processing.

## Features

* Text-to-image generation
* Ultra-fast (`&lt;2s`) generation
* 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-klein", "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-klein", "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)
