အကြောင်းအရာသို့ ကျော်ရန်

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://vit.doitong.com/api/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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

နမူနာကဲ့သို့ ဖိုင်များ: ၂.၀၀ $ ၂,၀၀၀ API ခရက်ဒစ် လုပ်ဆောင်မီ သင့်ဖိုင်များကို တိုင်းတာသည် ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
Black Forest Labs လေ့ကျင့်ခြင်း မြန်ဆန် #lora#personalization

လူပုဂ္ဂိုလ်၊ အကြောင်းအရာ သို့မဟုတ် စတိုင်ကို လေ့လာရန် သင့်ပုံများ၏ zip ပေါ်တွင် Flux LoRA ကို လေ့ကျင့်ပေးသည်

Black Forest Labs · ဖိုင်

သင့်ပထမဆုံးရလဒ် ဤနေရာတွင် ပေါ်လာမည်

အောက်တွင် တောင်းဆိုချက်တစ်ခု တည်ဆောက်ပြီး သင့် API ကီးဖြင့် လုပ်ဆောင်ပါ။ ထွက်ရလဒ်များကို ကျွန်ုပ်တို့၏ သိုလှောင်မှုသို့ ကူးယူပြီး အမြဲတမ်း သို့မဟုတ် ၇ ရက် အခမဲ့ သိမ်းထားသည်။

တောင်းဆိုမှုတစ်ခု တည်ဆောက်ရန်

ထိန်းချုပ်မှုများကို မော်ဒယ် schema မှ အလိုအလျောက်ဖန်တီးသည်။ ၎င်းတို့ကို ပြောင်းလဲသည်နှင့် code နှင့် စျေးနှုန်းတို့လည်း ပြောင်းလဲမည်။

•လိုအပ်သည်

ZIP archive URL မှတစ်ဆင့် ပုံများကို ပေးပါ။ ပုံတစ်ပုံစီနှင့် အမည်တူ caption စာသားဖိုင်ကို ရွေးချယ်၍ တွဲနိုင်သည်။ အနည်းဆုံး ပုံ 4 ပုံ ရှိရန် ရည်ရွယ်ပါ။ ပုံအစု ပိုများလေ ယေဘုယျအားဖြင့် ပိုကောင်းလေ ဖြစ်သည်။

LoRA အတွက် လေ့ကျင့်မှုအဆင့် အရေအတွက်။

အဆင့်မြင့် trigger_word · data_archive_format · create_masks · is_style · is_input_format_already_preprocessed

caption များ မရှိသောအခါ caption အစား အသုံးပြုရန် trigger word တစ်ခု ပေးပါ။ ရှိပြီးသား caption များရှိပါက trigger_word ကို အသုံးမပြုပါ။ trigger word မသုံးရန် None ဟု သတ်မှတ်ပါ။

မသတ်မှတ်ထားပါက URL မှ ခန့်မှန်းယူသည့် archive format။

POST /run/flux-lora-fast-training?wait=20 ကုန်ကျစရိတ် → ၂.၀၀ $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ဤတောင်းဆိုချက်ကို လုပ်ဆောင်ရန်

သင့် key သည် ဤဘရောက်ဇာထဲတွင်သာ ရှိမည်ဖြစ်ပြီး Doitong API သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

Train Flux LoRA အကြောင်း

ပုံများ၏ မော်ကွန်း (`images_data_url`) မှ LoRA ကို အသေးစိတ်ချိန်ညှိပေးပြီး ကိုက်ညီသော ဖော်ပြစာ စာသားဖိုင်များ ထည့်နိုင်သည်။ အယူအဆကို အမည်ပေးရန် `trigger_word` ကို အသုံးပြုပြီး စတိုင်လေ့ကျင့်မှုအတွက် `is_style` ကို အသုံးပြုနိုင်သည်။ ၎င်းသည် အပိုင်းခွဲခြားခြင်းနှင့် ဖော်ပြစာဖန်တီးခြင်းကို ပိတ်သည်။ `create_masks` သည် loss ကို အကြောင်းအရာများဘက်သို့ အလေးပေးပြီး `steps` သည် 1 မှ 10000 အထိ လက်ခံသည်။ diffusers LoRA Weights နှင့် config ဖိုင်ကို ပြန်ပေးသည်။

ပါရာမီတာများ

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
images_data_urlလိုအပ်သည်
အမျိုးအစားstring
ZIP archive URL မှတစ်ဆင့် ပုံများကို ပေးပါ။ ပုံတစ်ပုံစီနှင့် အမည်တူ caption စာသားဖိုင်ကို ရွေးချယ်၍ တွဲနိုင်သည်။ အနည်းဆုံး ပုံ 4 ပုံ ရှိရန် ရည်ရွယ်ပါ။ ပုံအစု ပိုများလေ ယေဘုယျအားဖြင့် ပိုကောင်းလေ ဖြစ်သည်။
trigger_wordရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
caption များ မရှိသောအခါ caption အစား အသုံးပြုရန် trigger word တစ်ခု ပေးပါ။ ရှိပြီးသား caption များရှိပါက trigger_word ကို အသုံးမပြုပါ။ trigger word မသုံးရန် None ဟု သတ်မှတ်ပါ။
create_masksရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
True ဖြင့် လေ့ကျင့်မှု loss တွင် mask အခြေပြု အလေးချိန်ချိန်ညှိမှုကို ဖွင့်ပါ။ လူပုံများအတွက် ဖြစ်နိုင်သည့်အခါတိုင်း face mask ကို အသုံးပြုသည်။
stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
၁ – ၁၀,၀၀၀
LoRA အတွက် လေ့ကျင့်မှုအဆင့် အရေအတွက်။
is_styleရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
True ဖြင့် style training ကို ဖွင့်ပြီး trigger word မှတစ်ဆင့် style ကို သတ်မှတ်ပါ။ ဤမုဒ်တွင် trigger word သည် captioning ကို အစားထိုးပြီး segmentation ကို ပိတ်ထားသည်။
is_input_format_already_preprocessedရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
ပေးပို့ထားသော ဒေတာ၏ preprocessing အခြေအနေ။ True သည် ကြိုတင် preprocessing ပြုလုပ်ပြီးသား dataset ဖြစ်ကြောင်း ဖော်ပြသည်။ မူလတန်ဖိုး False ဖြစ်ပါက base name တူညီသော raw ပုံ/caption အတွဲများ လိုအပ်သည်၊ ဥပမာ 'photo.jpg' နှင့် 'photo.txt'။
data_archive_formatရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
မသတ်မှတ်ထားပါက URL မှ ခန့်မှန်းယူသည့် archive format။
လိုအပ်သည်

ထွက်ရလဒ်

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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
သင့်ဖိုင်များ၊ သင့်ရွေးချယ်မှုoutputs[].url တိုင်းသည် ကျွန်ုပ်တို့၏ သိုလှောင်မှုရှိ မိတ္တူဖြစ်သည်- အမြဲတမ်း (GB-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
diffusers_lora_file
object {url, content_type, file_name, file_size}diffusers ဖော်မတ်ရှိ လေ့ကျင့်ပြီး 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} | nullpreprocessing ပြီးနောက် ပုံများ၏ တည်နေရာကို ညွှန်ပြသည့် URL။

AI အေးဂျင့်များအတွက်- ဤစာမျက်နှာ၏ Markdown ကို ဤနေရာတွင် ရရှိနိုင်သည် https://doitong.com/my/developers/models/flux-lora-fast-training.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt