Black Forest Labs
FLUX.2 Klein 4B BF16
Разрешение от 256 до 1024 пикселей с шагом 16 пикселей. По умолчанию используются 1024×1024 и 4 шага. Фиксированное значение гайденса 1,0. Единая модель для генерации изображений и редактирования по нескольким референсам. Инференс занимает меньше секунды.
Варианты применения
- Создавайте изображения по тексту и редактируйте их через multipart-загрузку в POST /api/v2/run с одним ключом API
- Получите бесплатную оценку через POST /api/v2/quote до расходования кредитов
- Обработка на прямом GPU за доли цента без ежемесячной платы за место
Другие примеры
- ID модели в API
Flux_2_Klein_4B_BF16- Разработчик модели
- Black Forest Labs
- Модальность
- Генерация и редактирование изображений
- Вход
- Text prompt · Reference images
- Выход
- Image (PNG / WebP)
- Эндпоинты
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media- Инфраструктура
- Собственный парк GPU
- min_px
- 256
- max_px
- 1536
- step_px
- 16
- max_input_images
- 3
Параметры запроса
modelstring · обязательноExact Runstage model slug (Flux_2_Klein_4B_BF16).
promptstring · обязательноVisual description of subject, composition, lighting, and medium.
width / heightinteger · необязательноOutput pixel dimensions (e.g. 1024×1024 or 1536×1024).
stepsinteger · необязательноNumber of denoising steps controlling fidelity and cost.
Дополнительные параметры
negative_promptguidanceseedlorasenhance_prompt
Быстрый старт
Скопируйте рабочий запрос с ID модели Flux_2_Klein_4B_BF16. Получите бесплатную предварительную оценку (окончательная стоимость определяется по завершении), затем выполните запрос со своим ключом API Runstage.
Открыть студию# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
-H "Content-Type: application/json" \
-d '{"model":"Flux_2_Klein_4B_BF16","width":1024,"height":1024,"steps":4}'
# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
-H "Authorization: Bearer $RUNSTAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "Flux_2_Klein_4B_BF16", "prompt": "A cinematic, hyper-realistic eye-level shot through a rainy coffee shop window at night. Condensation on the glass is partially wiped away to reveal the handwritten text '\''KLEIN 4B'\'' clearly written in the moisture. Through the clear glass, a warm, cozy interior is visible with soft bokeh lights. Outside, reflections of blue and pink neon city lights dance on the wet glass droplets. Incredible texture detail on the water drops and glass surface. 8k resolution, shot on 35mm lens, f/1.4, street photography style.", "width": 1024, "height": 1024, "steps": 4, "seed": 42 }'
# Optional: switch to image editing (img2img) by uploading multipart -F "image=@input.png"
# curl -X POST 'https://runstage.dev/api/v2/run' -H "Authorization: Bearer $RUNSTAGE_API_KEY" --form-string 'model=Flux_2_Klein_4B_BF16' --form-string 'prompt=A cinematic, hyper-realistic eye-level shot through a rainy coffee shop window at night. Condensation on the glass is partially wiped away to reveal the handwritten text '\''KLEIN 4B'\'' clearly written in the moisture. Through the clear glass, a warm, cozy interior is visible with soft bokeh lights. Outside, reflections of blue and pink neon city lights dance on the wet glass droplets. Incredible texture detail on the water drops and glass surface. 8k resolution, shot on 35mm lens, f/1.4, street photography style.' -F "image=@input.png"
# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
'https://runstage.dev/api/v2/jobs/<request_id>'Цены
| Единица тарификации и параметры | Тариф (USD) |
|---|---|
| Draft · 512×512 (4 steps)Fast exploration & thumbnails | $0.00243 |
| Standard · 1024×1024 (4 steps)Production square artwork (estimated) | ~$0.00499 |
| Widescreen · 1536×1024 (4 steps)Hero & banner aspect ratio (estimated) | ~$0.00616 |
Условия оплаты
- Supports up to 3 input images for editing; 256–1536px in steps of 16.
- До списания предоплаченных кредитов можно бесплатно оценить расходы через POST /api/v2/quote.
- При завершении или сбое резерв автоматически пересчитывается по фактической стоимости выполнения, а неиспользованные кредиты возвращаются.
Актуальные тарифы каталога Runstage. Предоплаченные кредиты в USD с лимитами расходов по ключам.
Сравнить в полном каталоге