跳转至内容
Runstage

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
雕塑感鞋履棚拍奶油色与钴蓝色针织跑鞋悬在藏红花黄色底座上方,柔光箱与 85mm 微距镜头勾勒鞋身

雕塑感鞋履棚拍

适用场景

API 参考

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_prompt
  • guidance
  • seed
  • loras
  • enhance_prompt

快速入门

复制使用模型 ID Flux_2_Klein_4B_BF16 的请求示例。先免费获取运行前报价(最终费用在完成时结算),再使用 Runstage API 密钥运行。

打开工作室
# 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 的实时目录价格。使用美元预付点数,每个密钥均有支出限额。

在完整目录中比较