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

Wan 2.2 14B Image Trainer

التكامل

معرّف النموذج wan-22-image-trainer
# 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/wan-22-image-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "training_data_url": "https://example.com/your-file.zip",
    "trigger_phrase": "example"
  }'

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

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

الحصول على مفتاح API
Alibaba التدريب #lora#personalization

يدرّب LoRA لـ Wan 2.2 14B على صورك لعنصر أو نمط، ويعيد ملفات LoRA للضوضاء المنخفضة والعالية

أُنشئت على Doitong

أعمال عامة أُنشئت باستخدام Wan 2.2 14B Image Trainer من مجتمع Doitong. أعد استخدام موجّه بنقرة واحدة.

الأعمال العامة المعروضة: 2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... فيديو

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кух... فيديو

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кухне, мужчина — в комнате и прихожей. Атмосфера обычной советской семьи перед приходом гостей. Голоса: все персонажи говорят по-русски с естественным, выразительным одесским говором. Характерная...

إنشاء طلب

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

•مطلوب

موقع بيانات التدريب كعنوان URL.

•مطلوب

العبارة المستخدمة لتشغيل النموذج.

الافتراضي 1000

إجمالي عدد خطوات التدريب.

متقدم learning_rate · include_synthetic_captions · use_face_detection · use_face_cropping · use_masks · is_style
الافتراضي 0.0007

معدل التعلم أثناء التدريب.

POST /run/wan-22-image-trainer?wait=20 عرض السعر → ⁨‏4.50 $⁩
# 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/wan-22-image-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "training_data_url": "https://example.com/your-file.zip",
    "trigger_phrase": "example"
  }'

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

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

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

حول Wan 2.2 14B Image Trainer

يضبط LoRA لتحويل النص إلى صورة في Wan 2.2 من مجموعة بيانات في `training_data_url` مرتبطة بـ `trigger_phrase` مطلوب. تتراوح `steps` بين 10 و6000 و`learning_rate` بين 1e-6 و0.1. يمكن تفعيل اكتشاف الوجوه واقتصاصها والأقنعة أو تعطيلها، ويعطّل `is_style` الخيارات الخاصة بالوجه. تشمل المخرجات ملف إعدادات وملفي LoRA منفصلين للضوضاء المنخفضة والعالية.

المعاملات

الاسمالنوع الافتراضيمسموح الوصف
training_data_urlمطلوب
النوعstring
موقع بيانات التدريب كعنوان URL.
trigger_phraseمطلوب
النوعstring
العبارة المستخدمة لتشغيل النموذج.
include_synthetic_captionsاختياري
النوعboolean
الافتراضيfalse
يتحكم في تضمين التسميات التوضيحية الاصطناعية.
use_face_detectionاختياري
النوعboolean
الافتراضيtrue
مفتاح تغيير الحجم المتمركز على الوجه لصور التدريب: يؤدي تمكين اكتشاف الوجه إلى جعل مركز الوجه المكتشف مركز الصورة أثناء تغيير الحجم.
use_face_croppingاختياري
النوعboolean
الافتراضيfalse
مفتاح قص الوجه لصور التدريب؛ ويضيف قصًا حول الوجه قبل خطوة تغيير الحجم عند تمكينه.
use_masksاختياري
النوعboolean
الافتراضيtrue
يتحكم في استخدام الأقنعة لبيانات التدريب.
stepsاختياري
النوعinteger
الافتراضي1000
10 – 6,000
إجمالي عدد خطوات التدريب.
learning_rateاختياري
النوعnumber
الافتراضي0.0007
0.000001 – 0.1
معدل التعلم أثناء التدريب.
is_styleاختياري
النوعboolean
الافتراضيfalse
تعيين بيانات النمط للتدريب؛ يؤدي ضبطه على true إلى إيقاف الميزات الخاصة بالوجه، بما فيها القناع واكتشاف الوجه.
مطلوب

المخرجات

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-22-image-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": 4500,
    "usd": "4.50",
    "charged": 4500,
    "refunded": 0
  },
  "input": {
    "training_data_url": "https://example.com/your-file.zip",
    "trigger_phrase": "example"
  },
  "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
    },
    "high_noise_lora": {
      "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://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/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}ملف LoRA للضوضاء المنخفضة.
high_noise_lora
object {url, content_type, file_name, file_size}ملف LoRA للضوضاء العالية.
config_file
object {url, content_type, file_name, file_size}ملف إعداد يدعم نقاط نهاية الاستدلال بعد التدريب.

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