NeuralBridgeDocumentation

flux 2 dev

unofficialimage
DeveloperBlack-Forest-Labs
Identifierblack-forest-labs/flux-2-dev-08130

flux 2 dev specifications

Context window
Max output tokens
Release date
InputText
OutputImage

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.

TypePrice
Image5,98per image

Prices are in rubles and may change with exchange rates.

What flux 2 dev can do

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/generationsprimaryImages — generations
Mətn təsvirinə əsasən şəkil yaradılması.

Supported request parameters

ParameterDefaultAllowed valuesDescription
sizeNəticənin ölçüsü «eni×hündürlüyü» formatında sətir.
widthŞəkilin eni piksel ilə.
heightŞəkil hündürlüyü piksel olaraq.
seedTəsadüfiliyi sabitləyir: eyni seed və eyni parametrlərlə təkrar sorğu eyni nəticəni verir.
num_steps28Yaratma addımlarının sayı: daha çox addım — daha detallı nəticə və daha uzun gözləmə.
negative_promptNəticədə nə olmamalıdır: istəmədiyiniz obyektləri, detallarını və ya üslubu sadalayın.
Language:РусскийEnglishУкраїнськаБеларускаяҚазақшаOʻzbekchaКыргызчаТоҷикӣՀայերենAzərbaycancaTürkmençeRomânăDeutschFrançaisEspañolItalianoPortuguêsPolskiNederlandsTürkçeΕλληνικά