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
त्वरित शुरुआत
मॉडल ID 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 की मौजूदा कैटलॉग दरें। हर कुंजी की खर्च सीमा के साथ प्रीपेड USD क्रेडिट।
पूरे कैटलॉग में तुलना करें