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

Sam 3 · Video RLE

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

မော်ဒယ် id sam-3/video-rle
# 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/sam-3/video-rle?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"
  }'

# 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 ကီး ရယူရန်
Meta ဗီဒီယိုမှ ဗီဒီယို #segmentation#mask#real-time#rle

mask-URL ဖြင့် စတင်သတ်မှတ်ခြင်း၊ ဖရိမ်အညွှန်း ထိန်းချုပ်ခြင်းနှင့် ပိုနိမ့်သော detection threshold အနိမ့်ဆုံးတန်ဖိုးတို့ပါသည့် ဗီဒီယိုအပိုင်းခွဲခြင်း

Meta · ဗီဒီယို

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

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

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

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

မူလ

ကော်မာဖြင့် ခွဲထားသော ဖော်ပြချက်များမှတစ်ဆင့် ခြေရာခံထားသော အရာဝတ္ထုများစွာကို ပံ့ပိုးသည့် ခွဲခြားမှု ပရောမ့်၊ ဥပမာ 'person, cloth'။

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

ခွဲခြားမှုအတွက် ဗီဒီယို URL။

အဆင့်မြင့် mask · detection_threshold · frame_index · apply_mask · boundingbox_zip · point_prompts · box_prompts
mask_url
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

ပထမဆုံးအသုံးပြုရန် mask URL။

မူလ 0.5

ရှိပြီးသားအရာဝတ္ထုများအတွက် 0.5 နှင့် အသစ်များအတွက် 0.7 မူလတန်ဖိုးများရှိသော တွေ့ရှိမှုယုံကြည်မှုဖြတ်တောက်တန်ဖိုး။ 0.0–1.0 အတွင်း တန်ဖိုးနိမ့်လေလေ တိကျမှုကို လျှော့ပြီး တွေ့ရှိမှုများကို တိုးစေသည်။ စာသားပရောမ့်များ မအောင်မြင်ပါက 0.2–0.3 ကို စမ်းကြည့်ပါ။

မူလ 0

mask_url ပေးသည့်အခါ ပထမဆုံးအပြန်အလှန်လုပ်ဆောင်ရန် ဖရိမ်၏ အညွှန်း။

မူလ []

ဖရိမ်အညွှန်းများကို သတ်မှတ်သည့် အမှတ်ပရောမ့်စာရင်း။

မူလ []

ထည့်သွင်းချက်တစ်ခုစီအတွက် ရွေးချယ်နိုင်သော frame_index ပါသည့် box ပရောမ့်စာရင်း။

POST /run/sam-3/video-rle?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/sam-3/video-rle?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"
  }'

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

Sam 3 · Video RLE အကြောင်း

စာသား `prompt`၊ အမှတ် သို့မဟုတ် ဘောက်စ် ပရောမ့်များ၊ သို့မဟုတ် `frame_index` တွင် အသုံးပြုသည့် `mask_url` မှ ကနဦးမတ်စ်ဖြင့် SAM 3 ကို အသုံးပြုကာ ဗီဒီယိုကို အပိုင်းခွဲခြားသည်။ `detection_threshold` သည် 0.01 မှ 1 အထိ ဖြစ်ပြီး စာသားပရောမ့်များ မအောင်မြင်သည့်အခါ 0.2 မှ 0.3 ကဲ့သို့ နိမ့်သောတန်ဖိုးများက ကူညီနိုင်သည်။ `boundingbox_zip` ဖြင့် ဖရိမ်တစ်ခုစီ၏ ကန့်သတ်ဘောင် zip ကို ပြန်ပေးနိုင်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
video_urlလိုအပ်သည် video
အမျိုးအစားurl · video
ခွဲခြားမှုအတွက် ဗီဒီယို URL။
mask_urlရွေးချယ်နိုင်သည် mask
အမျိုးအစားurl · image
ပထမဆုံးအသုံးပြုရန် mask URL။
promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုး
ကော်မာဖြင့် ခွဲထားသော ဖော်ပြချက်များမှတစ်ဆင့် ခြေရာခံထားသော အရာဝတ္ထုများစွာကို ပံ့ပိုးသည့် ခွဲခြားမှု ပရောမ့်၊ ဥပမာ 'person, cloth'။
point_promptsရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
မူလတန်ဖိုး[]
ဖရိမ်အညွှန်းများကို သတ်မှတ်သည့် အမှတ်ပရောမ့်စာရင်း။
point_prompts[].xရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
X ဝင်ရိုးတစ်လျှောက် ပရောမ့်၏ တည်နေရာ။
point_prompts[].yရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
Y ဝင်ရိုးတစ်လျှောက် ပရောမ့်၏ တည်နေရာ။
point_prompts[].labelရွေးချယ်နိုင်သည်
အမျိုးအစားenum
01
ရှေ့ခံ/နောက်ခံ label: 1 သည် ရှေ့ခံကိုညွှန်ပြပြီး 0 သည် နောက်ခံကိုညွှန်ပြသည်။
point_prompts[].object_idရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
အရာဝတ္ထုတစ်ခုတည်းကို ပြုပြင်သည့် ပရောမ့်များကို အုပ်စုဖွဲ့ရန် ရွေးချယ်နိုင်သော identifier။ စာသားကိုလည်း ပရောမ့်အဖြစ် ပေးထားပါက ဤ identifier သည် မည်သည့်တွေ့ရှိထားသောအရာဝတ္ထုကို ထိုအမှတ်များက ပြုပြင်မည်ကို သတ်မှတ်သည်။
point_prompts[].frame_indexရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
အပြန်အလှန်လုပ်ဆောင်ရန် ဖရိမ်ကို သတ်မှတ်သည့် အညွှန်း။
box_promptsရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
မူလတန်ဖိုး[]
ထည့်သွင်းချက်တစ်ခုစီအတွက် ရွေးချယ်နိုင်သော frame_index ပါသည့် box ပရောမ့်စာရင်း။
box_prompts[].x_minရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
ဘောက်စ်အတွက် အနည်းဆုံး x-ကိုဩဒိနိတ်။
box_prompts[].y_minရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
ဘောက်စ်အတွက် အနည်းဆုံး y-ကိုဩဒိနိတ်။
box_prompts[].x_maxရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
box အတွက် အများဆုံး X သြဒီနိတ်။
box_prompts[].y_maxရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
box အတွက် အများဆုံး Y သြဒီနိတ်။
box_prompts[].object_idရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
အရာဝတ္ထုတစ်ခုတည်းကို ပြုပြင်သည့် box များကို အုပ်စုဖွဲ့ရန် ရွေးချယ်နိုင်သော identifier။
box_prompts[].frame_indexရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
အပြန်အလှန်လုပ်ဆောင်ရန် ဖရိမ်ကို သတ်မှတ်သည့် အညွှန်း။
apply_maskရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
ဗီဒီယိုတွင် mask အသုံးပြုမည်၊ မည်မည်။
boundingbox_zipရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
ဖရိမ်တစ်ခုစီအတွက် bounding box overlay များပါဝင်သော ZIP archive ကို ပြန်ပေးမည်၊ မည်မည်။
detection_thresholdရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.5
၀.၀၁ – ၁
ရှိပြီးသားအရာဝတ္ထုများအတွက် 0.5 နှင့် အသစ်များအတွက် 0.7 မူလတန်ဖိုးများရှိသော တွေ့ရှိမှုယုံကြည်မှုဖြတ်တောက်တန်ဖိုး။ 0.0–1.0 အတွင်း တန်ဖိုးနိမ့်လေလေ တိကျမှုကို လျှော့ပြီး တွေ့ရှိမှုများကို တိုးစေသည်။ စာသားပရောမ့်များ မအောင်မြင်ပါက 0.2–0.3 ကို စမ်းကြည့်ပါ။
frame_indexရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး0
mask_url ပေးသည့်အခါ ပထမဆုံးအပြန်အလှန်လုပ်ဆောင်ရန် ဖရိမ်၏ အညွှန်း။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "sam-3/video-rle",
  "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": 95,
    "usd": "0.095",
    "charged": 95,
    "refunded": 0
  },
  "input": {
    "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
    },
    "boundingbox_frames_zip": {
      "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}ခွဲခြားမှုမှ ထုတ်လုပ်သော ဗီဒီယို။
boundingbox_frames_zip
object {url, content_type, file_name, file_size} | nullဖရိမ်တစ်ခုစီအတွက် bounding box overlay များပါဝင်သော ZIP archive။

နောက်ထပ် မော်ဒယ်များ: ဗီဒီယိုမှ ဗီဒီယို

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