Skip to content

PuLID

Integrate

Model id pulid
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: ≈$0.009 9 API credits · ≈ ₽0.95 Run it on this page

Get API key
ByteDance Image Editing Reference inputs #editing#customization#personalization

Generates new images that keep a person's face from reference photos, without per-person tuning

ByteDance · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Prompt used to generate the face.

image_size default {"height":1024,"width...

Dimensions of the generated image.

num_images default 1

Count of images to produce.

•required

Reference face image list; 4 images are ideal.

Advanced negative_prompt · mode · guidance_scale · num_inference_steps · id_scale · seed · id_mix · enable_safety_checker
default flaws in the eyes, fl...

Negative prompt for face generation.

mode default fidelity

Generation mode.

default 1.2

Scale for guidance.

default 4

Total steps to perform.

default 0.8

Scale for ID.

Seed used for reproducible random generation.

POST /run/pulid?wait=20 quote → $0.009
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About PuLID

Takes `reference_images` of a face (about 4 are suggested) and a `prompt`, then creates images that keep the identity. `mode` is fidelity or extreme style, `id_scale` ranges 0 to 5, and `id_mix` allows mixing two identities. Up to 8 images can be generated, with 1 to 12 steps and `guidance_scale` from 1 to 1.5.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
reference_imagesrequired
Typeobject[]
Reference face image list; 4 images are ideal.
reference_images[].image_urlrequired
Typeurl · image
Reference face image URL.
promptrequired
Typestring
Prompt used to generate the face.
negative_promptoptional
Typestring
Defaultflaws 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
Negative prompt for face generation.
num_imagesoptional num_outputs
Typeinteger
Default1
1 – 8
Count of images to produce.
guidance_scaleoptional
Typenumber
Default1.2
1 – 1.5
Scale for guidance.
num_inference_stepsoptional
Typeinteger
Default4
1 – 12
Total steps to perform.
seedoptional
Typeinteger | null
Seed used for reproducible random generation.
image_sizeoptional
Typeobject
Default{"height":1024,"width":768}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Dimensions of the generated image.
id_scaleoptional
Typenumber
Default0.8
≤ 5> 0
Scale for ID.
modeoptional
Typeenum
Defaultfidelity
fidelityextreme style
Generation mode.
id_mixoptional
Typeboolean
Defaultfalse
Whether to mix two ID images. Enable for mixing; otherwise, disable.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required Canonical name, also accepted

Output

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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
images
array of object {url, content_type, file_name, file_size, width, height}Images generated, returned as a list.
seed
integerRandom seed for reproducing results.

For AI agents: this page as Markdown is at https://doitong.com/en-GB/developers/models/pulid.md. All models and guides: https://doitong.com/developers/llms.txt