Dža ko lil

Train Flux LoRA

Integriruj

Modelosko 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"

Fajlo sar o misalo: $2.00 2,000 API krediti tire fajlo si merime angl-o phiripen Phir les kate

Lel API klidin
Black Forest Labs Sikavipen Sig #lora#personalization

Sikavel jekh Flux LoRA pro jekhe zip-este tiri ilustracijenca vaś jekh manuš, subjekt vaj stil

Black Forest Labs · Fajlo

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul

De kipa ande ZIP archive URL, optionalno jekhinindoj sako kipo e caption text fajlosa e jekhe navese. Cird e najman 4 kipa; bareder kipeskere set-ja generalno si feder.

Training step-engo gindo vaš e LoRA.

Lučhe trigger_word · data_archive_format · create_masks · is_style · is_input_format_already_preprocessed

De trigger word sar caption substitute kana caption-ja naj; save caption-ja si, na mukhen trigger_word te use-kerel pes. Thov les pe None te na use-kerel trigger word.

Archive formato, inferime andar lesto URL kana na del pes.

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

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Train Flux LoRA

Fine-tunel jekh LoRA andar jekh zip arkhivo ilustracijenca (`images_data_url`), savo šaj te avel e jekhetane caption tekst-fajlenca. Istifalil `trigger_word` vaś o koncept thaj `is_style` vaś stilako treningo, savo čhinel o segmentipen thaj captioning. `create_masks` del maj but peso vaś subjekta, thaj `steps` lel 1 to 10000. Irinel e diffusers LoRA weights thaj jekh config fajlo.

Parametra

NavTip standardnoMuklo Vakeripe
images_data_urltrubul
Tipstring
De kipa ande ZIP archive URL, optionalno jekhinindoj sako kipo e caption text fajlosa e jekhe navese. Cird e najman 4 kipa; bareder kipeskere set-ja generalno si feder.
trigger_wordopcionalno
Tipstring | null
De trigger word sar caption substitute kana caption-ja naj; save caption-ja si, na mukhen trigger_word te use-kerel pes. Thov les pe None te na use-kerel trigger word.
create_masksopcionalno
Tipboolean
standardnotrue
Aktivirin mask-based weighting e training loss-eskere e True-sa; vaš kipa manušenge, kadava use-kerel face mask kana šaj.
stepsopcionalno
Tipinteger | null
1 – 10,000
Training step-engo gindo vaš e LoRA.
is_styleopcionalno
Tipboolean
standardnofalse
Aktivirin style training e True-sa thaj specifikir e style e trigger word-esa. Ande kadava modo, trigger word remplacerel captioning, thaj segmentation si phandli.
is_input_format_already_preprocessedopcionalno
Tipboolean
standardnofalse
Preprocessing status dino datengo: True phenel dataset already preprocessed. Standardno, False, mangela raw image/caption pair-ja e jekhe base navenca, sar 'photo.jpg' thaj 'photo.txt'.
data_archive_formatopcionalno
Tipstring | null
Archive formato, inferime andar lesto URL kana na del pes.
trubul

Rezultato

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"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
diffusers_lora_file
object {url, content_type, file_name, file_size}URL savo džal ko trenirime LoRA-weightura ande diffusers-formato.
config_file
object {url, content_type, file_name, file_size}Training konfiguracijako URL.
debug_preprocessed_output
object {url, content_type, file_name, file_size} | nullURL savo arakhel e kipa palal preprocessing.

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/flux-lora-fast-training.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt