تخطّي إلى المحتوى

Train Flux LoRA

التكامل

معرّف النموذج 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"

ملفات مثل المثال: ⁨‏2.00 $⁩ 2,000 رصيد API تُقاس ملفاتك قبل التشغيل تشغيله في هذه الصفحة

الحصول على مفتاح API
Black Forest Labs التدريب سريع #lora#personalization

يدرّب Flux LoRA من ملف zip لصورك لتعلّم شخص أو موضوع أو نمط

Black Forest Labs · ملف

ستظهر نتيجتك الأولى هنا

أنشئ طلبًا أدناه وشغّله باستخدام مفتاح API الخاص بك. تُنسخ المخرجات إلى تخزيننا، وتُحفظ إلى الأبد أو لمدة 7 أيام مجانًا.

إنشاء طلب

تُنشأ عناصر التحكم من مخطط النموذج. يتحدّث الرمز والسعر عند تغييرها.

•مطلوب

قدّم الصور عبر عنوان URL لأرشيف ZIP، مع إمكانية إقران كل صورة بملف نصي للتعليق يحمل الاسم نفسه. استهدف 4 صور على الأقل؛ تكون مجموعات الصور الأكبر أفضل عمومًا.

عدد خطوات تدريب LoRA.

متقدم trigger_word · data_archive_format · create_masks · is_style · is_input_format_already_preprocessed

قدّم كلمة تشغيل كبديل للتعليق عند غياب التعليقات؛ تمنع التعليقات الموجودة استخدام trigger_word. اضبطها على None لعدم استخدام كلمة تشغيل.

تنسيق الأرشيف، ويُستدل عليه من عنوان URL عند حذفه.

POST /run/flux-lora-fast-training?wait=20 عرض السعر → ⁨‏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"

تشغيل هذا الطلب

يبقى مفتاحك في هذا المتصفح: لا يُرسل إلا إلى Doitong API ويُحفظ في localStorage فقط إذا فعّلت خيار التذكّر. الحصول على مفتاح API

حول Train Flux LoRA

يضبط LoRA من أرشيف zip للصور (`images_data_url`) الذي قد يتضمن ملفات نصية مطابقة للشرح. استخدم `trigger_word` لتسمية المفهوم، و`is_style` لتدريب النمط، ما يعطل التقسيم وإضافة الشروح. يوجّه `create_masks` الخسارة نحو الموضوعات، ويقبل `steps` من 1 إلى 10000. يعيد أوزان LoRA الخاصة بـ diffusers بالإضافة إلى ملف إعدادات.

المعاملات

الاسمالنوع الافتراضيمسموح الوصف
images_data_urlمطلوب
النوعstring
قدّم الصور عبر عنوان URL لأرشيف ZIP، مع إمكانية إقران كل صورة بملف نصي للتعليق يحمل الاسم نفسه. استهدف 4 صور على الأقل؛ تكون مجموعات الصور الأكبر أفضل عمومًا.
trigger_wordاختياري
النوعstring | null
قدّم كلمة تشغيل كبديل للتعليق عند غياب التعليقات؛ تمنع التعليقات الموجودة استخدام trigger_word. اضبطها على None لعدم استخدام كلمة تشغيل.
create_masksاختياري
النوعboolean
الافتراضيtrue
فعّل ترجيح خسارة التدريب المستند إلى القناع باستخدام True؛ وبالنسبة لصور الأشخاص، يستخدم هذا قناع الوجه كلما أمكن.
stepsاختياري
النوعinteger | null
1 – 10,000
عدد خطوات تدريب LoRA.
is_styleاختياري
النوعboolean
الافتراضيfalse
فعّل تدريب النمط باستخدام True وحدد النمط عبر كلمة التشغيل. في هذا الوضع، تحل كلمة التشغيل محل التعليق ويُعطّل التقسيم.
is_input_format_already_preprocessedاختياري
النوعboolean
الافتراضيfalse
حالة المعالجة المسبقة للبيانات المقدمة: تشير True إلى أن مجموعة البيانات عولجت مسبقًا. أما القيمة الافتراضية False فتتطلب أزواج صور/تعليقات خام بأسماء أساسية متطابقة، مثل 'photo.jpg' و'photo.txt'.
data_archive_formatاختياري
النوعstring | null
تنسيق الأرشيف، ويُستدل عليه من عنوان URL عند حذفه.
مطلوب

المخرجات

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"
  }
}
ملفاتك، خيارككل outputs[].url هو نسخة على تخزيننا: تُحفظ إلى الأبد (مع الدفع لكل غيغابايت-شهر) أو لمدة 7 أيام مجانًا، وفق إعداد حسابك أو ?storage=.
البنية نفسها في كل نموذجtype وurl وcontent_type وwidth وheight وduration للصور والفيديو والصوت على حد سواء. output هو كائن النتائج الخاص بالنموذج.
حقول المخرجات
diffusers_lora_file
object {url, content_type, file_name, file_size}عنوان URL يشير إلى أوزان LoRA المدرّبة بتنسيق diffusers.
config_file
object {url, content_type, file_name, file_size}عنوان URL لملف إعدادات التدريب.
debug_preprocessed_output
object {url, content_type, file_name, file_size} | nullعنوان URL الذي يحدد موقع الصور بعد المعالجة المسبقة.

لوكلاء الذكاء الاصطناعي: تتوفر هذه الصفحة بصيغة Markdown على https://doitong.com/ar/developers/models/flux-lora-fast-training.md. جميع النماذج والأدلة: https://doitong.com/developers/llms.txt