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

Sam Audio · Visual Separate

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

မော်ဒယ် id sam-audio/visual-separate
# 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-audio/visual-separate?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 ဗီဒီယိုမှ အသံ ၁၀–၆၀ s #video-to-audio#sam-audio

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

Meta · ဒေတာ (JSON)

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

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

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

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

မူလ

ခွဲခြားမှုကို ကူညီရန် ပစ်မှတ်အသံ၏ သဘာဝဘာသာစကား ဖော်ပြချက်။

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

လုပ်ဆောင်ရန် ဗီဒီယိုဖိုင် URL၊ MP4 သို့မဟုတ် MOV ကဲ့သို့သော ဖော်မတ်များဖြင့်။

မူလ 1

အဆင့်သတ်မှတ်ရန် ဖန်တီးမည့် candidate အရေအတွက်။

အဆင့်မြင့် mask_video_url · acceleration · output_format · max_chunk_duration · chunk_overlap
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

အဖြူရောင်နောက်ခံပေါ်တွင် ပစ်မှတ်အရာဝတ္ထုကို အနက်ရောင်အဖြစ် ပြသသည့် binary encoding အသုံးပြုထားသော mask ဗီဒီယို URL။

acceleration မူလ balanced

လုပ်ဆောင်မှုတွင် အသုံးပြုသည့် acceleration level။

output_format မူလ wav

ဖန်တီးထားသော အသံ၏ ဖော်မတ်။

မူလ 60

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

မူလ 5

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

POST /run/sam-audio/visual-separate?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-audio/visual-separate?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 Audio · Visual Separate အကြောင်း

`video_url` ကို လက်ခံပြီး ၎င်း၏အသံမှ ရည်မှန်းအသံကို ထုတ်ယူသည်။ ရွေးချယ်စရာ `mask_video_url` သည် ရည်မှန်းအရာဝတ္ထုကို သတ်မှတ်ပေးသည် (ရည်မှန်းချက်အတွက် အနက်၊ နောက်ခံအတွက် အဖြူ)၊ `prompt` သည် စာသားအရိပ်အမြွက် ထည့်ပေးနိုင်သည်။ `reranking_candidates` အများဆုံး 4 ခုကို အဆင့်သတ်မှတ်နိုင်ပြီး ရှည်လျားသောအသံကို အပိုင်းခွဲသည်။ ထွက်ရလဒ်တွင် wav သို့မဟုတ် mp3 ဖြင့် `target` နှင့် `residual` အသံများ ပါဝင်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
video_urlလိုအပ်သည် video
အမျိုးအစားurl · video
လုပ်ဆောင်ရန် ဗီဒီယိုဖိုင် URL၊ MP4 သို့မဟုတ် MOV ကဲ့သို့သော ဖော်မတ်များဖြင့်။
mask_video_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · video
အဖြူရောင်နောက်ခံပေါ်တွင် ပစ်မှတ်အရာဝတ္ထုကို အနက်ရောင်အဖြစ် ပြသသည့် binary encoding အသုံးပြုထားသော mask ဗီဒီယို URL။
promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုး
ခွဲခြားမှုကို ကူညီရန် ပစ်မှတ်အသံ၏ သဘာဝဘာသာစကား ဖော်ပြချက်။
reranking_candidatesရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး1
၁ – ၄
အဆင့်သတ်မှတ်ရန် ဖန်တီးမည့် candidate အရေအတွက်။
accelerationရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးbalanced
fastbalancedquality
လုပ်ဆောင်မှုတွင် အသုံးပြုသည့် acceleration level။
max_chunk_durationရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး60
၁၀ – ၆၀
တစ်ကြိမ်လုပ်ဆောင်မှုအတွက် အသံကန့်သတ်ချက်ကို စက္ကန့်ဖြင့် တိုင်းတာသည်။ ၎င်းထက်ကျော်လွန်ပါက ထပ်နေသောအပိုင်းများကို အသုံးပြုပြီး ပေါင်းစပ်သည်။
chunk_overlapရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး5
၀ – ၃၀
crossfade ပေါင်းစပ်မှုအတွက် အသုံးပြုသည့် အပိုင်းများကြား ထပ်နေမှုအရှည်ကို စက္ကန့်ဖြင့် တိုင်းတာသည်။
output_formatရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးwav
wavmp3
ဖန်တီးထားသော အသံ၏ ဖော်မတ်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "sam-audio/visual-separate",
  "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": 50,
    "usd": "0.05",
    "charged": 50,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "target": {
      "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
    },
    "residual": {
      "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
    },
    "duration": 5,
    "sample_rate": 48000
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "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 များ
target
object {url, content_type, file_name, file_size}သီးခြားခွဲထုတ်ထားသော ပစ်မှတ်အသံ။
residual
object {url, content_type, file_name, file_size}ပစ်မှတ်အသံမှလွဲ၍ ကျန်ရှိသော အသံ။
duration
numberထွက်ရလဒ်အသံအရှည်ကို စက္ကန့်ဖြင့် တိုင်းတာသည်။
sample_rate
integerထွက်ရလဒ်အသံ၏ Hz ဖြင့် တိုင်းတာထားသော sampling ကြိမ်နှုန်း။

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

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