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

Stable Diffusion with LoRAs

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

မော်ဒယ် id lora
# 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/lora?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_name": "stabilityai/stable-diffusion-xl-base-1.0",
    "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 ကီး ရယူရန်
Open model စာသားမှ ပုံ ရည်ညွှန်း ထည့်သွင်းချက်များ #diffusion#lora#customization

Stable Diffusion အခြေခံမော်ဒယ်တစ်ခုခုနှင့် LoRAs၊ embeddings၊ ControlNets နှင့် IP adapters များကို အသုံးပြု၍ စာသားမှပုံဖန်တီးခြင်း

Open model · ပုံ

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

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

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

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

•လိုအပ်သည်

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

image_size မူလ square_hd

ကြိုတင်သတ်မှတ်ချက်များမှ ရွေးချယ်ထားသော သို့မဟုတ် စိတ်ကြိုက် width နှင့် height သတ်မှတ်ထားသော ထွက်ရလဒ်ပုံအရွယ်အစား။ စိတ်ကြိုက်အရွယ်အစားနှစ်ခုစလုံးသည် 8 ဖြင့်စားလို့ပြတ်ရမည်။

•လိုအပ်သည်

ပုံဖန်တီးရန် အခြေခံမော်ဒယ်၊ URL သို့မဟုတ် HuggingFace ID ဖြင့် သတ်မှတ်သည်။

num_images မူလ 1

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

အဆင့်မြင့် negative_prompt · ic_light_model_background_image_url · ic_light_image_url · prediction_type · image_format · unet_name · variant · image_encoder_path · image_encoder_subfolder · image_encoder_weight_name · ic_light_model_url · scheduler · num_inference_steps · guidance_scale · clip_skip · tile_width · tile_height · tile_stride_width · tile_stride_height · eta · seed · prompt_weighting · controlnet_guess_mode · rescale_betas_snr_zero · enable_safety_checker · debug_latents · debug_per_pass_latents · loras · embeddings · controlnets · ip_adapter · timesteps · sigmas
မူလ

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

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

ပုံ URL အဖြစ် ပေးထားသော IC Light ပုံဖန်တီးမှုအတွက် မော်ဒယ်နှင့် လိုက်ဖက်သည့် နောက်ခံ။

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

IC Light မော်ဒယ်ဖြင့် ဖန်တီးရန် ထည့်သွင်းသည့် ပုံ URL။

prediction_type မူလ epsilon

ပုံများဖန်တီးရန် prediction type ကို ရွေးချယ်ပါ။ အခြားရွေးချယ်မှု မပြုလုပ်ပါက `epsilon` ကို အသုံးပြုသည်။

image_format မူလ png

ရလဒ်ပုံအတွက် ဖိုင်ဖော်မတ်။

ပုံဖန်တီးရန် custom U-Net ရွေးချယ်မှု။ ၎င်း၏ HuggingFace ID သို့မဟုတ် URL တစ်ခုကို ပေးပါ။

HuggingFace မော်ဒယ် variant ရွေးချယ်မှု။ 'fp16' သည် ဥပမာတစ်ခု ဖြစ်သည်။

HTTPS URL သို့မဟုတ် Hugging Face ID ဖြင့် သတ်မှတ်သော ပုံ encoder ဖြစ်သည်။ လိုက်ဖက်မှုကို IP-Adapter weights က သတ်မှတ်ပြီး SD1.5 သည် image_encoder_subfolder='models/image_encoder' ကို အသုံးပြုကာ h94/IP-Adapter SDXL သည် h94/IP-Adapter နှင့် image_encoder_subfolder='sdxl_models/image_encoder' ကို အသုံးပြုသည်။ ip_adapter တွင် တန်ဖိုးတစ်ခု ပါရှိသည့်အခါတိုင်း encoder လိုအပ်သည်။

ပုံ encoder weights ပါရှိသည့် image_encoder_path အတွင်းရှိ subdirectory။

မူလ pytorch_model.bin

ပုံများဖန်တီးရန် အသုံးပြုမည့် ပုံ encoder ၏ weights ကို အမည်ဖြင့် ရွေးချယ်ပါ။

ပုံများဖန်တီးရာတွင် အသုံးပြုသည့် IC Light မော်ဒယ် URL။

ပုံမှ noise ဖယ်ရှားရန် အသုံးပြုသည့် scheduler သို့မဟုတ် sampler။

မူလ 30

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

မူလ 7.5

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

မူလ 0

ပုံဖန်တီးမှု၏ တစ်စိတ်တစ်ပိုင်းကို ကျော်ကာ ပိုမြန်စွာ render လုပ်ပြီး အနည်းငယ်ကွဲပြားသော ရလဒ်များကို ထုတ်ပေးသည်။

မူလ 4096

ပုံဖန်တီးစဉ် tile တစ်ခုစီ၏ အရွယ်အစားကို သတ်မှတ်ပါ။

မူလ 4096

ပုံဖန်တီးစဉ် tile တစ်ခုစီ၏ အရွယ်အစားကို သတ်မှတ်ပါ။

မူလ 2048

ပုံဖန်တီးစဉ် ဆက်တိုက် tile အနေအထားများကြားရှိ အကွာအဝေးကို သတ်မှတ်ပါ။

မူလ 2048

ပုံဖန်တီးစဉ် ဆက်တိုက် tile အနေအထားများကြားရှိ အကွာအဝေးကို သတ်မှတ်ပါ။

မူလ 0

ပုံများဖန်တီးရာတွင် အသုံးပြုသည့် Eta setting။

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

မူလ []

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

မူလ []

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

မူလ []

ဖန်တီးမှုအတွင်း သတ်မှတ်ထားသော timestep များတွင် ပုံသို့ အသုံးချရန် စီစဉ်ထားသော control net များ။ ပေးနိုင်သည့်အရေအတွက် ကန့်သတ်ချက်မရှိပါ။

မူလ []

ပုံများဖန်တီးရန် အသုံးပြုသည့် IP adapters များ။ မည်သည့် entry မဆို ပေးပါက image_encoder_path လိုအပ်သည်။

မူလ {"array":[],"method":...

sigmas နှင့် အပြန်အလှန် သီးခြားဖြစ်သော denoising timestep schedule override။ Override မရှိပါက—မူလတန်ဖိုးအတိုင်း—scheduler သည် num_inference_steps မှ timesteps များကို တွက်ချက်သည်။ စိတ်ကြိုက် schedule ပေးပါက num_inference_steps သည် သက်ရောက်မှုမရှိတော့ပါ။ Override အသုံးပြုရန် set_timesteps ရှိ timesteps argument ကို scheduler က ထောက်ပံ့ရမည်။

မူလ {"array":[],"method":...

timesteps နှင့် အပြန်အလှန် သီးခြားဖြစ်သော denoising sigma schedule override။ Override မရှိပါက—မူလတန်ဖိုးအတိုင်း—scheduler သည် num_inference_steps မှ sigmas များကို တွက်ချက်သည်။ စိတ်ကြိုက် schedule ပေးပါက num_inference_steps သည် သက်ရောက်မှုမရှိတော့ပါ။ Override အသုံးပြုရန် set_sigmas ရှိ sigmas argument ကို scheduler က ထောက်ပံ့ရမည်။

POST /run/lora?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/lora?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_name": "stabilityai/stable-diffusion-xl-base-1.0",
    "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 ကီး ရယူရန်

Stable Diffusion with LoRAs အကြောင်း

`model_name` ရှိ URL သို့မဟုတ် HuggingFace ID ဖြင့် သတ်မှတ်ထားသော အခြေခံမော်ဒယ်ကို အသုံးပြု၍ စာသားပရောမ့်မှ ပုံများကို ဖန်တီးသည်။ `loras` အများအပြားကို ပေါင်းစပ်နိုင်ပြီး Embedding၊ ControlNets၊ IP adapters နှင့် IC Light ထည့်သွင်းချက်များကို ပံ့ပိုးသည်။ ဆမ်ပလင်းရွေးချယ်စရာများတွင် scheduler များစွာနှင့် 1 မှ 150 အထိ အဆင့်များ ပါဝင်သည်။ png သို့မဟုတ် jpeg ဖြင့် ပုံ 1 မှ 8 ပုံအထိ ဖန်တီးသည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
model_nameလိုအပ်သည်
အမျိုးအစားstring
ပုံဖန်တီးရန် အခြေခံမော်ဒယ်၊ URL သို့မဟုတ် HuggingFace ID ဖြင့် သတ်မှတ်သည်။
unet_nameရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
ပုံဖန်တီးရန် custom U-Net ရွေးချယ်မှု။ ၎င်း၏ HuggingFace ID သို့မဟုတ် URL တစ်ခုကို ပေးပါ။
variantရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
HuggingFace မော်ဒယ် variant ရွေးချယ်မှု။ 'fp16' သည် ဥပမာတစ်ခု ဖြစ်သည်။
promptလိုအပ်သည်
အမျိုးအစားstring
ဖန်တီးလိုသောပုံကို အသေးစိတ်နိုင်သမျှ အသေးစိတ်ဖော်ပြပါ၊ ထိုသို့ပြုလုပ်ခြင်းဖြင့် အကောင်းဆုံးရလဒ် ရရှိမည်။
negative_promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုး
မလိုလားသော ပုံအသေးစိတ်များကို သတ်မှတ်သည့် အနုတ်လက္ခဏာ ပရောမ့်။ အရောင်များ၊ အရာဝတ္ထုများ၊ ရှုခင်းများ သို့မဟုတ် နှုတ်ခမ်းမွှေး၊ ဝါးခြင်း၊ ရုပ်ထွက်အရည်အသွေး နိမ့်ခြင်းကဲ့သို့သော အသေးစိတ်အင်္ဂါရပ်များနှင့် အရည်အသွေးများကို ဖယ်ရှားနိုင်သည်။
prompt_weightingရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
ပရောမ့် weighting toggle။ true ဖြစ်ပါက embedding averaging ဖြင့် 77 တိုကင်ကန့်သတ်ချက်ကို ဖယ်ရှားပြီး weighting syntax ကို ဖွင့်ပေးသည်။
lorasရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
မူလတန်ဖိုး[]
ပေါင်းစပ်အကျိုးသက်ရောက်မှုဖြင့် ဖန်တီးထားသော ပုံကို ထုတ်ပေးသည့် LoRA များ။ ပေးနိုင်သည့်အရေအတွက် ကန့်သတ်မထားပါ။
loras[].pathလိုအပ်သည်
အမျိုးအစားstring
URL သို့မဟုတ် path အဖြစ် သတ်မှတ်ထားသော LoRA weights တည်နေရာ။
loras[].scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၄
အခြေခံမော်ဒယ်သို့ မပေါင်းစပ်မီ LoRA weight တွင် အသုံးပြုသော multiplier။
embeddingsရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
မူလတန်ဖိုး[]
ပရောမ့်တိုကင်များကို embedding weight များသို့ map ပြုလုပ်ရန် ပုံဖန်တီးမှုအတွင်း အသုံးပြုသည့် embeddings။ လက်ရှိတွင် embedding တစ်ခုသာ ပံ့ပိုးထားသည်။
embeddings[].pathလိုအပ်သည်
အမျိုးအစားstring
URL သို့မဟုတ် ဖိုင်လမ်းကြောင်းဖြင့် သတ်မှတ်ထားသော Embedding weights။
embeddings[].tokensရွေးချယ်နိုင်သည်
အမျိုးအစားstring[]
embedding weight များသို့ map ပြုလုပ်ထားသော ပရောမ့်တိုကင်များ။ မပေးထားပါက embedding-file vector တစ်ခုလျှင် တိုကင်တစ်ခု ဖန်တီးပြီး <s0>, <s1>, ... ဟု အမည်ပေးသည်။ သင့်ပရောမ့်များတွင် map ပြုလုပ်ထားသော တိုကင်များကို အသုံးပြုပါ။
controlnetsရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
မူလတန်ဖိုး[]
ဖန်တီးမှုအတွင်း သတ်မှတ်ထားသော timestep များတွင် ပုံသို့ အသုံးချရန် စီစဉ်ထားသော control net များ။ ပေးနိုင်သည့်အရေအတွက် ကန့်သတ်ချက်မရှိပါ။
controlnets[].pathလိုအပ်သည်
အမျိုးအစားstring
ControlNet အလေးချိန် တည်နေရာကို URL သို့မဟုတ် path အဖြစ် သတ်မှတ်သည်။
controlnets[].config_urlရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
ControlNet ၏ config.json ဖိုင်သို့ ညွှန်ပြနိုင်သော ရွေးချယ်စရာ URL။
controlnets[].variantရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
Hugging Face repository key နှင့် အသုံးပြုရန် ရွေးချယ်နိုင်သော မူကွဲ။
controlnets[].image_urlလိုအပ်သည်
အမျိုးအစားurl · image
ControlNet ထည့်သွင်းချက် အဖြစ် ပေးသော ပုံ URL။
controlnets[].mask_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · image
ControlNet mask ဖြစ်ပြီး ပေးထားပါက control ပုံ နှင့် အရွယ်အစားတူရမည်။ width နှင့် height တစ်ခုစီသည် 32 ဖြင့် စားလို့ပြတ်ရမည်။
controlnets[].conditioning_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၂
ControlNet အလေးချိန်များကို အခြေခံမော်ဒယ်ထဲသို့ ပေါင်းစည်းမီ အသုံးပြုသည့် စကေးချိန်ညှိမှု။
controlnets[].start_percentageရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0
၀ – ၁
ControlNet က ပုံဖန်တီးမှုအပေါ် စတင်သက်ရောက်သည့် စုစုပေါင်း timestep များ၏ ရာခိုင်နှုန်း။
controlnets[].end_percentageရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၁
ControlNet က ပုံဖန်တီးမှုအပေါ် သက်ရောက်မှုရပ်တန့်သည့် စုစုပေါင်း timestep များ၏ ရာခိုင်နှုန်း။
controlnets[].ip_adapter_indexရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
InstantID ControlNet အတွက် index ဖြင့် IP adapter ရွေးချယ်မှု။ အခြား ControlNet များတွင် ဤ setting မလိုအပ်ပါ။
controlnet_guess_modeရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
true ဖြစ်ပါက ControlNet အသုံးချမှုကို conditional prediction များတွင်သာ ကန့်သတ်သည်။
ip_adapterရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
မူလတန်ဖိုး[]
ပုံများဖန်တီးရန် အသုံးပြုသည့် IP adapters များ။ မည်သည့် entry မဆို ပေးပါက image_encoder_path လိုအပ်သည်။
ip_adapter[].ip_adapter_image_urlလိုအပ်သည်
အမျိုးအစားurl · image
IP adapter ထည့်သွင်းချက်အဖြစ် ပေးထားသော ပုံ URL။
ip_adapter[].ip_adapter_mask_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · image
ပေးထားသည့်အခါ အရွယ်အစားကန့်သတ်ချက်ရှိသော IP adapter mask ဖြစ်ပြီး ၎င်း၏အတိုင်းအတာများသည် adapter ပုံ၏အတိုင်းအတာများနှင့် တူညီရမည်။
ip_adapter[].pathလိုအပ်သည်
အမျိုးအစားstring
URL သို့မဟုတ် path အဖြစ် သတ်မှတ်ထားသော IP adapter weights တည်နေရာ။
ip_adapter[].model_subfolderရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
မော်ဒယ် directory အတွင်းရှိ subfolder အဖြစ် သတ်မှတ်ထားသော IP adapter weight တည်နေရာ။
ip_adapter[].weight_nameရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
Weights ၏ ဖိုင်အမည်။
ip_adapter[].insight_face_model_pathရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
URL သို့မဟုတ် path အဖြစ် သတ်မှတ်ထားသော InsightFace မော်ဒယ် weights တည်နေရာ။
ip_adapter[].scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
≥ ၀
Base မော်ဒယ် ထဲသို့ ပေါင်းစပ်မည့်မတိုင်မီ အသုံးပြုသော IP adapter weights ၏ scaling factor။
ip_adapter[].scale_jsonရွေးချယ်နိုင်သည်
အမျိုးအစားobject | null
Base မော်ဒယ် ထဲသို့ ပေါင်းစပ်မည့်မတိုင်မီ အသုံးပြုသော IP adapter weights ၏ scaling factor။
ip_adapter[].unconditional_noising_factorရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0
၀ – ၁
IP adapter အတွက် unconditional noising ကို ထိန်းချုပ်သည့် factor။
ip_adapter[].image_projection_shortcutရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
မူလတန်ဖိုးအဖြစ် True သတ်မှတ်ထားသော ပုံ projection shortcut setting။ FaceID plus V1 မော်ဒယ်များအတွက် False နှင့် FaceID plus V2 မော်ဒယ်များအတွက် True ကို အသုံးပြုပါ။
image_encoder_pathရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
HTTPS URL သို့မဟုတ် Hugging Face ID ဖြင့် သတ်မှတ်သော ပုံ encoder ဖြစ်သည်။ လိုက်ဖက်မှုကို IP-Adapter weights က သတ်မှတ်ပြီး SD1.5 သည် image_encoder_subfolder='models/image_encoder' ကို အသုံးပြုကာ h94/IP-Adapter SDXL သည် h94/IP-Adapter နှင့် image_encoder_subfolder='sdxl_models/image_encoder' ကို အသုံးပြုသည်။ ip_adapter တွင် တန်ဖိုးတစ်ခု ပါရှိသည့်အခါတိုင်း encoder လိုအပ်သည်။
image_encoder_subfolderရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
ပုံ encoder weights ပါရှိသည့် image_encoder_path အတွင်းရှိ subdirectory။
image_encoder_weight_nameရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
မူလတန်ဖိုးpytorch_model.bin
ပုံများဖန်တီးရန် အသုံးပြုမည့် ပုံ encoder ၏ weights ကို အမည်ဖြင့် ရွေးချယ်ပါ။
ic_light_model_urlရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
ပုံများဖန်တီးရာတွင် အသုံးပြုသည့် IC Light မော်ဒယ် URL။
ic_light_model_background_image_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · image
ပုံ URL အဖြစ် ပေးထားသော IC Light ပုံဖန်တီးမှုအတွက် မော်ဒယ်နှင့် လိုက်ဖက်သည့် နောက်ခံ။
ic_light_image_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · image
IC Light မော်ဒယ်ဖြင့် ဖန်တီးရန် ထည့်သွင်းသည့် ပုံ URL။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
Stable Diffusion တွင် ပုံများကို ပြန်လည်ထုတ်လုပ်ရန် seed။ မော်ဒယ်ဗားရှင်း၊ ပရောမ့်နှင့် seed ကို မပြောင်းလဲထားပါက run တိုင်း ပုံကို အတိအကျ ပြန်လည်ထုတ်လုပ်နိုင်သည်။
image_sizeရွေးချယ်နိုင်သည်
အမျိုးအစားobject
မူလတန်ဖိုးsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
ကြိုတင်သတ်မှတ်ချက်များမှ ရွေးချယ်ထားသော သို့မဟုတ် စိတ်ကြိုက် width နှင့် height သတ်မှတ်ထားသော ထွက်ရလဒ်ပုံအရွယ်အစား။ စိတ်ကြိုက်အရွယ်အစားနှစ်ခုစလုံးသည် 8 ဖြင့်စားလို့ပြတ်ရမည်။
num_inference_stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး30
၁ – ၁၅၀
Stable Diffusion လုပ်ဆောင်မည့် ဖန်တီးမှုအဆင့် အရေအတွက်ကို ထိန်းချုပ်သည်။ အဆင့်များလေလေ နောက်ဆုံးပုံ ပိုမိုအသေးစိတ် ဖြစ်နိုင်သည်။
guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး7.5
၀ – ၂၀
ပုံရွေးချယ်မှုအတွက် ပရောမ့်လိုက်နာမှုအားကို CFG (Classifier Free Guidance) အဖြစ် ဖော်ပြထားသည်။
clip_skipရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး0
၀ – ၂
ပုံဖန်တီးမှု၏ တစ်စိတ်တစ်ပိုင်းကို ကျော်ကာ ပိုမြန်စွာ render လုပ်ပြီး အနည်းငယ်ကွဲပြားသော ရလဒ်များကို ထုတ်ပေးသည်။
schedulerရွေးချယ်နိုင်သည်
အမျိုးအစားenum
DPM++ 2MDPM++ 2M KarrasDPM++ 2M SDEDPM++ 2M SDE KarrasEulerEuler AEuler (trailing timesteps)LCMLCM (trailing timesteps)DDIMTCD
ပုံမှ noise ဖယ်ရှားရန် အသုံးပြုသည့် scheduler သို့မဟုတ် sampler။
timestepsရွေးချယ်နိုင်သည်
အမျိုးအစားobject
မူလတန်ဖိုး{"array":[],"method":"default"}
sigmas နှင့် အပြန်အလှန် သီးခြားဖြစ်သော denoising timestep schedule override။ Override မရှိပါက—မူလတန်ဖိုးအတိုင်း—scheduler သည် num_inference_steps မှ timesteps များကို တွက်ချက်သည်။ စိတ်ကြိုက် schedule ပေးပါက num_inference_steps သည် သက်ရောက်မှုမရှိတော့ပါ။ Override အသုံးပြုရန် set_timesteps ရှိ timesteps argument ကို scheduler က ထောက်ပံ့ရမည်။
timesteps.methodရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးdefault
defaultarray
timesteps များကို သတ်မှတ်ပုံ ရွေးချယ်ပါ။ 'default' သည် မူလ setting ဖြစ်ပြီး scheduler က `num_inference_steps` ကို အသုံးပြုစေသည်။ timestep schedule ကို ကိုယ်တိုင်ပေးရန် 'array' ကို ရွေးပြီး schedule ကို `array` field တွင် ထည့်ပါ။
timesteps.arrayရွေးချယ်နိုင်သည်
အမျိုးအစားinteger[]
မူလတန်ဖိုး[]
ရွေးချယ်ထားသော method သည် 'custom' ဖြစ်သည့်အခါ အသုံးပြုသည့် Timestep schedule။
sigmasရွေးချယ်နိုင်သည်
အမျိုးအစားobject
မူလတန်ဖိုး{"array":[],"method":"default"}
timesteps နှင့် အပြန်အလှန် သီးခြားဖြစ်သော denoising sigma schedule override။ Override မရှိပါက—မူလတန်ဖိုးအတိုင်း—scheduler သည် num_inference_steps မှ sigmas များကို တွက်ချက်သည်။ စိတ်ကြိုက် schedule ပေးပါက num_inference_steps သည် သက်ရောက်မှုမရှိတော့ပါ။ Override အသုံးပြုရန် set_sigmas ရှိ sigmas argument ကို scheduler က ထောက်ပံ့ရမည်။
sigmas.methodရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးdefault
defaultarray
sigmas များကို သတ်မှတ်ပုံ ရွေးချယ်ပါ။ 'default' သည် မူလ setting ဖြစ်ပြီး scheduler ၏ ကိုယ်ပိုင် sigma တန်ဖိုးများကို အသုံးပြုသည်။ sigma schedule ကို ကိုယ်တိုင်ပေးရန် 'custom' ကို ရွေးပြီး schedule ကို `array` field တွင် ထည့်ပါ။
sigmas.arrayရွေးချယ်နိုင်သည်
အမျိုးအစားnumber[]
မူလတန်ဖိုး[]
ရွေးချယ်ထားသော method သည် 'custom' ဖြစ်သည့်အခါ အသုံးပြုသည့် Sigma schedule။
prediction_typeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးepsilon
v_predictionepsilon
ပုံများဖန်တီးရန် prediction type ကို ရွေးချယ်ပါ။ အခြားရွေးချယ်မှု မပြုလုပ်ပါက `epsilon` ကို အသုံးပြုသည်။
rescale_betas_snr_zeroရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
Sampler က rescale_betas_snr_zero ကို ဖွင့်မဖွင့် ထိန်းချုပ်သည်။
image_formatရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးpng
jpegpng
ရလဒ်ပုံအတွက် ဖိုင်ဖော်မတ်။
num_imagesရွေးချယ်နိုင်သည် num_outputs
အမျိုးအစားinteger
မူလတန်ဖိုး1
၁ – ၈
တောင်းဆိုချက်တစ်ခုတည်းက ထုတ်ပေးမည့် ပုံအရေအတွက်ကို သတ်မှတ်ပါ။ batch ပိုကြီးလေလေ ဖန်တီးချိန် ပိုမိုပေးနိုင်သည်။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
လုံခြုံရေးစစ်ဆေးမှု ဖွင့်ခြင်း၊ true သည် စစ်ဆေးမှုကို ဖွင့်ပေးသည်။
tile_widthရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး4096
၁၂၈ – ၄,၀၉၆
ပုံဖန်တီးစဉ် tile တစ်ခုစီ၏ အရွယ်အစားကို သတ်မှတ်ပါ။
tile_heightရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး4096
၁၂၈ – ၄,၀၉၆
ပုံဖန်တီးစဉ် tile တစ်ခုစီ၏ အရွယ်အစားကို သတ်မှတ်ပါ။
tile_stride_widthရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး2048
၆၄ – ၂,၀၄၈
ပုံဖန်တီးစဉ် ဆက်တိုက် tile အနေအထားများကြားရှိ အကွာအဝေးကို သတ်မှတ်ပါ။
tile_stride_heightရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး2048
၆၄ – ၂,၀၄၈
ပုံဖန်တီးစဉ် ဆက်တိုက် tile အနေအထားများကြားရှိ အကွာအဝေးကို သတ်မှတ်ပါ။
etaရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0
၀ – ၁
ပုံများဖန်တီးရာတွင် အသုံးပြုသည့် Eta setting။
debug_latentsရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
true ဖြစ်ပါက debugging အတွက် latents များကို သိမ်းဆည်းသည်။
debug_per_pass_latentsရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
၎င်းကို true သတ်မှတ်ခြင်းဖြင့် pass တစ်ခုစီအလိုက် debugging ကို ဖွင့်ပြီး pass တိုင်းမှ latents များကို သိမ်းဆည်းသည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "lora",
  "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": 57,
    "usd": "0.057",
    "charged": 57,
    "refunded": 0
  },
  "input": {
    "model_name": "stabilityai/stable-diffusion-xl-base-1.0",
    "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,
    "has_nsfw_concepts": [
      false
    ],
    "debug_latents": {
      "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
    },
    "debug_per_pass_latents": {
      "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
    }
  },
  "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 များ
images
array of object {url, content_type, file_name, file_size, width, height}ဖန်တီးထားသော ပုံများ၏ ဖိုင်အချက်အလက်။
seed
integerပုံဖန်တီးမှုအတွက် seed၊ ထည့်သွင်းချက်တွင် seed မပါပါက ကျပန်းရွေးချယ်ထားသောတန်ဖိုးကို ပါဝင်စေပြီး၊ ပါရှိပါက ပေးထားသောတန်ဖိုးကို ထပ်မံအသုံးပြုသည်။
has_nsfw_concepts
array of booleanဖန်တီးထားသောပုံများတွင် NSFW အယူအဆများ ပါဝင်ခြင်း ရှိ၊ မရှိ ဖော်ပြသည်။
debug_latents
object {url, content_type, file_name, file_size} | nullDebugging အတွက် သိမ်းဆည်းထားသော Latent data။
debug_per_pass_latents
object {url, content_type, file_name, file_size} | nullDebugging အတွက် သိမ်းဆည်းထားသော pass တစ်ခုစီအလိုက် latent data။

နောက်ထပ် မော်ဒယ်များ: စာသားမှ ပုံ

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