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

Void Video Inpainting

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

မော်ဒယ် id void-video-inpainting
# 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/void-video-inpainting?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "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 ကီး ရယူရန်

မတ်စ်ဗီဒီယို သို့မဟုတ် စာသားမတ်စ်ပရောမ့်ကို အသုံးပြု၍ အခင်းအကျင်းပေါ်ရှိ သက်ရောက်မှုများအပါအဝင် ဗီဒီယိုထဲမှ အရာဝတ္ထုတစ်ခုကို ဖယ်ရှားသည်

Open model · ဗီဒီယို

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

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

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

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

•လိုအပ်သည်

အရာဝတ္ထုကို ဖယ်ရှားပြီးနောက် နောက်ခံပုံစံ မည်သို့ဖြစ်ရမည်ကို သတ်မှတ်သည့် ဖော်ပြချက်။

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

ဖယ်ရှားရန် ရည်ရွယ်ထားသော အရာဝတ္ထုပါဝင်သည့် မူရင်းဗီဒီယို URL။

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

ဖယ်ရှားမှု mask ဗီဒီယို URL။ မပေးထားပါက app သည် `mask_prompt` ကိုအသုံးပြု၍ SAM-3 ဗီဒီယို Endpoint မှတစ်ဆင့် ယာယီဗီဒီယို mask တစ်ခုကို ဖန်တီးပြီး quadmask အဖြစ် အလိုအလျောက် ပြောင်းလဲသည်။ အကောင်းဆုံးရလဒ်အတွက် grayscale တန်ဖိုး 4 ခုပါသော VOID-style quadmask ကို ပေးပါ: ထိန်းသိမ်းမည့် နောက်ခံအတွက် 255၊ သက်ရောက်သည့် ဧရိယာအတွက် 127၊ ထပ်နေသည့် ဧရိယာအတွက် 63 နှင့် ဖယ်ရှားမည့် အရာဝတ္ထုအတွက် 0။ Binary mask များကိုလည်း လက်ခံပြီး ထိန်းသိမ်းရန် 255၊ ဖယ်ရှားရန် 0 ကို အသုံးပြုသည်။

အဆင့်မြင့် mask_prompt · negative_prompt · num_inference_steps · guidance_scale · strength · num_frames · seed · enable_safety_checker

သီးခြား `quad_mask_video_url` မပေးထားသည့်အခါ ယာယီ mask ဗီဒီယိုဖန်တီးရန် SAM-3 အတွက် mask ရည်ရွယ်ချက်ညွှန်ကြားချက်များ။ မူရင်းဗီဒီယိုမှ ဖယ်ရှားမည့် အရာဝတ္ထု သို့မဟုတ် လူကဲ့သို့ mask ပြုလုပ်ရမည့်အရာကို သတ်မှတ်ပါ။

မူလ The video is not of a...

မလိုလားအပ်သော ရလဒ်များကို ဖော်ပြပြီး ဖန်တီးမှုကို ထိုရလဒ်များမှ ရှောင်လွှဲစေသည့် အနုတ်လက္ခဏာပရောမ့်။

မူလ 30

Denoising အဆင့်အရေအတွက်။ တိုးမြှင့်ခြင်းဖြင့် အရည်အသွေးကောင်းလာသော်လည်း latency ပိုတိုးသည်။

မူလ 1

classifier-free guidance ၏ strength။

မူလ 1

Denoising အားကောင်းမှု။ 1.0 သည် Denoising အပြည့်အဝဖြစ်ကြောင်း ဖော်ပြသည်။

မူလ 85

တောင်းဆိုထားသော အချိန်အလိုက် inference window ကို backend က CogVideoX-safe အရွယ်အစား 69, 77, 85, ..., 197 ထဲမှ တစ်ခုသို့ ချိန်ညှိသည်။ အချိန်အလိုက် compression နှင့် patching ကို လိုက်လျောညီထွေဖြစ်စေရန် အနီးစပ်ဆုံးအရွယ်အစားကို ရွေးချယ်သည်။

တူညီသောရလဒ်များ ပြန်လည်ရရှိရန် ကျပန်းဖြစ်မှုကို ထိန်းချုပ်သည့် seed။

POST /run/void-video-inpainting?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/void-video-inpainting?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "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 ကီး ရယူရန်

Void Video Inpainting အကြောင်း

`video_url` နှင့် လိုချင်သော နောက်ခံကို ဖော်ပြသည့် `prompt` ကို လက်ခံသည်။ `quad_mask_video_url` ပေးနိုင်သလို မတ်စ်ဖန်တီးရန် `mask_prompt` ကိုလည်း ပေးနိုင်သည်။ ထိန်းချုပ်မှုများတွင် `num_frames` (1-197)၊ `num_inference_steps` (1-50)၊ `guidance_scale`၊ `strength` နှင့် အချိန်ပိုကြာသော်လည်း အချိန်ဆိုင်ရာညီညွတ်မှုအတွက် ရွေးချယ်နိုင်သော `enable_pass2_refinement` ပါဝင်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
video_urlလိုအပ်သည် video
အမျိုးအစားurl · video
ဖယ်ရှားရန် ရည်ရွယ်ထားသော အရာဝတ္ထုပါဝင်သည့် မူရင်းဗီဒီယို URL။
quad_mask_video_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · video
မူလတန်ဖိုး
ဖယ်ရှားမှု mask ဗီဒီယို URL။ မပေးထားပါက app သည် `mask_prompt` ကိုအသုံးပြု၍ SAM-3 ဗီဒီယို Endpoint မှတစ်ဆင့် ယာယီဗီဒီယို mask တစ်ခုကို ဖန်တီးပြီး quadmask အဖြစ် အလိုအလျောက် ပြောင်းလဲသည်။ အကောင်းဆုံးရလဒ်အတွက် grayscale တန်ဖိုး 4 ခုပါသော VOID-style quadmask ကို ပေးပါ: ထိန်းသိမ်းမည့် နောက်ခံအတွက် 255၊ သက်ရောက်သည့် ဧရိယာအတွက် 127၊ ထပ်နေသည့် ဧရိယာအတွက် 63 နှင့် ဖယ်ရှားမည့် အရာဝတ္ထုအတွက် 0။ Binary mask များကိုလည်း လက်ခံပြီး ထိန်းသိမ်းရန် 255၊ ဖယ်ရှားရန် 0 ကို အသုံးပြုသည်။
mask_promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
သီးခြား `quad_mask_video_url` မပေးထားသည့်အခါ ယာယီ mask ဗီဒီယိုဖန်တီးရန် SAM-3 အတွက် mask ရည်ရွယ်ချက်ညွှန်ကြားချက်များ။ မူရင်းဗီဒီယိုမှ ဖယ်ရှားမည့် အရာဝတ္ထု သို့မဟုတ် လူကဲ့သို့ mask ပြုလုပ်ရမည့်အရာကို သတ်မှတ်ပါ။
promptလိုအပ်သည်
အမျိုးအစားstring
အရာဝတ္ထုကို ဖယ်ရှားပြီးနောက် နောက်ခံပုံစံ မည်သို့ဖြစ်ရမည်ကို သတ်မှတ်သည့် ဖော်ပြချက်။
enable_pass2_refinementရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
ပိုရှည်သော clip များတွင် အချိန်အလိုက် တစ်သမတ်တည်းဖြစ်မှု ပိုကောင်းလာနိုင်သော်လည်း လုပ်ဆောင်ချိန် ပိုကြာစေသော ရွေးချယ်နိုင်သည့် VOID refinement။ Pass 1 ပြီးနောက် Pass 2 အဖြစ် warped-noise refinement ကို အသုံးပြုသည်။
negative_promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုးThe video is not of a high quality, it has a low resolution. Watermark present in each frame. The background is solid. Strange body and strange trajectory. Distortion.
မလိုလားအပ်သော ရလဒ်များကို ဖော်ပြပြီး ဖန်တီးမှုကို ထိုရလဒ်များမှ ရှောင်လွှဲစေသည့် အနုတ်လက္ခဏာပရောမ့်။
num_inference_stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး30
၁ – ၅၀
Denoising အဆင့်အရေအတွက်။ တိုးမြှင့်ခြင်းဖြင့် အရည်အသွေးကောင်းလာသော်လည်း latency ပိုတိုးသည်။
guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၂၀
classifier-free guidance ၏ strength။
strengthရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၁
Denoising အားကောင်းမှု။ 1.0 သည် Denoising အပြည့်အဝဖြစ်ကြောင်း ဖော်ပြသည်။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
တူညီသောရလဒ်များ ပြန်လည်ရရှိရန် ကျပန်းဖြစ်မှုကို ထိန်းချုပ်သည့် seed။
num_framesရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး85
၁ – ၁၉၇
တောင်းဆိုထားသော အချိန်အလိုက် inference window ကို backend က CogVideoX-safe အရွယ်အစား 69, 77, 85, ..., 197 ထဲမှ တစ်ခုသို့ ချိန်ညှိသည်။ အချိန်အလိုက် compression နှင့် patching ကို လိုက်လျောညီထွေဖြစ်စေရန် အနီးစပ်ဆုံးအရွယ်အစားကို ရွေးချယ်သည်။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
ဖန်တီးထားသော အကြောင်းအရာအတွက် ဘေးကင်းရေးစစ်ဆေးမှုများကို ဖွင့်ပေးသည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "void-video-inpainting",
  "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": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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,
    "timings": {}
  },
  "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 တန်ဖိုး။
timings
objectPipeline ၏ အဆင့်တစ်ခုချင်းစီအလိုက် အချိန်အသေးစိတ်များ။

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