Njuolgga sisdollui

PhotoMaker

Integrere

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

Dát ohcamuš: ≈0,022 $ 22 API-kreditta Vuodje dán siiddu alde

Oza API-čoavdaga
Tencent Gova heiveheapmi #editing#customization#realism#personalization

Persovnnalaš portráhtaráhkadeapmi referánsa-fotografiijaid arkiivvas, stiilapreset:iguin ja eaktodáhtolaš img2img-doarjumiin

Tencent · Govva

Dát lea du vuosttaš bohtos

Daga jearaldaga vuolábealde ja vuodje dan iežat API-čoavddain. Boađusat kopierejuvvojit min vurkemii, bisuhuvvojit álo dahje 7 beaivvi nuvttá.

Ráhkat jearaldaga

Kontrollat ráhkaduvvojit modealla skeama vuođul. Koda ja haddi ođasmahttojuvvojit go rievddadat daid.

•gáibiduvvo

Govvit govvagova maid háliidat ráhkadit, nu dárkilit go vejolaš buoremus bohtosiid oažžun dihte.

•gáibiduvvo

Addi govvagiid maid galgá geavahit arkivvas, URL:a bokte.

num_images standárda 1

Mearrit man galle govvagovtti ovtta jearaldat ráhkada, ja eanet ráhkadanáigi lea vejolaš stuorát batcha várás.

Viiddiduvvon negative_prompt · initial_image_url · base_pipeline · style · initial_image_strength · num_inference_steps · style_strength · guidance_scale · seed · enable_safety_checker
standárda

Negatiiva bivdda, mii spesifisere ii háliiduvvon govva-detaljjáid. Dat sáhttá guođđit eret ivnniid, ávdnasiid, duovdagiid dahje smávit iešvuođaid ja kvalitehtaid, nugo njunis, suttu dahje vuollegis resolušuvdna.

Luoitte fiilla, dahje

Vejolaš álggahangoaiku img2img-bargui.

base_pipeline standárda photomaker

Vuođđu-pipeline govvagiid ráhkadeapmái.

standárda Photographic
standárda 0.5

Latent-govvagi ruovttudávda dásse, 0:s lasihuvvon ruovttudávda haga gitta 1 rádjai, mii lea stuorimus.

standárda 50

Stivre man ollu ráhkadanceahkit Stable Diffusion dahká; lassi ceahkit sáhttet addit dárkilut loahppagovvva.

standárda 20
standárda 5

Bivdda-láhttema nanusvuohta govvaválljemis, CFG:n (Classifier Free Guidance).

Seed Stable Diffusion-govvagovaid ođđasit ráhkadeapmái. Govva sáhttá ráhkaduvvot dárkilit ođđa juohke geardde jus modealla veršuvdna, bivdda ja seed báhcet seammán.

POST /run/photomaker?wait=20 haddemearrádus → 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"

Geavat dán ohcamuša

Du key báhcá dán fierpmádatlogan: dat sáddejuvvo dušše Doitong API:ii ja vurkejuvvo (localStorage) dušše jos válljet Remember. Viečča API-keya

Dát lea PhotoMaker birra

Ráhkada ođđa govaid olbmos dan fotografiijaid zip-arkiivvas (`image_archive_url`) ja geatnegahtton teaksta `prompt`-ain. Vállje `photomaker` dahje `photomaker-style` vuođđoláidehusa, ja ovtta 11 stiillas nugo Cinematic, Comic book dahje Line art. Doarju 1 gitta 4 gova dáhtus, 20 gitta 100 inference-ceahki, guidance:a 1 gitta 10, ja eaktodáhtolaš álggahusgova `initial_image_strength`-ain gaskal 0 ja 1.

Parametterat

Sádde kanonala nama dahje iežas nama, ii goappašiid. Kanonala namat

NammaŠládja StandárdaDohkkehuvvon Govvádus
image_archive_urlgáibiduvvo
Šládjastring
Addi govvagiid maid galgá geavahit arkivvas, URL:a bokte.
promptgáibiduvvo
Šládjastring
Govvit govvagova maid háliidat ráhkadit, nu dárkilit go vejolaš buoremus bohtosiid oažžun dihte.
base_pipelineeaktodáhtolaš
Šládjaenum
Standárdaphotomaker
photomakerphotomaker-style
Vuođđu-pipeline govvagiid ráhkadeapmái.
initial_image_urleaktodáhtolaš
Šládjaurl · image
Vejolaš álggahangoaiku img2img-bargui.
initial_image_strengtheaktodáhtolaš
Šládjanumber
Standárda0.5
0 – 1
Latent-govvagi ruovttudávda dásse, 0:s lasihuvvon ruovttudávda haga gitta 1 rádjai, mii lea stuorimus.
styleeaktodáhtolaš
Šládjaenum
StandárdaPhotographic
(No style)CinematicDisney CharacterDigital ArtPhotographicFantasy artNeonpunkEnhanceComic bookLowpolyLine art
negative_prompteaktodáhtolaš
Šládjastring
Standárda
Negatiiva bivdda, mii spesifisere ii háliiduvvon govva-detaljjáid. Dat sáhttá guođđit eret ivnniid, ávdnasiid, duovdagiid dahje smávit iešvuođaid ja kvalitehtaid, nugo njunis, suttu dahje vuollegis resolušuvdna.
num_inference_stepseaktodáhtolaš
Šládjainteger
Standárda50
20 – 100
Stivre man ollu ráhkadanceahkit Stable Diffusion dahká; lassi ceahkit sáhttet addit dárkilut loahppagovvva.
style_strengtheaktodáhtolaš
Šládjainteger
Standárda20
15 – 50
num_imageseaktodáhtolaš num_outputs
Šládjainteger
Standárda1
1 – 4
Mearrit man galle govvagovtti ovtta jearaldat ráhkada, ja eanet ráhkadanáigi lea vejolaš stuorát batcha várás.
guidance_scaleeaktodáhtolaš
Šládjanumber
Standárda5
1 – 10
Bivdda-láhttema nanusvuohta govvaválljemis, CFG:n (Classifier Free Guidance).
seedeaktodáhtolaš
Šládjainteger | null
Seed Stable Diffusion-govvagovaid ođđasit ráhkadeapmái. Govva sáhttá ráhkaduvvot dárkilit ođđa juohke geardde jus modealla veršuvdna, bivdda ja seed báhcet seammán.
enable_safety_checkereaktodáhtolaš
Šládjaboolean
Standárdatrue
Gáhtten sáhttá loahpahuvvot bidjamiin false, jos geavaheaddji lea das ovttastuvvon.
gáibiduvvo Kanonala namma, maid sáhttá geavahit

Fiilaparametterat váldet almmolaš https:// URL:a, data: URI:a gitta 10 MB, dahje uploada file_url:a. Fiillat

Boađus

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"
  }
}
Du fiillat, du válljenJuohke outputs[].url lea kopia min vurkemis: bisuhuvvo álo (mákso GB-mánu mielde) dahje 7 beaivvi nuvttá, du konto­o heiveheami dahje ?storage= mielde.
Seammá hápmi juohke modeallastype, url, content_type, width, height ja duration, govvii, videoii ja jienai seammá ládje. output lea modealla iežas boađusobjekta.
Outputa giettit
images
array of object {url, content_type, file_name, file_size, width, height}
seed
integer

AI-agenttaide: dán siidu Markdowna lea dáppe https://doitong.com/se/developers/models/photomaker.md. Buot modeallat ja ráđit: https://doitong.com/developers/llms.txt