Leum chun t-susbaint

Train Flux LoRA

Amalaich

ID a’ mhodail 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"

Faidhlichean mar an eisimpleir: $2.00 2,000 creideasan API thèid na faidhlichean agad a thomhas ron ruith Ruith e air an duilleig seo

Faigh iuchair API
Black Forest Labs Trèanadh Luath #lora#personalization

Trèanaichidh e Flux LoRA air zip de na h-ìomhaighean agad gus neach, cuspair no stoidhle ionnsachadh

Air a dhèanamh air Doitong

Obraichean poblach a rinn coimhearsnachd Doitong le Train Flux LoRA. Ath-chleachd prompt ann an aon bhriogadh.

Obraichean poblach air an sealltainn: 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...

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

•riatanach

Thoir seachad ìomhaighean tro URL tasglann ZIP, le roghainn gach ìomhaigh a chur còmhla ri faidhle teacsa caption den aon ainm. Feuch ri co-dhiù 4 ìomhaighean a chleachdadh; sa chumantas tha seataichean nas motha nas fheàrr.

Cunntas cheumannan trèanaidh airson an LoRA.

Adhartach trigger_word · data_archive_format · create_masks · is_style · is_input_format_already_preprocessed

Thoir seachad facal-brosnachaidh mar roghainn caption nuair a tha captionan a dhìth; cuiridh captionan a tha ann casg air trigger_word a chleachdadh. Suidhich gu None e gus facal-brosnachaidh sam bith a sheachnadh.

Cruth an tasglainn, air a thoirt a-mach às an URL aige nuair a thèid fhàgail às.

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

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu Train Flux LoRA

Gleusaidh e LoRA bho thasglann zip de dh’ìomhaighean (`images_data_url`), a dh’fhaodadh faidhlichean teacsa caipsein co-fhreagarrach a ghabhail a-steach. Cleachd `trigger_word` airson an co-bheachd ainmeachadh, agus `is_style` airson trèanadh stoidhle, a chuireas dheth segmentachadh agus caipseanadh. Bidh `create_masks` a’ cur cuideam call air cuspairean, agus gabhaidh `steps` ri 1 gu 10000. Tillidh e cuideaman LoRA diffusers còmhla ri faidhle rèiteachaidh.

Paramadairean

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
images_data_urlriatanach
Seòrsastring
Thoir seachad ìomhaighean tro URL tasglann ZIP, le roghainn gach ìomhaigh a chur còmhla ri faidhle teacsa caption den aon ainm. Feuch ri co-dhiù 4 ìomhaighean a chleachdadh; sa chumantas tha seataichean nas motha nas fheàrr.
trigger_wordroghainneil
Seòrsastring | null
Thoir seachad facal-brosnachaidh mar roghainn caption nuair a tha captionan a dhìth; cuiridh captionan a tha ann casg air trigger_word a chleachdadh. Suidhich gu None e gus facal-brosnachaidh sam bith a sheachnadh.
create_masksroghainneil
Seòrsaboolean
Bun-roghainntrue
Cuir an comas cuideam stèidhichte air masg den chall trèanaidh le True; airson ìomhaighean dhaoine, cleachdaidh seo masg aghaidh far an gabh sin dèanamh.
stepsroghainneil
Seòrsainteger | null
1 – 10,000
Cunntas cheumannan trèanaidh airson an LoRA.
is_styleroghainneil
Seòrsaboolean
Bun-roghainnfalse
Cuir an comas trèanadh stoidhle le True agus sònraich an stoidhle tron fhacal-brosnachaidh. Sa mhodh seo, gabhaidh am facal-brosnachaidh àite captioning agus thèid sgaradh a chur à comas.
is_input_format_already_preprocessedroghainneil
Seòrsaboolean
Bun-roghainnfalse
Inbhe ro-phròiseasaidh an dàta a chaidh a thoirt seachad: tha True a’ comharrachadh seata-dàta a chaidh ro-phròiseasadh mu thràth. Tha am bun-roghainn, False, an àite sin ag iarraidh paidhrichean ìomhaigh/caption amh le ainmean bunaiteach co-ionann, mar 'photo.jpg' agus 'photo.txt'.
data_archive_formatroghainneil
Seòrsastring | null
Cruth an tasglainn, air a thoirt a-mach às an URL aige nuair a thèid fhàgail às.
riatanach

Toradh

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"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
diffusers_lora_file
object {url, content_type, file_name, file_size}URL a’ comharrachadh cuideaman LoRA trèanaichte ann an cruth diffusers.
config_file
object {url, content_type, file_name, file_size}URL faidhle rèiteachaidh trèanaidh.
debug_preprocessed_output
object {url, content_type, file_name, file_size} | nullURL a lorgas na h-ìomhaighean às dèidh ro-phròiseasaidh.

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/flux-lora-fast-training.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt