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

PuLID

التكامل

معرّف النموذج pulid
# 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/pulid?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reference_images": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
      }
    ],
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

هذا الطلب: ≈⁨‏0.009 $⁩ 9 أرصدة API تشغيله في هذه الصفحة

الحصول على مفتاح API
ByteDance تحرير الصور مدخلات مرجعية #editing#customization#personalization

ينشئ صورًا جديدة تحافظ على وجه شخص من صور مرجعية دون ضبط خاص بكل شخص

ByteDance · صورة

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

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

إنشاء طلب

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

•مطلوب

الموجّه المستخدم لتوليد الوجه.

image_size الافتراضي {"height":1024,"width...

أبعاد الصورة المُولّدة.

num_images الافتراضي 1

عدد الصور المراد إنتاجها.

•مطلوب

قائمة صور الوجه المرجعية؛ يُفضّل استخدام 4 صور.

متقدم negative_prompt · mode · guidance_scale · num_inference_steps · id_scale · seed · id_mix · enable_safety_checker
الافتراضي flaws in the eyes, fl...

موجّه سلبي لتوليد الوجه.

mode الافتراضي fidelity

وضع التوليد.

الافتراضي 1.2

مقياس التوجيه.

الافتراضي 4

إجمالي الخطوات المطلوب تنفيذها.

الافتراضي 0.8

مقياس المعرّف.

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

POST /run/pulid?wait=20 عرض السعر → ⁨‏0.009 $⁩
# 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/pulid?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reference_images": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
      }
    ],
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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

حول PuLID

يأخذ `reference_images` لوجه (يُقترح نحو 4 منها) وموجّهًا `prompt`، ثم ينشئ صورًا تحافظ على الهوية. تكون `mode` هي fidelity أو extreme أسلوب، ويتراوح `id_scale` من 0 إلى 5، وتسمح `id_mix` بدمج هويتين. يمكن توليد ما يصل إلى 8 صور، مع 1 إلى 12 خطوة و`guidance_scale` من 1 إلى 1.5.

المعاملات

أرسل الاسم الأساسي أو الاسم الأصلي، وليس كليهما. الأسماء الأساسية

الاسمالنوع الافتراضيمسموح الوصف
reference_imagesمطلوب
النوعobject[]
قائمة صور الوجه المرجعية؛ يُفضّل استخدام 4 صور.
reference_images[].image_urlمطلوب
النوعurl · image
عنوان URL لصورة الوجه المرجعية.
promptمطلوب
النوعstring
الموجّه المستخدم لتوليد الوجه.
negative_promptاختياري
النوعstring
الافتراضيflaws in the eyes, flaws in the face, flaws, lowres, non-HDRi, low quality, worst quality,artifacts noise, text, watermark, glitch, deformed, mutated, ugly, disfigured, hands, low resolution, partially rendered objects, deformed or partially rendered eyes, deformed, deformed eyeballs, cross-eyed,blurry
موجّه سلبي لتوليد الوجه.
num_imagesاختياري num_outputs
النوعinteger
الافتراضي1
1 – 8
عدد الصور المراد إنتاجها.
guidance_scaleاختياري
النوعnumber
الافتراضي1.2
1 – 1.5
مقياس التوجيه.
num_inference_stepsاختياري
النوعinteger
الافتراضي4
1 – 12
إجمالي الخطوات المطلوب تنفيذها.
seedاختياري
النوعinteger | null
البذرة المستخدمة للتوليد العشوائي القابل لإعادة الإنتاج.
image_sizeاختياري
النوعobject
الافتراضي{"height":1024,"width":768}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
أبعاد الصورة المُولّدة.
id_scaleاختياري
النوعnumber
الافتراضي0.8
≤ 5> 0
مقياس المعرّف.
modeاختياري
النوعenum
الافتراضيfidelity
fidelityextreme style
وضع التوليد.
id_mixاختياري
النوعboolean
الافتراضيfalse
ما إذا كان ينبغي مزج صورتي ID. فعّل للمزج، وإلا فعطّل.
enable_safety_checkerاختياري
النوعboolean
الافتراضيtrue
يمكن تخفيف الفحص بضبط القيمة على false، شريطة أن يكون المستدعي مخولًا بذلك.
مطلوب الاسم الأساسي، مقبول أيضًا

المخرجات

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "pulid",
  "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": 9,
    "usd": "0.009",
    "charged": 9,
    "refunded": 0
  },
  "input": {
    "reference_images": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
      }
    ],
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "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,
        "width": 1024,
        "height": 768
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "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 هو كائن النتائج الخاص بالنموذج.
حقول المخرجات
images
array of object {url, content_type, file_name, file_size, width, height}الصور المُولّدة، مُعادة في قائمة.
seed
integerبذرة عشوائية لإعادة إنتاج النتائج.

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