Dža ko lil

Train Flux LoRAs For Portraits

Integriruj

Modelosko id flux-lora-portrait-trainer
# 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-portrait-trainer?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: $6.00 6,000 API krediti tire fajlo si merime angl-o phiripen Phir les kate

Lel API klidin
Black Forest Labs Sikavipen #lora#personalization

FLUX LoRA trainer vaś portretura, e subjektoske crop-esa thaj checkpoint resume-esa

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 ZIP archive URL vaš kipa jekhe stilosa, optionalno e caption text fajlenca save navinena sar lengere kipa. Caption text šaj lel `[trigger]`; specifikir trigger_word te reemplasir les kadale value-sa. Cird e najman 10 kipa, bareder set-ja si majfeder.

standardno 2500

Training step-engo gindo vaš e LoRA.

Lučhe trigger_phrase · data_archive_format · resume_from_checkpoint · learning_rate · multiresolution_training · subject_crop · create_masks

De trigger phrase vaš reemplasir `[trigger]` ande existime caption-ja vaj te služil sar caption kana naj save; trigger_work. None phandel o trigger word.

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

standardno

Checkpoint URL vaš training-esko resume-keripe.

standardno 9.0e-05

Learning rate aplikime andar training.

POST /run/flux-lora-portrait-trainer?wait=20 hesab → $6.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-portrait-trainer?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 LoRAs For Portraits

Sikavel jekh LoRA fokusirime pe portreta andar jekh zip kipenca pe `images_data_url`; rekomenduil pes maj cerra 10. E opcije si `trigger_phrase`, `learning_rate` (1e-6 dži ka 0.001), `steps` (standardno 2500, maksimum 10000), `subject_crop`, sikavipe pe but rezolucije thaj `resume_from_checkpoint`. Del palpale pharipen thaj konfiguracija.

Parametra

NavTip standardnoMuklo Vakeripe
images_data_urltrubul
Tipstring
De ZIP archive URL vaš kipa jekhe stilosa, optionalno e caption text fajlenca save navinena sar lengere kipa. Caption text šaj lel `[trigger]`; specifikir trigger_word te reemplasir les kadale value-sa. Cird e najman 10 kipa, bareder set-ja si majfeder.
trigger_phraseopcionalno
Tipstring | null
De trigger phrase vaš reemplasir `[trigger]` ande existime caption-ja vaj te služil sar caption kana naj save; trigger_work. None phandel o trigger word.
learning_rateopcionalno
Tipnumber
standardno9.0e-05
0.000001 – 0.001
Learning rate aplikime andar training.
stepsopcionalno
Tipinteger
standardno2500
1 – 10,000
Training step-engo gindo vaš e LoRA.
multiresolution_trainingopcionalno
Tipboolean
standardnotrue
Aktivirin training pe but rezolucija kana True.
subject_cropopcionalno
Tipboolean
standardnotrue
Aktivirin e subject-esko crop-keripe avri e kipesa kana True.
data_archive_formatopcionalno
Tipstring | null
Archive formato, inferime andar lesto URL kana na del pes.
resume_from_checkpointopcionalno
Tipstring
standardno
Checkpoint URL vaš training-esko resume-keripe.
create_masksopcionalno
Tipboolean
standardnofalse
Aktivirin subject mask-esko keripe kana True.
trubul

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-lora-portrait-trainer",
  "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": 6000,
    "usd": "6.00",
    "charged": 6000,
    "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
    }
  },
  "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.

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