Peke ki ngā ihirangi

PhotoMaker

Whakauru

id tauira photomaker
# 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/photomaker?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_archive_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.022 22 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Tencent Whakatika Atahanga #editing#customization#realism#personalization

Te whakaputa whakaahua kanohi whaiaro mai i tētahi pūranga whakaahua tohutoro, me ngā tatūkē kāhua me te img2img kōwhiringa

Tencent · 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

Whakaahuatia te atahanga e hiahia ana koe kia whakaputaina, kia nui rawa ngā taipitopito mō ngā putanga pai.

•e hiahiatia ana

Homai ngā atahanga hei whakamahi i tētahi pūranga, kua tautuhia mā tōna URL.

num_images taunoa 1

Tautuhia te maha o ngā atahanga ka whakaputaina e tētahi tono kotahi, kia nui ake ai te wā whakaputa mō tētahi puranga nui ake.

Arā atu negative_prompt · initial_image_url · base_pipeline · style · initial_image_strength · num_inference_steps · style_strength · guidance_scale · seed · enable_safety_checker
taunoa

Tohutohu tōraro e tohu ana i ngā taipitopito atahanga kāore e hiahiatia ana. Ka taea te aukati i ngā tae, ngā mea, te whenua, ngā āhuatanga iti me ngā kounga, pērā i te ngutu tāne, te pōuri, te taumira iti rānei.

Whakataka he kōnae,

He atahanga tīmata whiringa mō te tukatuka img2img.

base_pipeline taunoa photomaker

Te paipa pūtake e whakamahia ana mō te whakaputa atahanga.

taunoa Photographic
taunoa 0.5

Te taumata haruru atahanga latent, mai i te kore haruru tāpiri i O ki te mōrahi i te 1.

taunoa 50

Whakahaerehia te maha o ngā hīkoi whakaputa ka mahia e Stable Diffusion; mā ngā hīkoi tāpiri pea ka tino taipitopito ake te atahanga whakamutunga.

taunoa 20
taunoa 5

Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).

Kākano hei tukurua i ngā atahanga i Stable Diffusion. Ka taea te whakaputa anō i tētahi atahanga kia tino ōrite i ia oma mā te pupuri i te putanga tauira, te tohutohu me te kākano kia kore e whakarerekē.

POST /run/photomaker?wait=20 utu → $ 0.022
# 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/photomaker?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_archive_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ō PhotoMaker

Ka hanga atahanga hou o tētahi tangata mai i tētahi pūranga āhua zip (`image_archive_url`) me te kuputuhi `prompt` e hiahiatia ana. Kōwhiria te paipa taketake `photomaker` rānei `photomaker-style`, ā, kōwhiria mai i ngā kāhua 11 pēnei i Cinematic, Comic book, Line art rānei. Ka tautoko i te 1 ki te 4 atahanga mō ia tono, 20 ki te 100 hipanga whakatauira, arataki mai i te 1 ki te 10, me tētahi atahanga tīmatanga kōwhiringa me `initial_image_strength` i waenga i te 0 me te 1.

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
image_archive_urle hiahiatia ana
Momostring
Homai ngā atahanga hei whakamahi i tētahi pūranga, kua tautuhia mā tōna URL.
prompte hiahiatia ana
Momostring
Whakaahuatia te atahanga e hiahia ana koe kia whakaputaina, kia nui rawa ngā taipitopito mō ngā putanga pai.
base_pipelinekōwhiringa
Momoenum
Taunoaphotomaker
photomakerphotomaker-style
Te paipa pūtake e whakamahia ana mō te whakaputa atahanga.
initial_image_urlkōwhiringa
Momourl · image
He atahanga tīmata whiringa mō te tukatuka img2img.
initial_image_strengthkōwhiringa
Momonumber
Taunoa0.5
0 – 1
Te taumata haruru atahanga latent, mai i te kore haruru tāpiri i O ki te mōrahi i te 1.
stylekōwhiringa
Momoenum
TaunoaPhotographic
(No style)CinematicDisney CharacterDigital ArtPhotographicFantasy artNeonpunkEnhanceComic bookLowpolyLine art
negative_promptkōwhiringa
Momostring
Taunoa
Tohutohu tōraro e tohu ana i ngā taipitopito atahanga kāore e hiahiatia ana. Ka taea te aukati i ngā tae, ngā mea, te whenua, ngā āhuatanga iti me ngā kounga, pērā i te ngutu tāne, te pōuri, te taumira iti rānei.
num_inference_stepskōwhiringa
Momointeger
Taunoa50
20 – 100
Whakahaerehia te maha o ngā hīkoi whakaputa ka mahia e Stable Diffusion; mā ngā hīkoi tāpiri pea ka tino taipitopito ake te atahanga whakamutunga.
style_strengthkōwhiringa
Momointeger
Taunoa20
15 – 50
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 4
Tautuhia te maha o ngā atahanga ka whakaputaina e tētahi tono kotahi, kia nui ake ai te wā whakaputa mō tētahi puranga nui ake.
guidance_scalekōwhiringa
Momonumber
Taunoa5
1 – 10
Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).
seedkōwhiringa
Momointeger | null
Kākano hei tukurua i ngā atahanga i Stable Diffusion. Ka taea te whakaputa anō i tētahi atahanga kia tino ōrite i ia oma mā te pupuri i te putanga tauira, te tohutohu me te kākano kia kore e whakarerekē.
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

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "photomaker",
  "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": 22,
    "usd": "0.022",
    "charged": 22,
    "refunded": 0
  },
  "input": {
    "image_archive_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}
seed
integer

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