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
ID โมเดลสำหรับ API
เหมาะสำหรับ
- สร้างภาพจากข้อความและแก้ไขภาพแบบ multipart ผ่าน POST /api/v2/run ด้วยคีย์ API เดียว
- ประเมินราคาได้ฟรีผ่าน POST /api/v2/quote ก่อนใช้เครดิต
- ประมวลผลบน GPU โดยตรงในราคาต่ำกว่าหนึ่งเซนต์ ไม่มีค่าที่นั่งรายเดือน
ตัวอย่างเพิ่มเติม
เอกสารอ้างอิง API
- 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
เปิดสตูดิโอคัดลอกตัวอย่าง 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>'ราคา
| หน่วยคิดค่าบริการและตัวเลือก | อัตรา (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 แบบเติมล่วงหน้าพร้อมวงเงินต่อคีย์
เปรียบเทียบในแคตตาล็อกทั้งหมด