Мазмұнға өту

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

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"

Осы сұрауды іске қосу

Кілтіңіз осы браузерде қалады: ол тек Doitong API-ге жіберіледі және Remember параметрін белгілеcеңіз ғана 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
Қайталанымды кездейсоқ генерация үшін қолданылатын 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-ай үшін ақылы) немесе аккаунт параметрі не ?storage= арқылы 7 күн тегін сақталады.
Әр модельдегі пішім бірдейtype, url, content_type, width, height және duration — кескіндерге, бейнеге және аудиоға ортақ. output — модельдің өз нәтижелер нысаны.
Шығыс өрістері
images
array of object {url, content_type, file_name, file_size, width, height}Тізім түрінде қайтарылатын генерацияланған кескіндер.
seed
integerНәтижелерді қайта шығару үшін пайдаланылатын кездейсоқ seed.

AI агенттеріне: бұл беттің Markdown нұсқасы мына жерде: https://doitong.com/kk/developers/models/pulid.md. Барлық модельдер мен нұсқаулықтар: https://doitong.com/developers/llms.txt