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

Sam 3 1 · Video

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

မော်ဒယ် id sam-3-1/video
# 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/sam-3-1/video?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

နမူနာကဲ့သို့ ဖိုင်များ: ၀.၁၉ $ ၁၉၀ API ခရက်ဒစ် · ≈ ၂၀.၀၄ ₽ လုပ်ဆောင်မီ သင့်ဖိုင်များကို တိုင်းတာသည် ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
Meta ဗီဒီယိုမှ ဗီဒီယို #segmentation#mask#real-time

အရာဝတ္ထု 128 ခုအထိ ခြေရာခံသည့် SAM 3.1 ဗီဒီယိုခွဲခြားခြင်း၊ mp4 သို့မဟုတ် webm အဖြစ် ထွက်ရလဒ်ပေးသည်

Meta · ဗီဒီယို

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

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

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

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

မူလ

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

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

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

အဆင့်မြင့် video_output_type · detection_threshold · max_num_objects · apply_mask · point_prompts · box_prompts
video_output_type မူလ X264 (.mp4)

ရရှိလာမည့် ဗီဒီယို၏ ထွက်ရလဒ်အမျိုးအစား။

မူလ 0.5

တွေ့ရှိမှု၏ ယုံကြည်မှုဖြတ်တောက်တန်ဖိုး။ တန်ဖိုးလျှော့ပါက တိကျမှုကျဆင်းသည့်အပြင် တွေ့ရှိမှုအရေအတွက် တိုးလာသည်။ အကွာအဝေးမှာ 0.0–1.0 ဖြစ်သည်။

မူလ 16

ဗီဒီယိုတွင် ခြေရာခံမည့် အရာဝတ္ထုအရေအတွက် အများဆုံး။

မူလ []

အမှတ်အခြေပြု ပရောမ့်များ စုစည်းမှု။

မူလ []

(x_min, y_min, x_max, y_max) သြဒီနိတ် tuple များအဖြစ် စာရင်းပြုထားသော box ပရောမ့်များ။

POST /run/sam-3-1/video?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/sam-3-1/video?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

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

ကော်မာဖြင့် ခွဲထားသော စာသား `prompt`၊ အမှတ်များ သို့မဟုတ် ဘောက်စ်များမှ SAM 3.1 ဖြင့် ဗီဒီယိုအတွင်းရှိ အရာဝတ္ထုများကို ခွဲခြားပြီး ခြေရာခံပေးသည်။ `max_num_objects` သည် ခြေရာခံမည့် အရာဝတ္ထုအရေအတွက်ကို 1 မှ 128 (မူလတန်ဖိုး 16) အတွင်း သတ်မှတ်သည်။ `detection_threshold` သည် 0.1 မှ 1 အတွင်းဖြစ်သည်။ ထွက်ရလဒ်မှာ X264 (.mp4) သို့မဟုတ် VP9 (.webm) ဖြစ်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
video_urlလိုအပ်သည် video
အမျိုးအစားurl · video
ခွဲခြားမှုအတွက် ဗီဒီယို 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 သည် မည်သည့်တွေ့ရှိထားသောအရာဝတ္ထုကို ထိုအမှတ်များက ပြုပြင်မည်ကို သတ်မှတ်သည်။
box_promptsရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
မူလတန်ဖိုး[]
(x_min, y_min, x_max, y_max) သြဒီနိတ် tuple များအဖြစ် စာရင်းပြုထားသော 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။
apply_maskရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
ဗီဒီယိုတွင် mask အသုံးပြုမည်၊ မည်မည်။
video_output_typeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးX264 (.mp4)
X264 (.mp4)VP9 (.webm)
ရရှိလာမည့် ဗီဒီယို၏ ထွက်ရလဒ်အမျိုးအစား။
detection_thresholdရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.5
၀.၁ – ၁
တွေ့ရှိမှု၏ ယုံကြည်မှုဖြတ်တောက်တန်ဖိုး။ တန်ဖိုးလျှော့ပါက တိကျမှုကျဆင်းသည့်အပြင် တွေ့ရှိမှုအရေအတွက် တိုးလာသည်။ အကွာအဝေးမှာ 0.0–1.0 ဖြစ်သည်။
max_num_objectsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး16
၁ – ၁၂၈
ဗီဒီယိုတွင် ခြေရာခံမည့် အရာဝတ္ထုအရေအတွက် အများဆုံး။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "sam-3-1/video",
  "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": 190,
    "usd": "0.19",
    "charged": 190,
    "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.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 များ
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-1/video.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt