အကြောင်းအရာသို့ ကျော်ရန်

PhotoMaker

ပေါင်းစည်းရန်

မော်ဒယ် 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"

ဤတောင်းဆိုချက်: ≈၀.၀၂၂ $ ၂၂ API ခရက်ဒစ် ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
Tencent ပုံတည်းဖြတ်ခြင်း #editing#customization#realism#personalization

ရည်ညွှန်းချက်ဓာတ်ပုံများ၏ မှတ်တမ်းမှ ပုဂ္ဂိုလ်သီးသန့် ပုံတူဖန်တီးမှု၊ စတိုင်ကြိုတင်သတ်မှတ်ချက်များနှင့် ရွေးချယ်နိုင်သော img2img

Tencent · ပုံ

သင့်ပထမဆုံးရလဒ် ဤနေရာတွင် ပေါ်လာမည်

အောက်တွင် တောင်းဆိုချက်တစ်ခု တည်ဆောက်ပြီး သင့် API ကီးဖြင့် လုပ်ဆောင်ပါ။ ထွက်ရလဒ်များကို ကျွန်ုပ်တို့၏ သိုလှောင်မှုသို့ ကူးယူပြီး အမြဲတမ်း သို့မဟုတ် ၇ ရက် အခမဲ့ သိမ်းထားသည်။

တောင်းဆိုမှုတစ်ခု တည်ဆောက်ရန်

ထိန်းချုပ်မှုများကို မော်ဒယ် schema မှ အလိုအလျောက်ဖန်တီးသည်။ ၎င်းတို့ကို ပြောင်းလဲသည်နှင့် code နှင့် စျေးနှုန်းတို့လည်း ပြောင်းလဲမည်။

•လိုအပ်သည်

ဖန်တီးလိုသောပုံကို အသေးစိတ်နိုင်သမျှ အသေးစိတ်ဖော်ပြပါ၊ ထိုသို့ပြုလုပ်ခြင်းဖြင့် အကောင်းဆုံးရလဒ် ရရှိမည်။

•လိုအပ်သည်

archive တွင် အသုံးပြုမည့် ပုံများကို ၎င်း၏ URL ဖြင့် သတ်မှတ်ပေးပါ။

num_images မူလ 1

တောင်းဆိုချက်တစ်ခုတည်းက ထုတ်ပေးမည့် ပုံအရေအတွက်ကို သတ်မှတ်ပါ။ batch ပိုကြီးလေလေ ဖန်တီးချိန် ပိုမိုပေးနိုင်သည်။

အဆင့်မြင့် negative_prompt · initial_image_url · base_pipeline · style · initial_image_strength · num_inference_steps · style_strength · guidance_scale · seed · enable_safety_checker
မူလ

မလိုလားသော ပုံအသေးစိတ်များကို သတ်မှတ်သည့် အနုတ်လက္ခဏာ ပရောမ့်။ အရောင်များ၊ အရာဝတ္ထုများ၊ ရှုခင်းများ သို့မဟုတ် နှုတ်ခမ်းမွှေး၊ ဝါးခြင်း၊ ရုပ်ထွက်အရည်အသွေး နိမ့်ခြင်းကဲ့သို့သော အသေးစိတ်အင်္ဂါရပ်များနှင့် အရည်အသွေးများကို ဖယ်ရှားနိုင်သည်။

ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

img2img processing အတွက် ရွေးချယ်နိုင်သော အစပျိုးပုံ။

base_pipeline မူလ photomaker

ပုံဖန်တီးမှုအတွက် အသုံးပြုသည့် အခြေခံ pipeline။

မူလ Photographic
မူလ 0.5

Latent-image noise အဆင့်သည် O တွင် noise ထည့်မထားခြင်းမှ 1 တွင် အများဆုံးအဆင့်အထိ ရှိသည်။

မူလ 50

Stable Diffusion လုပ်ဆောင်မည့် ဖန်တီးမှုအဆင့် အရေအတွက်ကို ထိန်းချုပ်သည်။ အဆင့်များလေလေ နောက်ဆုံးပုံ ပိုမိုအသေးစိတ် ဖြစ်နိုင်သည်။

မူလ 20
မူလ 5

ပုံရွေးချယ်မှုအတွက် ပရောမ့်လိုက်နာမှုအားကို CFG (Classifier Free Guidance) အဖြစ် ဖော်ပြထားသည်။

Stable Diffusion တွင် ပုံများကို ပြန်လည်ထုတ်လုပ်ရန် seed။ မော်ဒယ်ဗားရှင်း၊ ပရောမ့်နှင့် seed ကို မပြောင်းလဲထားပါက run တိုင်း ပုံကို အတိအကျ ပြန်လည်ထုတ်လုပ်နိုင်သည်။

POST /run/photomaker?wait=20 ကုန်ကျစရိတ် → ၀.၀၂၂ $
# 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"

ဤတောင်းဆိုချက်ကို လုပ်ဆောင်ရန်

သင့် key သည် ဤဘရောက်ဇာထဲတွင်သာ ရှိမည်ဖြစ်ပြီး Doitong API သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

PhotoMaker အကြောင်း

လူတစ်ဦး၏ ဓာတ်ပုံများကို zip ပုံစံ မှတ်တမ်းတိုက် (`image_archive_url`) နှင့် မဖြစ်မနေလိုအပ်သော စာသား `prompt` တို့မှ ပုံအသစ်များအဖြစ် ဖန်တီးပေးသည်။ `photomaker` သို့မဟုတ် `photomaker-style` အခြေခံ ပိုက်လိုင်းကို ရွေးချယ်ပြီး Cinematic၊ Comic book သို့မဟုတ် Line art ကဲ့သို့ စတိုင် 11 မျိုးမှ ရွေးချယ်နိုင်သည်။ တောင်းဆိုချက်တစ်ခုလျှင် ပုံ 1 မှ 4 ပုံ၊ Inference အဆင့် 20 မှ 100 အထိ၊ လမ်းညွှန်မှု 1 မှ 10 အထိနှင့် 0 မှ 1 အတွင်း `initial_image_strength` ပါသော ရွေးချယ်နိုင်သည့် အစပုံကို ပံ့ပိုးသည်။

ပါရာမီတာများ

စံအမည် သို့မဟုတ် မူရင်းအမည် တစ်ခုခုကိုသာ ပို့ပါ၊ နှစ်ခုလုံး မပို့ပါနှင့်။ စံအမည်များ

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
image_archive_urlလိုအပ်သည်
အမျိုးအစားstring
archive တွင် အသုံးပြုမည့် ပုံများကို ၎င်း၏ URL ဖြင့် သတ်မှတ်ပေးပါ။
promptလိုအပ်သည်
အမျိုးအစားstring
ဖန်တီးလိုသောပုံကို အသေးစိတ်နိုင်သမျှ အသေးစိတ်ဖော်ပြပါ၊ ထိုသို့ပြုလုပ်ခြင်းဖြင့် အကောင်းဆုံးရလဒ် ရရှိမည်။
base_pipelineရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးphotomaker
photomakerphotomaker-style
ပုံဖန်တီးမှုအတွက် အသုံးပြုသည့် အခြေခံ pipeline။
initial_image_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · image
img2img processing အတွက် ရွေးချယ်နိုင်သော အစပျိုးပုံ။
initial_image_strengthရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.5
၀ – ၁
Latent-image noise အဆင့်သည် O တွင် noise ထည့်မထားခြင်းမှ 1 တွင် အများဆုံးအဆင့်အထိ ရှိသည်။
styleရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးPhotographic
(No style)CinematicDisney CharacterDigital ArtPhotographicFantasy artNeonpunkEnhanceComic bookLowpolyLine art
negative_promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုး
မလိုလားသော ပုံအသေးစိတ်များကို သတ်မှတ်သည့် အနုတ်လက္ခဏာ ပရောမ့်။ အရောင်များ၊ အရာဝတ္ထုများ၊ ရှုခင်းများ သို့မဟုတ် နှုတ်ခမ်းမွှေး၊ ဝါးခြင်း၊ ရုပ်ထွက်အရည်အသွေး နိမ့်ခြင်းကဲ့သို့သော အသေးစိတ်အင်္ဂါရပ်များနှင့် အရည်အသွေးများကို ဖယ်ရှားနိုင်သည်။
num_inference_stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး50
၂၀ – ၁၀၀
Stable Diffusion လုပ်ဆောင်မည့် ဖန်တီးမှုအဆင့် အရေအတွက်ကို ထိန်းချုပ်သည်။ အဆင့်များလေလေ နောက်ဆုံးပုံ ပိုမိုအသေးစိတ် ဖြစ်နိုင်သည်။
style_strengthရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး20
၁၅ – ၅၀
num_imagesရွေးချယ်နိုင်သည် num_outputs
အမျိုးအစားinteger
မူလတန်ဖိုး1
၁ – ၄
တောင်းဆိုချက်တစ်ခုတည်းက ထုတ်ပေးမည့် ပုံအရေအတွက်ကို သတ်မှတ်ပါ။ batch ပိုကြီးလေလေ ဖန်တီးချိန် ပိုမိုပေးနိုင်သည်။
guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး5
၁ – ၁၀
ပုံရွေးချယ်မှုအတွက် ပရောမ့်လိုက်နာမှုအားကို CFG (Classifier Free Guidance) အဖြစ် ဖော်ပြထားသည်။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
Stable Diffusion တွင် ပုံများကို ပြန်လည်ထုတ်လုပ်ရန် seed။ မော်ဒယ်ဗားရှင်း၊ ပရောမ့်နှင့် seed ကို မပြောင်းလဲထားပါက run တိုင်း ပုံကို အတိအကျ ပြန်လည်ထုတ်လုပ်နိုင်သည်။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
caller က ခွင့်ပြုချက်ရှိပါက false သတ်မှတ်ခြင်းဖြင့် စစ်ဆေးမှုကို လျှော့ချနိုင်သည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

ဖိုင်ပါရာမီတာများသည် အများပြည်သူသုံး https:// URL၊ 10 MB အထိ data: URI သို့မဟုတ် အပ်လုဒ်လုပ်ထားသောဖိုင်၏ file_url ကို လက်ခံသည်။ ဖိုင်များ

ထွက်ရလဒ်

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"
  }
}
သင့်ဖိုင်များ၊ သင့်ရွေးချယ်မှုoutputs[].url တိုင်းသည် ကျွန်ုပ်တို့၏ သိုလှောင်မှုရှိ မိတ္တူဖြစ်သည်- အမြဲတမ်း (GB-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
images
array of object {url, content_type, file_name, file_size, width, height}
seed
integer

AI အေးဂျင့်များအတွက်- ဤစာမျက်နှာ၏ Markdown ကို ဤနေရာတွင် ရရှိနိုင်သည် https://doitong.com/my/developers/models/photomaker.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt