Peke ki ngā ihirangi

PuLID

Whakauru

id tauira 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"

Tēnei tono: ≈$ 0.009 9 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
ByteDance Whakatika Atahanga Ngā tāuru tohutoro #editing#customization#personalization

Ka whakaputa atahanga hou e pupuri ana i te kanohi o tētahi tangata mai i ngā whakaahua tohutoro, me te kore whakatikatika mō ia tangata

ByteDance · Atahanga

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana

Tohutohu ka whakamahia hei whakaputa i te kanohi.

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

Ngā rahinga o te atahanga kua whakaputaina.

num_images taunoa 1

Te maha o ngā atahanga hei whakaputa.

•e hiahiatia ana

Rārangi atahanga kanohi tohutoro; he pai rawa ngā atahanga e 4.

Arā atu negative_prompt · mode · guidance_scale · num_inference_steps · id_scale · seed · id_mix · enable_safety_checker
taunoa flaws in the eyes, fl...

Tohutohu tōraro mō te whakaputa kanohi.

mode taunoa fidelity

Aratau whakaputa.

taunoa 1.2

Tauine mō te ārahi.

taunoa 4

Tapeke o ngā hīkoi hei mahi.

taunoa 0.8

Tauine mō te ID.

Te kākano e whakamahia ana mō te whakaputa matapōkere tukurua.

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

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō PuLID

Ka tango i `reference_images` o tētahi kanohi (e 4 pea te taunakitanga) me tētahi `prompt`, kātahi ka hanga atahanga e pupuri ana i te tuakiri. Ko `mode` fidelity, extreme kāhua rānei, kei waenga `id_scale` i te 0 me te 5, ā, mā `id_mix` e whakaranu ngā tuakiri e rua. Ka whakaputaina kia 8 atahanga, me te 1 ki te 12 hipanga me `guidance_scale` mai i te 1 ki te 1.5.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
reference_imagese hiahiatia ana
Momoobject[]
Rārangi atahanga kanohi tohutoro; he pai rawa ngā atahanga e 4.
reference_images[].image_urle hiahiatia ana
Momourl · image
URL atahanga kanohi tohutoro.
prompte hiahiatia ana
Momostring
Tohutohu ka whakamahia hei whakaputa i te kanohi.
negative_promptkōwhiringa
Momostring
Taunoaflaws 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
Tohutohu tōraro mō te whakaputa kanohi.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 8
Te maha o ngā atahanga hei whakaputa.
guidance_scalekōwhiringa
Momonumber
Taunoa1.2
1 – 1.5
Tauine mō te ārahi.
num_inference_stepskōwhiringa
Momointeger
Taunoa4
1 – 12
Tapeke o ngā hīkoi hei mahi.
seedkōwhiringa
Momointeger | null
Te kākano e whakamahia ana mō te whakaputa matapōkere tukurua.
image_sizekōwhiringa
Momoobject
Taunoa{"height":1024,"width":768}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Ngā rahinga o te atahanga kua whakaputaina.
id_scalekōwhiringa
Momonumber
Taunoa0.8
≤ 5> 0
Tauine mō te ID.
modekōwhiringa
Momoenum
Taunoafidelity
fidelityextreme style
Aratau whakaputa.
id_mixkōwhiringa
Momoboolean
Taunoafalse
Mēnā ka whakaranu i ngā atahanga ID e rua. Whakakā mō te whakaranu; ki te kore, whakawetohia.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka taea te whakangāwari i te tātari mā te tautuhi false, mēnā he mana tō te kaiwhakatuwhera.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Putanga

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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
images
array of object {url, content_type, file_name, file_size, width, height}Ngā atahanga kua whakaputaina, ka whakahokia hei rārangi.
seed
integerKākano matapōkere mō te tukurua i ngā putanga.

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/pulid.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt