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

Scail 2

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

မော်ဒယ် id scail-2
# 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/scail-2?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 ကီး ရယူရန်
Open model ဗီဒီယိုမှ ဗီဒီယို 704p အထိ #stylized#transform

မောင်းနှင်ဗီဒီယိုမှ လှုပ်ရှားမှုဖြင့် ရည်ညွှန်းဇာတ်ကောင်ပုံကို လှုပ်ရှားစေခြင်း သို့မဟုတ် မူရင်းမြင်ကွင်းထဲသို့ အစားထိုးထည့်သွင်းခြင်း

Open model · ဗီဒီယို

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

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

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

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

•လိုအပ်သည်

လိုချင်သော ထွက်ရလဒ်ဗီဒီယိုကို သတ်မှတ်သည့် ပရောမ့်။

•လိုအပ်သည် image_url
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

လှုပ်ရှားစေမည့် သို့မဟုတ် အစားထိုးမည့် ဇာတ်ကောင်ကို ပေးသည့် ဇာတ်ကောင်ရည်ညွှန်းပုံ URL။ မောင်းနှင်ဗီဒီယိုက လှုပ်ရှားမှု သို့မဟုတ် အစားထိုးမှုကို ဆုံးဖြတ်သည်။

•လိုအပ်သည် video_url
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

လူတစ်ဦး၊ လူအများ သို့မဟုတ် တိရစ္ဆာန်တစ်ကောင် ပါဝင်သော လှုပ်ရှားမှုမောင်းနှင်ဗီဒီယိုကို URL ဖြင့် ပေးပါ။

resolution မူလ 512p

ရည်ညွှန်းပုံ၏ aspect ratio အပေါ် မူတည်၍ orientation ကို အလိုအလျောက် သတ်မှတ်သည့် ထွက်ရလဒ် ရုပ်ထွက်အရည်အသွေး။ landscape တွင် 512p သည် 896x512 သို့၊ 704p သည် 1280x704 သို့ ပြောင်းသည်။ portrait တွင် အသီးသီး 512x896 နှင့် 704x1280 ကို အသုံးပြုသည်။

အဆင့်မြင့် mode · driving_type · subject_type · num_inference_steps · guidance_scale · shift · seed · enable_safety_checker
mode မူလ animation

ရည်ညွှန်းဇာတ်ကောင်ကို အသုံးပြုပုံ ရွေးချယ်ပါ။ `replacement` သည် မူရင်း scene ကို ထိန်းသိမ်းကာ မောင်းနှင်ဗီဒီယိုရှိ subject အစား ဇာတ်ကောင်ကို အစားထိုးသည်။ `animation` သည် မောင်းနှင်လှုပ်ရှားမှုကို ဇာတ်ကောင်ထံ အသုံးချသည်။

driving_type မူလ end_to_end

Animation လှုပ်ရှားမှုသည် SAM3 ဖြင့် mask ပြုလုပ်ထားသော မောင်းနှင်ဗီဒီယိုမှ တိုက်ရိုက်ရရှိသည်။ အမြင့်ဆုံးတည်ငြိမ်မှုအတွက် မူလတန်ဖိုးဖြစ်သော `end_to_end` ကို အကြံပြုသည်။ အခြားရွေးချယ်စရာအနေဖြင့် `pose` သည် NLF/DWPose ကို အသုံးပြု၍ ထိုဗီဒီယိုမှ တိကျသော skeleton ကို ဖန်တီးပေးပြီး ခက်ခဲသော ထည့်သွင်းချက်များတွင် ပိုမိုထိန်းချုပ်နိုင်သည်။

subject_type မူလ human

မောင်းနှင်ဗီဒီယိုရှိ subject ရွေးချယ်မှု။ `animal` သည် `human` မဟုတ်သော subject များအတွက် SAM3 ၏ detection ပရောမ့် ကို သတ်မှတ်သည်။

မူလ 40

Diffusion sampling အဆင့်အရေအတွက်။ တိုးမြှင့်ပါက အရည်အသွေးကောင်းမွန်သော်လည်း အချိန်ပိုကြာသည်။

မူလ 5

ပရောမ့်အတိုင်း လိုက်နာမှုနှင့် ဖန်တီးနိုင်စွမ်းတို့ကို ချိန်ညှိပေးသည့် classifier-free guidance အား။

မူလ 3

flow matching အတွက် noise-schedule shift။ 512p အသုံးပြုသည့်အခါ 3.0 ကို အကြံပြုသည်။

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

POST /run/scail-2?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/scail-2?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 ကီး ရယူရန်

Scail 2 အကြောင်း

ရည်ညွှန်းဇာတ်ကောင်ပါသည့် `image_url` နှင့် လူတစ်ဦး၊ လူအများ သို့မဟုတ် တိရစ္ဆာန်ကို ပြသသည့် driving `video_url` ကို လက်ခံသည်။ `animation` မုဒ်တွင် ဇာတ်ကောင်သည် driving လှုပ်ရှားမှုကို လုပ်ဆောင်ပြီး `replacement` မုဒ်တွင် မြင်ကွင်းကို ထိန်းသိမ်းကာ subject ကို အစားထိုးသည်။ ရုပ်ထွက်အရည်အသွေးမှာ 512p သို့မဟုတ် 704p ဖြစ်ပြီး ပုံမှ ဦးတည်ချက်ကို ရွေးချယ်သည်။ `driving_type` တွင် တိုက်ရိုက် end-to-end driving သို့မဟုတ် သတ်မှတ်ထားသော ကိုယ်ဟန် အရိုးစုကို အသုံးပြုနိုင်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
promptလိုအပ်သည်
အမျိုးအစားstring
လိုချင်သော ထွက်ရလဒ်ဗီဒီယိုကို သတ်မှတ်သည့် ပရောမ့်။
image_urlလိုအပ်သည် image
အမျိုးအစားurl · image
လှုပ်ရှားစေမည့် သို့မဟုတ် အစားထိုးမည့် ဇာတ်ကောင်ကို ပေးသည့် ဇာတ်ကောင်ရည်ညွှန်းပုံ URL။ မောင်းနှင်ဗီဒီယိုက လှုပ်ရှားမှု သို့မဟုတ် အစားထိုးမှုကို ဆုံးဖြတ်သည်။
video_urlလိုအပ်သည် video
အမျိုးအစားurl · video
လူတစ်ဦး၊ လူအများ သို့မဟုတ် တိရစ္ဆာန်တစ်ကောင် ပါဝင်သော လှုပ်ရှားမှုမောင်းနှင်ဗီဒီယိုကို URL ဖြင့် ပေးပါ။
modeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးanimation
animationreplacement
ရည်ညွှန်းဇာတ်ကောင်ကို အသုံးပြုပုံ ရွေးချယ်ပါ။ `replacement` သည် မူရင်း scene ကို ထိန်းသိမ်းကာ မောင်းနှင်ဗီဒီယိုရှိ subject အစား ဇာတ်ကောင်ကို အစားထိုးသည်။ `animation` သည် မောင်းနှင်လှုပ်ရှားမှုကို ဇာတ်ကောင်ထံ အသုံးချသည်။
driving_typeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးend_to_end
end_to_endpose
Animation လှုပ်ရှားမှုသည် SAM3 ဖြင့် mask ပြုလုပ်ထားသော မောင်းနှင်ဗီဒီယိုမှ တိုက်ရိုက်ရရှိသည်။ အမြင့်ဆုံးတည်ငြိမ်မှုအတွက် မူလတန်ဖိုးဖြစ်သော `end_to_end` ကို အကြံပြုသည်။ အခြားရွေးချယ်စရာအနေဖြင့် `pose` သည် NLF/DWPose ကို အသုံးပြု၍ ထိုဗီဒီယိုမှ တိကျသော skeleton ကို ဖန်တီးပေးပြီး ခက်ခဲသော ထည့်သွင်းချက်များတွင် ပိုမိုထိန်းချုပ်နိုင်သည်။
subject_typeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးhuman
humananimal
မောင်းနှင်ဗီဒီယိုရှိ subject ရွေးချယ်မှု။ `animal` သည် `human` မဟုတ်သော subject များအတွက် SAM3 ၏ detection ပရောမ့် ကို သတ်မှတ်သည်။
resolutionရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး512p
512p704p
ရည်ညွှန်းပုံ၏ aspect ratio အပေါ် မူတည်၍ orientation ကို အလိုအလျောက် သတ်မှတ်သည့် ထွက်ရလဒ် ရုပ်ထွက်အရည်အသွေး။ landscape တွင် 512p သည် 896x512 သို့၊ 704p သည် 1280x704 သို့ ပြောင်းသည်။ portrait တွင် အသီးသီး 512x896 နှင့် 704x1280 ကို အသုံးပြုသည်။
num_inference_stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး40
၂ – ၅၀
Diffusion sampling အဆင့်အရေအတွက်။ တိုးမြှင့်ပါက အရည်အသွေးကောင်းမွန်သော်လည်း အချိန်ပိုကြာသည်။
guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး5
၁ – ၁၀
ပရောမ့်အတိုင်း လိုက်နာမှုနှင့် ဖန်တီးနိုင်စွမ်းတို့ကို ချိန်ညှိပေးသည့် classifier-free guidance အား။
shiftရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး3
၁ – ၁၀
flow matching အတွက် noise-schedule shift။ 512p အသုံးပြုသည့်အခါ 3.0 ကို အကြံပြုသည်။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
ထည့်သွင်းချက်ကို ဗလာထားသောကြောင့် ရှင်းလင်းစွာပေးထားသည်ဖြစ်စေ ကျပန်းရွေးထားသည်ဖြစ်စေ တုံ့ပြန်မှုတွင် ပါဝင်သော ဖန်တီးမှု seed။
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": "scail-2",
  "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": 2000,
    "usd": "2.00",
    "charged": 2000,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "seed": 42,
    "preprocessing_video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "preprocessing_mask_video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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 များ
video
object {url, content_type, file_name, file_size}ဖန်တီးမှုမှ ထွက်ရှိသည့် ဗီဒီယိုဖိုင်။
seed
integerဗီဒီယိုဖန်တီးမှုအတွက် အသုံးပြုသော seed။
preprocessing_video
object {url, content_type, file_name, file_size} | null`output_preprocessing=true` ဖြင့်သာ ရရှိသော diffusion မော်ဒယ်ထံ ပေးထားသည့် Stage-A pose-conditioning ထည့်သွင်းချက်ပါ debug ဗီဒီယို။ ၎င်း၏အကြောင်းအရာသည် `driving_type` အပေါ် မူတည်သည်။ `end_to_end` သည် SAM3 ဖြင့် mask ပြုလုပ်ထားသော မောင်းနှင်ဗီဒီယိုကို အသုံးပြုပြီး `driving_type=pose` သည် NLF/DWPose ဖြင့် ဖန်တီးထားသော skeleton ကို အသုံးပြုသည်။
preprocessing_mask_video
object {url, content_type, file_name, file_size} | nulldebug အတွက် Stage-A မောင်းနှင် mask ဗီဒီယို။ `output_preprocessing=true` ဖြင့်သာ ရရှိသည်။

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