কনটেন্টে যান

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"

এই অনুরোধ: ≈০.০০৯$ ৯ API ক্রেডিট এই পেজে চালান

API কী পান
ByteDance ছবি সম্পাদনা রেফারেন্স ইনপুট #editing#customization#personalization

প্রতি-ব্যক্তি টিউনিং ছাড়াই রেফারেন্স ছবি থেকে কোনো ব্যক্তির মুখের বৈশিষ্ট্য বজায় রেখে নতুন ছবি তৈরি করে

ByteDance · ছবি

আপনার প্রথম ফলাফল এখানে আসবে

নিচে একটি রিকোয়েস্ট তৈরি করে আপনার API কী দিয়ে চালান। আউটপুট আমাদের স্টোরেজে কপি করা হয়, চিরকাল বা বিনামূল্যে ৭ দিন পর্যন্ত রাখা হয়।

একটি অনুরোধ তৈরি করুন

মডেল স্কিমা থেকে কন্ট্রোল তৈরি করা হয়। এগুলো পরিবর্তন করলে কোড ও মূল্য আপডেট হয়।

•আবশ্যক

মুখ তৈরি করতে ব্যবহৃত প্রম্পট।

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-এর স্কেল।

পুনরুৎপাদনযোগ্য র‍্যান্ডম জেনারেশনের জন্য ব্যবহৃত Seed।

POST /run/pulid?wait=20 মূল্য → ০.০০৯$
# 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-তে পাঠানো হয় এবং Remember টিক দিলে কেবল localStorage-এ সংরক্ষিত হয়। একটি 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
১ – ৮
তৈরি করার ছবির সংখ্যা।
guidance_scaleঐচ্ছিক
ধরনnumber
ডিফল্ট1.2
১ – ১.৫
গাইডেন্সের স্কেল।
num_inference_stepsঐচ্ছিক
ধরনinteger
ডিফল্ট4
১ – ১২
সম্পাদন করার মোট ধাপ।
seedঐচ্ছিক
ধরনinteger | null
পুনরুৎপাদনযোগ্য র‍্যান্ডম জেনারেশনের জন্য ব্যবহৃত Seed।
image_sizeঐচ্ছিক
ধরনobject
ডিফল্ট{"height":1024,"width":768}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
জেনারেট করা ছবির মাত্রা।
id_scaleঐচ্ছিক
ধরনnumber
ডিফল্ট0.8
≤ ৫> ০
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-মাস অনুযায়ী অর্থপ্রদত্ত) অথবা অ্যাকাউন্ট সেটিংস বা ?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/bn/developers/models/pulid.md. সব মডেল ও গাইড: https://doitong.com/developers/llms.txt