Op den Inhalt sprangen

PuLID

Integréieren

Modell-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"

Dës Ufro: ≈0,009 $ 9 API-Kreditter · ≈ 0,95 ₽ Op dëser Säit ausféieren

API-Schlëssel kréien
ByteDance Bildbearbechtung Referenzinput #editing#customization#personalization

Generéiert nei Biller, déi d'Gesiicht vun enger Persoun aus Referenzfotoe behalen, ouni personenspezifesch Upassung

ByteDance · Bild

Äin éischt Resultat kënnt hei hin

Baut hei drënner eng Ufro a féiert se mat Ärem API-Schlëssel aus. Output gëtt an eis Späicherung kopéiert, fir ëmmer oder 7 Deeg gratis gespäichert.

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch

Prompt, dee benotzt gëtt, fir d'Gesiicht ze generéieren.

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

Dimensioune vum generéierte Bild.

num_images Standard 1

Zuel vun de Biller, déi erstallt ginn.

•obligatoresch

Lëscht vu Referenz-Gesiichtsbiller; 4 Biller sinn ideal.

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

Negative Prompt fir d'Gesiichtsgeneratioun.

mode Standard fidelity

Generatiounsmodus.

Standard 1.2

Skaléierung fir d'Guidance.

Standard 4

Total Zuel vun de Schrëtt, déi ausgefouert ginn.

Standard 0.8

Skaléierung fir d'ID.

Seed fir reproduzéierbar zoufälleg Generatioun.

POST /run/pulid?wait=20 Präis → 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"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer PuLID

Kritt `reference_images` vun engem Gesiicht (ongeféier 4 gi recommandéiert) an e `prompt`, a kreéiert duerno Biller, déi d'Identitéit behalen. `mode` ass fidelity oder extreme Stil, `id_scale` geet vun 0 bis 5, an `id_mix` erlaabt d'Mëschung vun zwou Identitéiten. Bis zu 8 Biller kënne mat 1 bis 12 Schrëtt an `guidance_scale` vun 1 bis 1.5 generéiert ginn.

Parameteren

Schéck entweder den kanoneschen Numm oder den natierlechen Numm, net béid. Kanonesch Nimm

NummTyp StandardErlaabt Beschreiwung
reference_imagesobligatoresch
Typobject[]
Lëscht vu Referenz-Gesiichtsbiller; 4 Biller sinn ideal.
reference_images[].image_urlobligatoresch
Typurl · image
URL vum Referenz-Gesiichtsbild.
promptobligatoresch
Typstring
Prompt, dee benotzt gëtt, fir d'Gesiicht ze generéieren.
negative_promptoptional
Typstring
Standardflaws 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 fir d'Gesiichtsgeneratioun.
num_imagesoptional num_outputs
Typinteger
Standard1
1 – 8
Zuel vun de Biller, déi erstallt ginn.
guidance_scaleoptional
Typnumber
Standard1.2
1 – 1,5
Skaléierung fir d'Guidance.
num_inference_stepsoptional
Typinteger
Standard4
1 – 12
Total Zuel vun de Schrëtt, déi ausgefouert ginn.
seedoptional
Typinteger | null
Seed fir reproduzéierbar zoufälleg Generatioun.
image_sizeoptional
Typobject
Standard{"height":1024,"width":768}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Dimensioune vum generéierte Bild.
id_scaleoptional
Typnumber
Standard0.8
≤ 5> 0
Skaléierung fir d'ID.
modeoptional
Typenum
Standardfidelity
fidelityextreme style
Generatiounsmodus.
id_mixoptional
Typboolean
Standardfalse
Gëtt uginn, ob zwee ID-Biller gemëscht solle ginn. Aktivéiert d'Optioun fir ze mëschen; soss deaktivéieren.
enable_safety_checkeroptional
Typboolean
Standardtrue
D'Kontroll kann duerch false gelackert ginn, wann den Uruffer autoriséiert ass.
obligatoresch Kanoneschen Numm, och akzeptéiert

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"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
images
array of object {url, content_type, file_name, file_size, width, height}Generéiert Biller, als Lëscht zeréckginn.
seed
integerZoufällege Seed fir d'Reproduktioun vun de Resultater.

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/pulid.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt