flux 2 dev
unofficialimage
flux 2 dev specifications
| Context window | — |
|---|---|
| Max output tokens | — |
| Release date | — |
| Input | Text |
| Output | Image |
flux 2 dev pricing in rubles
You pay for what you use, per token and per unit. The final request cost is returned in the API response.
| Type | Price |
|---|---|
| Image | 5,98 ₽ per image |
Prices are in rubles and may change with exchange rates.
What flux 2 dev can do
- Streaming responses
- Generation
flux 2 dev API: connection and code examples
The service exposes a single OpenAI-compatible API. Set our base_url and the key from your dashboard.
OpenAI Python SDK
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.neuralbridge.ru/v1")
image = client.images.generate(model="black-forest-labs/flux-2-dev-08130", prompt="Рыжий кот в скафандре")
print(image.data[0].url or image.data[0].b64_json[:64])cURL
curl https://api.neuralbridge.ru/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "black-forest-labs/flux-2-dev-08130", "prompt": "Рыжий кот в скафандре"}'API endpoints
POST /v1/images/generationsprimary | Images — генерацыі Генерацыя выявы па тэкставым апісанні. |
Supported request parameters
| Parameter | Default | Allowed values | Description |
|---|---|---|---|
size | — | — | Памер выніку радком выгляду «шырыня×вышыня». |
width | — | — | Шырыня выявы ў пікселях. |
height | — | — | Вышыня выявы ў пікселях. |
seed | — | — | Фіксуе выпадковасць: паўторны запыт з тым жа seed і тымі ж параметрамі дае той жа вынік. |
num_steps | 28 | — | Колькасць крокаў генерацыі: больш крокаў — дэталёвей вынік і даўжэйшае чаканне. |
negative_prompt | — | — | Чаго ў выніку быць НЕ павінна: пералічыце непажаданыя аб'екты, дэталі або манеру. |