सामग्री पर जाएँ

PuLID

इंटीग्रेट करें

मॉडल id 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

ID का स्केल।

पुनरुत्पाद्य रैंडम निर्माण के लिए उपयोग किया गया सीड।

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"

यह अनुरोध चलाएँ

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

PuLID के बारे में

चेहरे की `reference_images` (लगभग 4 अनुशंसित) और `prompt` लेकर ऐसी इमेज बनाता है जिनमें पहचान बनी रहती है। `mode` fidelity या extreme स्टाइल हो सकता है, `id_scale` की सीमा 0 से 5 है और `id_mix` दो पहचानों को मिलाने की सुविधा देता है। 1 से 12 चरणों और 1 से 1.5 तक `guidance_scale` के साथ अधिकतम 8 इमेज बनाई जा सकती हैं।

पैरामीटर

कैनोनिकल नाम या नेटिव नाम में से कोई एक भेजें, दोनों नहीं। कैनोनिकल नाम

नामप्रकार डिफ़ॉल्टअनुमत विवरण
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
ID का स्केल।
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 हमारे स्टोरेज में एक कॉपी है: हमेशा के लिए (प्रति GB-माह भुगतान) या 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परिणाम दोहराने के लिए यादृच्छिक सीड।

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/pulid.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt