सामग्री पर जाएँ

Train Flux LoRA

इंटीग्रेट करें

मॉडल id flux-lora-fast-training
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/flux-lora-fast-training?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

उदाहरण जैसी फ़ाइलें: $2.00 2,000 API क्रेडिट चलाने से पहले आपकी फ़ाइलों को मापा जाता है इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
Black Forest Labs ट्रेनिंग तेज़ #lora#personalization

व्यक्ति, विषय या स्टाइल सीखने के लिए आपकी इमेज के zip पर Flux LoRA को प्रशिक्षित करता है

Doitong पर बनाया गया

Doitong समुदाय द्वारा Train Flux LoRA से बनाए गए सार्वजनिक कार्य। एक क्लिक में प्रॉम्प्ट का पुनः उपयोग करें।

दिखाए गए सार्वजनिक कार्य: 9
Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lemb...

Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi...

Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lemb...

Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi...

Prompt Details Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut ...

Prompt Details Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi...

Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikel...

Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi wajahnya. Ia memeluk...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat men...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat menggemaskan dengan mata cokelat besar yang ekspresif, rambut hitam berantakan yang tebal, mengenakan kaus putih kerah henley. Dia berpose dengan kedua tangan terkatup di depan dada, menunjukkan senyum...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat men...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat menggemaskan dengan mata cokelat besar yang ekspresif, rambut hitam berantakan yang tebal, mengenakan kaus putih kerah henley. Dia berpose dengan kedua tangan terkatup di depan dada, menunjukkan senyum...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat men...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat menggemaskan dengan mata cokelat besar yang ekspresif, rambut hitam berantakan yang tebal, mengenakan kaus putih kerah henley. Dia berpose dengan kedua tangan terkatup di depan dada, menunjukkan senyum...

Foto sinematik hiper-realistis resolusi tinggi menampilkan seorang pria muda Indonesia dengan tub...

Foto sinematik hiper-realistis resolusi tinggi menampilkan seorang pria muda Indonesia dengan tubuh ramping dan proporsional, rambut hitam pendek agak acak, mengenakan jaket kulit hitam, celana riding fit, dan sepatu motor. Ia sedang melakukan aksi freestyle ekstrem dengan motor sport 500cc...

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

•आवश्यक

इमेज एक ZIP आर्काइव URL के ज़रिए दें; वैकल्पिक रूप से प्रत्येक इमेज को उसी नाम वाली कैप्शन टेक्स्ट फ़ाइल के साथ जोड़ा जा सकता है। कम से कम 4 इमेज का लक्ष्य रखें; बड़े इमेज सेट आम तौर पर बेहतर होते हैं।

LoRA के लिए प्रशिक्षण चरणों की संख्या।

उन्नत trigger_word · data_archive_format · create_masks · is_style · is_input_format_already_preprocessed

कैप्शन न होने पर उनके स्थान पर ट्रिगर शब्द दें; मौजूदा कैप्शन होने पर trigger_word का उपयोग नहीं किया जाता। किसी ट्रिगर शब्द का उपयोग न करने के लिए इसे None पर सेट करें।

आर्काइव फ़ॉर्मैट, न दिए जाने पर उसके URL से अनुमानित।

POST /run/flux-lora-fast-training?wait=20 कोटेशन → $2.00
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/flux-lora-fast-training?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

यह अनुरोध चलाएँ

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

Train Flux LoRA के बारे में

इमेज के zip आर्काइव (`images_data_url`) से LoRA को फ़ाइन-ट्यून करता है, जिसमें मेल खाते कैप्शन टेक्स्ट फ़ाइलें शामिल हो सकती हैं। अवधारणा का नाम देने के लिए `trigger_word` और स्टाइल प्रशिक्षण के लिए `is_style` का उपयोग करें; इससे सेगमेंटेशन और कैप्शनिंग बंद हो जाती है। `create_masks` लॉस को विषयों की ओर अधिक भार देता है, और `steps` 1 से 10000 तक स्वीकार करता है। Diffusers LoRA वेट्स और एक कॉन्फ़िग फ़ाइल लौटाता है।

पैरामीटर

नामप्रकार डिफ़ॉल्टअनुमत विवरण
images_data_urlआवश्यक
प्रकारstring
इमेज एक ZIP आर्काइव URL के ज़रिए दें; वैकल्पिक रूप से प्रत्येक इमेज को उसी नाम वाली कैप्शन टेक्स्ट फ़ाइल के साथ जोड़ा जा सकता है। कम से कम 4 इमेज का लक्ष्य रखें; बड़े इमेज सेट आम तौर पर बेहतर होते हैं।
trigger_wordवैकल्पिक
प्रकारstring | null
कैप्शन न होने पर उनके स्थान पर ट्रिगर शब्द दें; मौजूदा कैप्शन होने पर trigger_word का उपयोग नहीं किया जाता। किसी ट्रिगर शब्द का उपयोग न करने के लिए इसे None पर सेट करें।
create_masksवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
True के साथ प्रशिक्षण लॉस की मास्क-आधारित वेटिंग सक्षम करें; लोगों की इमेज के लिए, जब संभव हो, यह फ़ेस मास्क का उपयोग करता है।
stepsवैकल्पिक
प्रकारinteger | null
1 – 10,000
LoRA के लिए प्रशिक्षण चरणों की संख्या।
is_styleवैकल्पिक
प्रकारboolean
डिफ़ॉल्टfalse
True के साथ स्टाइल प्रशिक्षण सक्षम करें और trigger word के ज़रिए स्टाइल निर्दिष्ट करें। इस मोड में trigger word कैप्शनिंग का स्थान लेता है और सेगमेंटेशन अक्षम होता है।
is_input_format_already_preprocessedवैकल्पिक
प्रकारboolean
डिफ़ॉल्टfalse
दिए गए डेटा की प्रीप्रोसेसिंग स्थिति: True पहले से प्रीप्रोसेस किए गए डेटासेट को दर्शाता है। डिफ़ॉल्ट False के लिए matching base names वाली कच्ची इमेज/कैप्शन जोड़ियां आवश्यक होती हैं, जैसे 'photo.jpg' और 'photo.txt'।
data_archive_formatवैकल्पिक
प्रकारstring | null
आर्काइव फ़ॉर्मैट, न दिए जाने पर उसके URL से अनुमानित।
आवश्यक

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-lora-fast-training",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 2000,
    "usd": "2.00",
    "charged": 2000,
    "refunded": 0
  },
  "input": {
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "diffusers_lora_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "config_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "debug_preprocessed_output": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
आपकी फ़ाइलें, आपकी पसंदहर outputs[].url हमारे स्टोरेज में एक कॉपी है: हमेशा के लिए (प्रति GB-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?storage= के अनुसार।
हर मॉडल पर एक जैसा आकारइमेज, वीडियो और ऑडियो सभी के लिए type, url, content_type, width, height और duration। output मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
diffusers_lora_file
object {url, content_type, file_name, file_size}diffusers format में trained LoRA weights की ओर संकेत करने वाला URL।
config_file
object {url, content_type, file_name, file_size}प्रशिक्षण कॉन्फ़िगरेशन फ़ाइल URL।
debug_preprocessed_output
object {url, content_type, file_name, file_size} | nullप्रीप्रोसेसिंग के बाद इमेज का स्थान बताने वाला URL।

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/flux-lora-fast-training.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt