İçeriğe geç

PuLID

Entegre et

Model kimliği 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"

Bu istek: ≈$0,009 9 API kredisi Bu sayfada çalıştır

API anahtarı al
ByteDance Görsel Düzenleme Referans girdileri #editing#customization#personalization

Kişi başına ayrı ayar gerektirmeden referans fotoğraflardaki kişinin yüzünü koruyan yeni görüntüler üretir

ByteDance · Görsel

İlk sonucunuz burada görünecek

Aşağıda bir istek oluşturun ve API anahtarınızla çalıştırın. Çıktılar depolamamıza kopyalanır ve sonsuza kadar veya ücretsiz olarak 7 gün boyunca saklanır.

İstek oluştur

Kontroller model şemasından oluşturulur. Değerleri değiştirdikçe kod ve fiyat güncellenir.

•gerekli

Yüzü üretmek için kullanılan istem.

image_size varsayılan {"height":1024,"width...

Üretilen görselin boyutları.

num_images varsayılan 1

Üretilecek görsel sayısı.

•gerekli

Referans yüz görseli listesi; 4 görsel idealdir.

Gelişmiş negative_prompt · mode · guidance_scale · num_inference_steps · id_scale · seed · id_mix · enable_safety_checker
varsayılan flaws in the eyes, fl...

Yüz üretimi için negatif istem.

mode varsayılan fidelity

Üretim modu.

varsayılan 1.2

Yönlendirme ölçeği.

varsayılan 4

Gerçekleştirilecek toplam adım sayısı.

varsayılan 0.8

Kimlik ölçeği.

Tekrarlanabilir rastgele üretim için kullanılan tohum.

POST /run/pulid?wait=20 fiyat → $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"

Bu isteği çalıştır

Anahtarınız bu tarayıcıda kalır: yalnızca Doitong API'ye gönderilir ve yalnızca Hatırla seçeneğini işaretlerseniz localStorage'a kaydedilir. API anahtarı al

PuLID hakkında

Bir yüzün `reference_images` görsellerini (yaklaşık 4 görsel önerilir) ve bir `prompt` alarak kimliği koruyan görseller oluşturur. `mode`, fidelity veya extreme stil değeridir; `id_scale` 0 ile 5 arasında değişir ve `id_mix` iki kimliğin karıştırılmasını sağlar. 1 ila 12 adım ve 1 ile 1.5 arasında `guidance_scale` ile en fazla 8 görsel üretilebilir.

Parametreler

Kanonik adı veya yerel adı gönderin; ikisini birden göndermeyin. Kanonik adlar

AdTür Varsayılanİzin verilen Açıklama
reference_imagesgerekli
Türobject[]
Referans yüz görseli listesi; 4 görsel idealdir.
reference_images[].image_urlgerekli
Türurl · image
Referans yüz görseli URL'si.
promptgerekli
Türstring
Yüzü üretmek için kullanılan istem.
negative_promptisteğe bağlı
Türstring
Varsayılanflaws 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
Yüz üretimi için negatif istem.
num_imagesisteğe bağlı num_outputs
Türinteger
Varsayılan1
1 – 8
Üretilecek görsel sayısı.
guidance_scaleisteğe bağlı
Türnumber
Varsayılan1.2
1 – 1,5
Yönlendirme ölçeği.
num_inference_stepsisteğe bağlı
Türinteger
Varsayılan4
1 – 12
Gerçekleştirilecek toplam adım sayısı.
seedisteğe bağlı
Türinteger | null
Tekrarlanabilir rastgele üretim için kullanılan tohum.
image_sizeisteğe bağlı
Türobject
Varsayılan{"height":1024,"width":768}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Üretilen görselin boyutları.
id_scaleisteğe bağlı
Türnumber
Varsayılan0.8
≤ 5> 0
Kimlik ölçeği.
modeisteğe bağlı
Türenum
Varsayılanfidelity
fidelityextreme style
Üretim modu.
id_mixisteğe bağlı
Türboolean
Varsayılanfalse
İki kimlik görselinin karıştırılıp karıştırılmayacağı. Karıştırmak için etkinleştirin; aksi halde devre dışı bırakın.
enable_safety_checkeristeğe bağlı
Türboolean
Varsayılantrue
Çağıran yetkiliyse false ayarlanarak tarama gevşetilebilir.
gerekli Kanonik ad, bu ad da kabul edilir

Çıktı

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"
  }
}
Dosyalarınız, seçiminizHer outputs[].url, depolamamızdaki bir kopyadır: sonsuza kadar (GB-ay başına ücretli) veya ücretsiz olarak 7 gün boyunca, hesap ayarınızla ya da ?storage= ile saklanır.
Her modelde aynı yapıGörüntüler, video ve ses için type, url, content_type, width, height ve duration aynıdır. output, modelin kendi sonuç nesnesidir.
Çıktı alanları
images
array of object {url, content_type, file_name, file_size, width, height}Liste olarak döndürülen üretilmiş görseller.
seed
integerSonuçları yeniden üretmek için rastgele tohum.

AI aracıları için: bu sayfanın Markdown biçimi şurada: https://doitong.com/tr/developers/models/pulid.md. Tüm modeller ve kılavuzlar: https://doitong.com/developers/llms.txt