ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

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 ਲਈ ਪੈਮਾਨਾ।

ਦੁਹਰਾਉਣਯੋਗ ਰੈਂਡਮ ਸਿਰਜਣਾ ਲਈ ਵਰਤਿਆ ਗਿਆ Seed।

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` ਦੋ ਪਛਾਣਾਂ ਨੂੰ ਮਿਲਾਉਣ ਦੀ ਆਗਿਆ ਦਿੰਦਾ ਹੈ। 8 ਤੱਕ ਚਿੱਤਰ ਬਣਾਏ ਜਾ ਸਕਦੇ ਹਨ, 1 ਤੋਂ 12 ਪੜਾਅ ਅਤੇ 1 ਤੋਂ 1.5 ਤੱਕ `guidance_scale` ਨਾਲ।

ਪੈਰਾਮੀਟਰ

ਕੈਨੋਨਿਕਲ ਨਾਮ ਜਾਂ ਨੇਟਿਵ ਨਾਮ ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਭੇਜੋ, ਦੋਵੇਂ ਨਹੀਂ। ਕੈਨੋਨਿਕਲ ਨਾਮ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
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
ਦੁਹਰਾਉਣਯੋਗ ਰੈਂਡਮ ਸਿਰਜਣਾ ਲਈ ਵਰਤਿਆ ਗਿਆ Seed।
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/pa/developers/models/pulid.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt