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

RIFE · Video

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

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

လုပ်ဆောင်မှုတစ်ကြိမ်လျှင် ၄.၆၈ $ အထိ အမှန်တကယ် အသုံးပြုမှုအလိုက် ကောက်ခံပြီး ကျန်ငွေကို ငွေပြန်အမ်းသည် ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်

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

Open model · ဗီဒီယို

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

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

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

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

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

interpolation အတွက် အသုံးပြုသည့် ဗီဒီယိုကို ညွှန်ပြသော URL။

အဆင့်မြင့် num_frames · fps · use_scene_detection · use_calculated_fps · loop
မူလ 1

ထည့်သွင်းဗီဒီယို၏ ဖရိမ်များအကြား ဖန်တီးသည့် ဖရိမ်အသစ်များ၏ အရေအတွက်။

မူလ 8

use_calculated_fps ကို False ဟု သတ်မှတ်သည့်အခါသာ အသုံးပြုသော ဖရိမ်နှုန်းသတ်မှတ်ချက်ဖြစ်ပြီး ထွက်ရလဒ်ဗီဒီယိုက တစ်စက္ကန့်လျှင် ဖွင့်မည့် ဖရိမ်အရေအတွက်ကို သတ်မှတ်သည်။

POST /run/rife/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.com/v1/run/rife/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

RIFE · Video အကြောင်း

`video_url` မှတစ်ဆင့် ဗီဒီယိုကို လက်ခံပြီး မူလဖရိမ်တစ်စုံစီကြားတွင် `num_frames` (1 မှ 4) ဖရိမ်အသစ်များ ထည့်သွင်းသည်။ `use_scene_detection` သည် မြင်ကွင်းဖြတ်တောက်သည့်နေရာများတွင် ဗီဒီယိုအပိုင်းကို ခွဲ၍ မှုန်ဝါးသောဖရိမ်များကို ရှောင်ရှားပေးသည်။ `loop` သည် နောက်ဆုံးဖရိမ်ကို ပထမဖရိမ်သို့ ပြန်လည်ပေါင်းစပ်ပေးပြီး `use_calculated_fps` ပိတ်ထားချိန်တွင် `fps` သည် ကိုယ်တိုင်သတ်မှတ်ထားသော ထွက်ရလဒ်နှုန်းကို သတ်မှတ်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
video_urlလိုအပ်သည် video
အမျိုးအစားurl · video
interpolation အတွက် အသုံးပြုသည့် ဗီဒီယိုကို ညွှန်ပြသော URL။
num_framesရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး1
၁ – ၄
ထည့်သွင်းဗီဒီယို၏ ဖရိမ်များအကြား ဖန်တီးသည့် ဖရိမ်အသစ်များ၏ အရေအတွက်။
use_scene_detectionရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
interpolation အတွက် scene နယ်နိမိတ် ကိုင်တွယ်မှု: False သည် ဗီဒီယိုတစ်ခုလုံးကို scene တစ်ခုအဖြစ် ဆက်ထားပြီး True သည် scene များကို ရှာဖွေကာ interpolation မပြုမီ ခွဲသည်။ ခွဲခြင်းဖြင့် မှုန်ဝါးသော အကူးအပြောင်းဖရိမ်များကို ဖယ်ရှားနိုင်သော်လည်း မမှန်ကန်သော ရှာဖွေမှုက false positive များ ဖြစ်စေနိုင်သည်။
use_calculated_fpsရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
ထွက်ရလဒ်ဖရိမ်နှုန်း ရင်းမြစ်: False ဖြင့် ပေးထားသော FPS ကို အသုံးပြုပြီး True ဖြင့် ထည့်သွင်းဗီဒီယို၏ တွက်ချက်ထားသော FPS ကို ဖရိမ်အရေအတွက်နှင့် မြှောက်ကာ အစားထိုးသည်။
fpsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး8
၁ – ၆၀
use_calculated_fps ကို False ဟု သတ်မှတ်သည့်အခါသာ အသုံးပြုသော ဖရိမ်နှုန်းသတ်မှတ်ချက်ဖြစ်ပြီး ထွက်ရလဒ်ဗီဒီယိုက တစ်စက္ကန့်လျှင် ဖွင့်မည့် ဖရိမ်အရေအတွက်ကို သတ်မှတ်သည်။
loopရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
နောက်ဆုံးဖရိမ်မှ ပထမဖရိမ်သို့ ပြန်သွားခြင်းဖြင့် ပြန်ဖွင့်မှုကို အဆက်မပြတ် loop ဖြစ်စေမဖြစ်စေ ထိန်းချုပ်သည်: True သည် ပြန်သွားမှုကို ဖွင့်ပြီး False သည် ပိတ်ထားသည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "rife/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": 4680,
    "usd": "4.68",
    "charged": 4680,
    "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
    }
  },
  "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}interpolation ပြုလုပ်ထားသော ဖရိမ်များ ပါဝင်သည့် ထွက်ရလဒ်ဗီဒီယိုဖိုင်။

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

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