Изображения
FLUX.2 [klein] 9B
4-шаговая дистиллированная версия FLUX.2 [klein]. Базовая модель для максимальной гибкости и контроля.
Передайте модели описание будущего изображения. Используйте результат как основу для иллюстрации, рекламного материала или оформления сайта.
На входе
Текстовое описание
На выходе
Изображение
ID модели для API
bfl-flux-2-klein-9b

Маршрут
OpenRouter
резервный маршрут · скороВозможности
картинки
Вышла
21 января 2026 г.
у провайдера
Как оплачивается запрос
курс пересчёта · 1 $ = 85,32 ₽
за генерацию
≈ 0,18 ₽
Спишется по факту: сколько единиц ушло на запрос, столько и заплатите.
Как подключить модель
вся документация →Модель запускается методом POST /v1/runs, итог — опросом GET /v1/runs/{id}. Задач у модели несколько — поле task обязательно.
правка картинки task: image_edit
- prompt
- текст запроса
- input.CFGScale
- CFG Scale — 1–20 · по умолчанию 3.5
- input.acceleration
- Acceleration Option — none, low, medium, high · по умолчанию high
- input.acceleratorOptions__cacheEndStep
- Cache End Step — 1–…
- input.acceleratorOptions__cacheEndStepPercentage
- Cache End Step Percentage — 1–100
- input.acceleratorOptions__cacheMaxConsecutiveSteps
- Cache Max Consecutive Steps — 1–5 · по умолчанию 3
- input.acceleratorOptions__cacheStartStep
- Cache Start Step — 0–…
- input.acceleratorOptions__cacheStartStepPercentage
- Cache Start Step Percentage — 0–99
- input.acceleratorOptions__dbCache
- DB Cache
- input.acceleratorOptions__dbCacheSkipInterval
- DB Cache Skip Interval — 1–… · по умолчанию 5
- input.acceleratorOptions__dbCacheThreshold
- DB Cache Threshold — 0–1 · по умолчанию 0.25
- input.acceleratorOptions__teaCache
- TeaCache
- input.acceleratorOptions__teaCacheDistance
- TeaCache Distance — 0–1 · по умолчанию 0.5
- input.advancedFeatures__watermark__bgColor
- Background Color
- input.advancedFeatures__watermark__displayPosition
- Display Position — top-left, top-center, top-right, center-left, center-center, center-right, bottom-left, bottom-center, …
- input.advancedFeatures__watermark__fontColor
- Font Color
- input.advancedFeatures__watermark__image
- Watermark Image
- input.advancedFeatures__watermark__opacity
- Watermark Opacity — 0.1–1
- input.advancedFeatures__watermark__text
- Watermark Text
- input.height
- Height — 128–2048
- input.numberResults
- Number of Results — 1–20 · по умолчанию 1
- input.outputFormat
- Output Format — JPG, PNG, WEBP · по умолчанию PNG
- input.outputQuality
- Output Quality — 20–99 · по умолчанию 95
- input.scheduler
- Scheduler — DDIM, DDIMScheduler, DDPMScheduler, DEISMultistepScheduler, Default, DPM++, DPM++ 2M, DPM++ 2M Beta, …
- input.seed
- Seed — 0–9223372036854776000
- input.steps
- Steps — 1–50 · по умолчанию 4
- input.width
- Width — 128–2048
- files.inputs__referenceImages
- картинка · до 4 файлов · до 20 МБ
curl https://api.aireplica.ru/v1/runs \
-H "Authorization: Bearer sk-air-…" \
-H "Content-Type: application/json" \
-d '{
"model": "bfl-flux-2-klein-9b",
"task": "image_edit",
"prompt": "…"
}'картинка по тексту task: text_to_image
- prompt
- текст запроса
- input.CFGScale
- CFG Scale — 1–20 · по умолчанию 3.5
- input.acceleration
- Acceleration Option — none, low, medium, high · по умолчанию high
- input.acceleratorOptions__cacheEndStep
- Cache End Step — 1–…
- input.acceleratorOptions__cacheEndStepPercentage
- Cache End Step Percentage — 1–100
- input.acceleratorOptions__cacheMaxConsecutiveSteps
- Cache Max Consecutive Steps — 1–5 · по умолчанию 3
- input.acceleratorOptions__cacheStartStep
- Cache Start Step — 0–…
- input.acceleratorOptions__cacheStartStepPercentage
- Cache Start Step Percentage — 0–99
- input.acceleratorOptions__dbCache
- DB Cache
- input.acceleratorOptions__dbCacheSkipInterval
- DB Cache Skip Interval — 1–… · по умолчанию 5
- input.acceleratorOptions__dbCacheThreshold
- DB Cache Threshold — 0–1 · по умолчанию 0.25
- input.acceleratorOptions__teaCache
- TeaCache
- input.acceleratorOptions__teaCacheDistance
- TeaCache Distance — 0–1 · по умолчанию 0.5
- input.advancedFeatures__watermark__bgColor
- Background Color
- input.advancedFeatures__watermark__displayPosition
- Display Position — top-left, top-center, top-right, center-left, center-center, center-right, bottom-left, bottom-center, …
- input.advancedFeatures__watermark__fontColor
- Font Color
- input.advancedFeatures__watermark__image
- Watermark Image
- input.advancedFeatures__watermark__opacity
- Watermark Opacity — 0.1–1
- input.advancedFeatures__watermark__text
- Watermark Text
- input.height
- Height — 128–2048
- input.numberResults
- Number of Results — 1–20 · по умолчанию 1
- input.outputFormat
- Output Format — JPG, PNG, WEBP · по умолчанию PNG
- input.outputQuality
- Output Quality — 20–99 · по умолчанию 95
- input.scheduler
- Scheduler — DDIM, DDIMScheduler, DDPMScheduler, DEISMultistepScheduler, Default, DPM++, DPM++ 2M, DPM++ 2M Beta, …
- input.seed
- Seed — 0–9223372036854776000
- input.steps
- Steps — 1–50 · по умолчанию 4
- input.width
- Width — 128–2048
- files.inputs__referenceImages
- картинка · до 4 файлов · до 20 МБ
curl https://api.aireplica.ru/v1/runs \
-H "Authorization: Bearer sk-air-…" \
-H "Content-Type: application/json" \
-d '{
"model": "bfl-flux-2-klein-9b",
"task": "text_to_image",
"prompt": "…"
}'* — обязательно. Файлы — ссылкой https, data-URI или gen_<id> прежнего запуска.
Куда слать запрос
базовый адрес
https://api.aireplica.ru/v1
заголовок авторизации
Authorization: Bearer sk-air-…
Резервный маршрут в обход OpenRouter скоро
Проверьте параметры перед переносом
В резерв входят картинки, а не промпт
Перед генерацией замораживается стоимость запрошенного числа картинок; текст промпта в резерв не входит. Списывается чек провайдера за весь запрос — одной суммой.
Разница возвращается
После ответа неиспользованный остаток резерва возвращается на баланс.
Если модель снимут
Провайдеры снимают модели с публикации. Каталог сверяется с провайдером каждую ночь: снятая модель гаснет, и её страница перестаёт предлагать запросы.