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
الاستخدامات الأنسب
- ولّد الصور من النص وحرّر الصور برفعها على أجزاء عبر POST /api/v2/run باستخدام مفتاح API واحد
- احصل على تقدير مجاني عبر POST /api/v2/quote قبل الالتزام باستخدام الرصيد
- معالجة على GPU مباشر بأقل من سنت دون رسوم شهرية للمقاعد
المزيد من الأمثلة
- معرّف النموذج في 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
البدء السريع
انسخ طلبًا جاهزًا يستخدم معرّف النموذج Flux_2_Klein_4B_BF16. تحقّق أولًا من التقدير المجاني قبل التشغيل (تُسوّى التكلفة النهائية عند الانتهاء)، ثم نفّذ الطلب باستخدام مفتاح Runstage API.
فتح الاستوديونسخ مثال 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. رصيد مسبق الدفع بالدولار مع حدود إنفاق لكل مفتاح.
المقارنة في الدليل الكامل