Neidio i'r cynnwys

Train Flux LoRA

Integreiddio

ID y model 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"

Ffeiliau fel yr enghraifft: $2.00 2,000 o gredydau API caiff eich ffeiliau eu mesur cyn y rhediad Ei redeg ar y dudalen hon

Cael allwedd API
Black Forest Labs Hyfforddi Cyflym #lora#personalization

Yn hyfforddi LoRA Flux ar zip o’ch delweddau i ddysgu person, pwnc neu arddull

Black Forest Labs · Ffeil

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol

Darparwch ddelweddau drwy URL archif ZIP, gan baru pob delwedd yn ddewisol â ffeil destun capsiwn o'r un enw. Anelwch at o leiaf 4 delwedd; mae setiau mwy o ddelweddau yn well ar y cyfan.

Nifer y camau hyfforddi ar gyfer y LoRA.

Uwch trigger_word · data_archive_format · create_masks · is_style · is_input_format_already_preprocessed

Darparwch air sbarduno yn lle capsiwn pan fo capsiynau ar goll; mae capsiynau presennol yn atal defnyddio trigger_word. Gosodwch ef i None i beidio â defnyddio gair sbarduno.

Fformat yr archif, a ddiddynnir o'i URL os caiff ei hepgor.

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

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Train Flux LoRA

Yn mireinio LoRA o archif zip o ddelweddau (`images_data_url`), a all gynnwys ffeiliau testun capsiwn cyfatebol. Defnyddiwch `trigger_word` i enwi’r cysyniad, a `is_style` ar gyfer hyfforddi arddull, sy’n diffodd segmentu a chapsiynu. Mae `create_masks` yn pwysoli’r golled tuag at bynciau, ac mae `steps` yn derbyn 1 i 10000. Yn dychwelyd pwysau LoRA diffusers ynghyd â ffeil ffurfweddu.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
images_data_urlgofynnol
Mathstring
Darparwch ddelweddau drwy URL archif ZIP, gan baru pob delwedd yn ddewisol â ffeil destun capsiwn o'r un enw. Anelwch at o leiaf 4 delwedd; mae setiau mwy o ddelweddau yn well ar y cyfan.
trigger_worddewisol
Mathstring | null
Darparwch air sbarduno yn lle capsiwn pan fo capsiynau ar goll; mae capsiynau presennol yn atal defnyddio trigger_word. Gosodwch ef i None i beidio â defnyddio gair sbarduno.
create_masksdewisol
Mathboolean
Rhagosodedigtrue
Galluogwch bwysoli'r golled hyfforddi ar sail mwgwd gyda True; ar gyfer delweddau o bobl, mae hyn yn defnyddio mwgwd wyneb pryd bynnag y bo modd.
stepsdewisol
Mathinteger | null
1 – 10,000
Nifer y camau hyfforddi ar gyfer y LoRA.
is_styledewisol
Mathboolean
Rhagosodedigfalse
Galluogwch hyfforddi arddull gyda True a nodwch yr arddull drwy'r gair sbarduno. Yn y modd hwn, mae'r gair sbarduno yn cymryd lle capsiynau, ac mae segmentu wedi'i analluogi.
is_input_format_already_preprocesseddewisol
Mathboolean
Rhagosodedigfalse
Statws rhagbrosesu'r data a ddarparwyd: mae True yn dynodi set ddata sydd eisoes wedi'i rhagbrosesu. Mae'r gwerth rhagosodedig, False, yn gofyn yn hytrach am barau delwedd/capsiwn crai ag enwau sylfaen cyfatebol, megis 'photo.jpg' a 'photo.txt'.
data_archive_formatdewisol
Mathstring | null
Fformat yr archif, a ddiddynnir o'i URL os caiff ei hepgor.
gofynnol

Allbwn

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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
diffusers_lora_file
object {url, content_type, file_name, file_size}URL sy'n pwyntio at bwysau LoRA hyfforddedig mewn fformat diffusers.
config_file
object {url, content_type, file_name, file_size}URL y ffeil ffurfweddu hyfforddiant.
debug_preprocessed_output
object {url, content_type, file_name, file_size} | nullURL lleoliad y delweddau ar ôl rhagbrosesu.

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/flux-lora-fast-training.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt