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

IP Adapter Face ID

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

မော်ဒယ် id ip-adapter-face-id
# 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/ip-adapter-face-id?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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"

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

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

SD 1.5 သို့မဟုတ် SDXL base များပေါ်တွင် ဓာတ်ပုံတစ်ပုံ သို့မဟုတ် ဓာတ်ပုံများပါသော zip မှ မျက်နှာနှင့် ကိုက်ညီသော ပုံများကို ဖန်တီးသည်

Tencent · ပုံ

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

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

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

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

•လိုအပ်သည်

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

မူလ 4

မျက်နှာ ID အတွက် နမူနာအရေအတွက်၊ မူလတန်ဖိုးမှာ 4 ဖြစ်သည်။ အရေအတွက်တိုးခြင်းက ပုံအရည်အသွေးကို မြှင့်တင်သော်လည်း ဖန်တီးချိန်ကို ရှည်စေသည်။

အဆင့်မြင့် negative_prompt · face_image_url · model_type · face_images_data_url · base_1_5_model_repo · base_sdxl_model_repo · guidance_scale · num_inference_steps · width · height · face_id_det_size · seed · enable_safety_checker
မူလ blurry, low resolutio...

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

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

မျက်နှာကိုက်ညီမှုအတွက် ရည်ညွှန်းပုံ၊ အရွယ်အစားကွာခြားပါက 640x640 သို့ ချိန်ညှိပြီး ဖြတ်တောက်သည်။

model_type မူလ 1_5-v1

မော်ဒယ်ရွေးချယ်မှု၊ 1_5 သည် မူလတန်ဖိုးနှင့် အသုံးပြုမှုအများစုအတွက် အကြံပြုထားသော ရွေးချယ်မှု နှစ်မျိုးလုံးဖြစ်သည်။

မျက်နှာပုံများပါသော zip archive URL၊ archive ထဲရှိ ပုံများမှ embeddings များကို ပျမ်းမျှတွက်၍ ပိုတိကျသော face ID တည်ဆောက်ရန် အသုံးပြုသည်။

မူလ SG161222/Realistic_Vi...

Base 1.5 မော်ဒယ်၏ URL၊ မူလတန်ဖိုးမှာ `SG161222/Realistic_Vision_V4.0_noVAE` ဖြစ်သည်။

မူလ SG161222/RealVisXL_V3.0

Base SDXL မော်ဒယ်၏ URL၊ မူလတန်ဖိုးမှာ `SG161222/RealVisXL_V3.0` ဖြစ်သည်။

မူလ 7.5

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

မူလ 50

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

မူလ 512

ရရှိမည့် ပုံ၏ အကျယ်။

မူလ 512

ရရှိမည့် ပုံ၏ အမြင့်။

မူလ 640

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

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

POST /run/ip-adapter-face-id?wait=20 ကုန်ကျစရိတ် → ၀.၀၆ $
# 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/ip-adapter-face-id?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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"

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

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

IP Adapter Face ID အကြောင်း

`face_image_url` အဖြစ် ပေးထားသော မျက်နှာ သို့မဟုတ် `face_images_data_url` မှတစ်ဆင့် မျက်နှာများစွာပါသည့် zip ဖိုင်ကို အသုံးပြု၍ ဖန်တီးမှုကို ပုဂ္ဂိုလ်ရေးသတ်မှတ်သည်။ နောက်ဆုံးအခြေအနေများကို ပျမ်းမျှတွက်သည်။ `model_type` သည် SD 1.5 နှင့် SDXL မျိုးကွဲများထဲမှ ရွေးချယ်ပြီး အခြေခံ checkpoint များကို repo ပါရာမီတာများဖြင့် ပြောင်းနိုင်သည်။ `width` နှင့် `height` သည် 512 မှ 1024 အထိ ဖြစ်ပြီး `num_inference_steps` သည် 200 အထိ ဖြစ်သည်။

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
model_typeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး1_5-v1
1_5-v11_5-v1-plus1_5-v2-plusSDXL-v1SDXL-v2-plus1_5-auraface-v1
မော်ဒယ်ရွေးချယ်မှု၊ 1_5 သည် မူလတန်ဖိုးနှင့် အသုံးပြုမှုအများစုအတွက် အကြံပြုထားသော ရွေးချယ်မှု နှစ်မျိုးလုံးဖြစ်သည်။
promptလိုအပ်သည်
အမျိုးအစားstring
ဖန်တီးလိုသောပုံကို အသေးစိတ်နိုင်သမျှ အသေးစိတ်ဖော်ပြပါ၊ ထိုသို့ပြုလုပ်ခြင်းဖြင့် အကောင်းဆုံးရလဒ် ရရှိမည်။
face_image_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · image
မျက်နှာကိုက်ညီမှုအတွက် ရည်ညွှန်းပုံ၊ အရွယ်အစားကွာခြားပါက 640x640 သို့ ချိန်ညှိပြီး ဖြတ်တောက်သည်။
face_images_data_urlရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
မျက်နှာပုံများပါသော zip archive URL၊ archive ထဲရှိ ပုံများမှ embeddings များကို ပျမ်းမျှတွက်၍ ပိုတိကျသော face ID တည်ဆောက်ရန် အသုံးပြုသည်။
negative_promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုးblurry, low resolution, bad, ugly, low quality, pixelated, interpolated, compression artifacts, noisey, grainy
မလိုလားသော ပုံအသေးစိတ်များကို သတ်မှတ်သည့် အနုတ်လက္ခဏာ ပရောမ့်။ အရောင်များ၊ အရာဝတ္ထုများ၊ ရှုခင်းများ သို့မဟုတ် နှုတ်ခမ်းမွှေး၊ ဝါးခြင်း၊ ရုပ်ထွက်အရည်အသွေး နိမ့်ခြင်းကဲ့သို့သော အသေးစိတ်အင်္ဂါရပ်များနှင့် အရည်အသွေးများကို ဖယ်ရှားနိုင်သည်။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
Stable Diffusion တွင် ပုံများကို ပြန်လည်ထုတ်လုပ်ရန် seed။ မော်ဒယ်ဗားရှင်း၊ ပရောမ့်နှင့် seed ကို မပြောင်းလဲထားပါက run တိုင်း ပုံကို အတိအကျ ပြန်လည်ထုတ်လုပ်နိုင်သည်။
guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး7.5
၀ – ၁၆
ပုံရွေးချယ်မှုအတွက် ပရောမ့်လိုက်နာမှုအားကို CFG (Classifier Free Guidance) အဖြစ် ဖော်ပြထားသည်။
num_inference_stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး50
၁ – ၂၀၀
ပုံဖန်တီးမှု inference အဆင့်အရေအတွက်။ အရေအတွက်များလေ ပုံအရည်အသွေး ပိုကောင်းသော်လည်း ဖန်တီးချိန် ပိုကြာသည်။
num_samplesရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး4
၁ – ၄
မျက်နှာ ID အတွက် နမူနာအရေအတွက်၊ မူလတန်ဖိုးမှာ 4 ဖြစ်သည်။ အရေအတွက်တိုးခြင်းက ပုံအရည်အသွေးကို မြှင့်တင်သော်လည်း ဖန်တီးချိန်ကို ရှည်စေသည်။
widthရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး512
၅၁၂ – ၁,၀၂၄
ရရှိမည့် ပုံ၏ အကျယ်။
heightရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး512
၅၁၂ – ၁,၀၂၄
ရရှိမည့် ပုံ၏ အမြင့်။
face_id_det_sizeရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး640
၆၄ – ၆၄၀
မျက်နှာရှာဖွေမော်ဒယ်အရွယ်အစားကို သတ်မှတ်ပါ။ မော်ဒယ်က သင့်ပုံတွင် မျက်နှာမတွေ့ပါက အရွယ်အစားကို လျှော့ပါ။ ပိုကြီးသောတန်ဖိုးက ရှာဖွေမှုကို ပိုတိကျစေသော်လည်း ပိုနှေးပြီး မျက်နှာကို လုံးဝမတွေ့နိုင်ခြေ ပိုများသည်။
base_1_5_model_repoရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုးSG161222/Realistic_Vision_V4.0_noVAE
Base 1.5 မော်ဒယ်၏ URL၊ မူလတန်ဖိုးမှာ `SG161222/Realistic_Vision_V4.0_noVAE` ဖြစ်သည်။
base_sdxl_model_repoရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုးSG161222/RealVisXL_V3.0
Base SDXL မော်ဒယ်၏ URL၊ မူလတန်ဖိုးမှာ `SG161222/RealVisXL_V3.0` ဖြစ်သည်။
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": "ip-adapter-face-id",
  "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": 60,
    "usd": "0.06",
    "charged": 60,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "image": {
      "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"
  }
}
သင့်ဖိုင်များ၊ သင့်ရွေးချယ်မှုoutputs[].url တိုင်းသည် ကျွန်ုပ်တို့၏ သိုလှောင်မှုရှိ မိတ္တူဖြစ်သည်- အမြဲတမ်း (GB-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
image
object {url, content_type, file_name, file_size, width, height}ဖန်တီးထားသောပုံ၏ ဖိုင်အချက်အလက်။
seed
integerပုံဖန်တီးမှုအတွက် seed၊ ထည့်သွင်းချက်တွင် seed မပါပါက ကျပန်းရွေးချယ်ထားသောတန်ဖိုးကို ပါဝင်စေပြီး၊ ပါရှိပါက ပေးထားသောတန်ဖိုးကို ထပ်မံအသုံးပြုသည်။

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