Léim chuig an ábhar

Train Flux LoRA

Comhtháthú

Aitheantas na samhla 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"

Comhaid cosúil leis an sampla: $2.00 2,000 gcreidmheas API déantar do chuid comhad a thomhas roimh an rith Rith ar an leathanach seo

Faigh eochair API
Black Forest Labs Oiliúint Tapa #lora#personalization

Traenálann sé Flux LoRA ar zip d’íomhánna chun duine, ábhar nó stíl a fhoghlaim

Déanta ar Doitong

Saothair phoiblí déanta leis an Train Flux LoRA ag pobal Doitong. Athúsáid leid le clic amháin.

Saothair phoiblí ar taispeáint: 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...

Tóg iarratas

Gintear na rialtáin ó scéim na samhla. Nuashonraítear an cód agus an praghas de réir mar a athraíonn tú iad.

•riachtanach

Soláthair íomhánna trí URL cartlainne ZIP, agus péireáil roghnach idir gach íomhá agus comhad téacs fotheidil den ainm céanna. Dírigh ar 4 íomhá ar a laghad; is fearr de ghnáth tacair níos mó d’íomhánna.

Líon céimeanna oiliúna an LoRA.

Ardleibhéal trigger_word · data_archive_format · create_masks · is_style · is_input_format_already_preprocessed

Soláthair focal spreagtha mar ionadach fotheidil nuair a bhíonn fotheidil in easnamh; cuireann fotheidil atá ann cosc ar trigger_word a úsáid. Socraigh go None é chun gan focal spreagtha a úsáid.

Formáid na cartlainne, tátaithe óna URL nuair a fhágtar ar lár í.

POST /run/flux-lora-fast-training?wait=20 luachan → $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"

Rith an t-iarratas seo

Fanann d'eochair sa bhrabhsálaí seo: seoltar chuig Doitong API amháin í agus sábháiltear (localStorage) í ach amháin má chuireann tú tic le Meabhraigh. Faigh eochair API

Maidir le Train Flux LoRA

Miontiúnálann sé LoRA ó chartlann zip íomhánna (`images_data_url`), a bhféadfadh comhaid téacs fotheidil mheaitseála a bheith inti. Úsáid `trigger_word` chun an coincheap a ainmniú, agus `is_style` le haghaidh traenáil stíle, rud a mhúchann deighilt agus fotheidealú. Cuireann `create_masks` meáchan níos mó ar an gcaillteanas i dtreo na n-ábhar, agus glacann `steps` 1 go 10000. Filleann sé meáchain LoRA diffusers chomh maith le comhad cumraíochta.

Paraiméadair

AinmCineál RéamhshocrúCeadaithe Cur síos
images_data_urlriachtanach
Cineálstring
Soláthair íomhánna trí URL cartlainne ZIP, agus péireáil roghnach idir gach íomhá agus comhad téacs fotheidil den ainm céanna. Dírigh ar 4 íomhá ar a laghad; is fearr de ghnáth tacair níos mó d’íomhánna.
trigger_wordroghnach
Cineálstring | null
Soláthair focal spreagtha mar ionadach fotheidil nuair a bhíonn fotheidil in easnamh; cuireann fotheidil atá ann cosc ar trigger_word a úsáid. Socraigh go None é chun gan focal spreagtha a úsáid.
create_masksroghnach
Cineálboolean
Réamhshocrútrue
Cumasaigh ualú masc-bhunaithe ar chaillteanas na hoiliúna le True; i gcás íomhánna daoine, úsáideann sé masc aghaidhe nuair is féidir.
stepsroghnach
Cineálinteger | null
1 – 10,000
Líon céimeanna oiliúna an LoRA.
is_styleroghnach
Cineálboolean
Réamhshocrúfalse
Cumasaigh oiliúint stíle le True agus sonraigh an stíl tríd an bhfocal spreagtha. Sa mhód seo, glacann an focal spreagtha áit an fhotheidil, agus díchumasaítear deighilt.
is_input_format_already_preprocessedroghnach
Cineálboolean
Réamhshocrúfalse
Stádas réamhphróiseála na sonraí soláthraithe: léiríonn True tacar sonraí atá réamhphróiseáilte cheana. Éilíonn an réamhshocrú, False, péirí amh íomhá/fotheidil a bhfuil na bunnuithe céanna acu, amhail 'photo.jpg' agus 'photo.txt'.
data_archive_formatroghnach
Cineálstring | null
Formáid na cartlainne, tátaithe óna URL nuair a fhágtar ar lár í.
riachtanach

Aschur

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"
  }
}
Do chuid comhad, do roghaIs cóip ar ár stóráil é gach outputs[].url: coinnithe go deo (íoctha in aghaidh GB-mhí) nó ar feadh 7 lá saor in aisce, de réir shocrú do chuntais nó ?storage=.
An cruth céanna ar gach samhailtype, url, content_type, width, height agus duration, d'íomhánna, d'fhíseáin agus d'fhuaim araon. Is é output réad toraidh na samhla féin.
Réimsí aschuir
diffusers_lora_file
object {url, content_type, file_name, file_size}URL a dhíríonn ar mheáchain LoRA oilte i bhformáid diffusers.
config_file
object {url, content_type, file_name, file_size}URL comhaid chumraíochta na hoiliúna.
debug_preprocessed_output
object {url, content_type, file_name, file_size} | nullURL ina bhfuil na híomhánna tar éis réamhphróiseála.

Do ghníomhairí AI: tá an leathanach seo mar Markdown ag https://doitong.com/ga/developers/models/flux-lora-fast-training.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt