Black Forest Labs
FLUX.2 Klein 4B BF16
分辨率可在 256–1024 px 之间以 16 px 为间隔调整,默认设置为 1024×1024 和 4 步。引导强度固定为 1.0。同一模型支持图像生成和使用多张参考图进行编辑。推理耗时不到一秒。
公开 API 价格
查看所有价格档位$0.00243 / 512×512 (4 steps)
512×512$0.00243
1024×1024~$0.00499
1536×1024~$0.00616
API 模型 ID
适用场景
- 使用一个 API 密钥,通过 POST /api/v2/run 文生图或分段上传图像进行编辑
- 使用预付点数前可通过 POST /api/v2/quote 免费估价
- 直连 GPU 支持高吞吐处理,费率不足一美分,无月度席位费
更多示例
- API 模型 ID
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
复制 FLUX.2 Klein 4B BF16 的 curl 示例
# 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>'价格
| 计费单位和选项 | 费率(美元) |
|---|---|
| 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 的实时目录价格。使用美元预付点数,每个密钥均有支出限额。
在完整目录中比较