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

Kling O1 Reference Video to Video [Pro]

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

မော်ဒယ် id kling-video/o1/video-to-video/reference
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/kling-video/o1/video-to-video/reference?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ဤတောင်းဆိုချက်: ၀.၈၄ $ ၈၄၀ API ခရက်ဒစ် ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
Kling ဗီဒီယိုမှ ဗီဒီယို ရည်ညွှန်း ထည့်သွင်းချက်များ၃–၁၀ s

ရည်ညွှန်းကလစ်ဖြင့် လမ်းညွှန်ကာ ရိုက်ကူးမှုအသစ် ဖန်တီးပေးသည့် Pro အဆင့် video-to-video၊ အသံကို ရွေးချယ်၍ ထိန်းသိမ်းနိုင်သည်

Kling · ဗီဒီယို

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

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

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

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

•လိုအပ်သည် 88 / 2500

အစီအစဉ်လိုက် ရည်ညွှန်းချက်များတွင် element များအတွက် @Element1၊ @Element2 စသည်ဖြင့်၊ ပုံများအတွက် @Image1၊ @Image2 စသည်ဖြင့် အသုံးပြုပါ။

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

ရည်ညွှန်းဗီဒီယိုကို ညွှန်းသော .mp4 သို့မဟုတ် .mov URL။ အရွယ်အစား 200MB ထက် မပိုရပါ။ အတိုင်းအတာနှစ်ခုစလုံးသည် 720px နှင့် 2160px ကြား ဖြစ်ရပြီး ဖရိမ် rate သည် 24.0–60.0 FPS၊ ကြာချိန်သည် 3–10 စက္ကန့် (အများဆုံး 10.05 စက္ကန့်) ဖြစ်ရမည်။ timeout သည် 30.0 စက္ကန့် ဖြစ်သည်။

duration ၅ s

ဗီဒီယိုကြာချိန်ကို စက္ကန့်ဖြင့် တိုင်းတာထားသည်။

aspect_ratio မူလ auto

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

အဆင့်မြင့် images · enable_safety_checker · keep_audio · elements
image_urls
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

စတိုင် သို့မဟုတ် အသွင်အပြင်ကို လမ်းညွှန်ပေးသည့် ပုံများ။ ပရောမ့်တွင် @Image1၊ @Image2 စသည်ဖြင့် ရည်ညွှန်းပါ။ ဗီဒီယိုထည့်သွင်းချက်ရှိပါက element များနှင့် ရည်ညွှန်းပုံများ စုစုပေါင်းသည် 4 ခုထက် မပိုရပါ။ ဖိုင်တစ်ခုချင်းစီသည် 50 MB အထိသာ ဖြစ်ရပြီး အကျယ်နှင့် အမြင့်တစ်ခုချင်းစီသည် အနည်းဆုံး 300 px၊ aspect ratio သည် 0.40 မှ 2.50 အတွင်း ဖြစ်ရမည်။

ထည့်သွင်းမည့် ဇာတ်ကောင်များ သို့မဟုတ် အရာဝတ္ထုများ။ ပရောမ့်တွင် @Element1၊ @Element2 စသည်ဖြင့် ရည်ညွှန်းပါ။ ဗီဒီယိုထည့်သွင်းချက်ရှိပါက element များနှင့် ရည်ညွှန်းပုံများ စုစုပေါင်းသည် 4 ခုထက် မပိုရပါ။

POST /run/kling-video/o1/video-to-video/reference?wait=20 ကုန်ကျစရိတ် → ၀.၈၄ $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/kling-video/o1/video-to-video/reference?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

Kling O1 Reference Video to Video [Pro] အကြောင်း

`video_url` ရှိ ရည်ညွှန်းဗီဒီယို (mp4 သို့မဟုတ် mov၊ 3 မှ 10 စက္ကန့်၊ 720 မှ 2160 px၊ အများဆုံး 200MB) နှင့် အများဆုံး အက္ခရာ 2500 ပါသော `prompt` ကို လက်ခံသည်။ စတိုင်ပုံများနှင့် `elements` များကို စုစုပေါင်း 4 ခုအထိ ထည့်နိုင်ပြီး @Image1 သို့မဟုတ် @Element1 အဖြစ် ရည်ညွှန်းသည်။ မူရင်းအသံကို ထိန်းသိမ်းရန် `keep_audio` ကို သတ်မှတ်ပါ။ အချိုးသည် auto၊ 16:9၊ 9:16 သို့မဟုတ် 1:1 ဖြစ်နိုင်ပြီး ကြာချိန်သည် 3 မှ 10 စက္ကန့် ဖြစ်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
အကောင့်ခွင့်ပြုချက်ဖြင့်သာ ဘေးကင်းရေးစစ်ဆေးမှုများကို ပိတ်နိုင်သည်။ ခွင့်ပြုချက်မရှိသော တောင်းဆိုချက်များကို အမြဲစစ်ဆေးသည်။
promptလိုအပ်သည်
အမျိုးအစားstring
စာလုံး ၂,၅၀၀ လုံးထက် မပိုပါ
အစီအစဉ်လိုက် ရည်ညွှန်းချက်များတွင် element များအတွက် @Element1၊ @Element2 စသည်ဖြင့်၊ ပုံများအတွက် @Image1၊ @Image2 စသည်ဖြင့် အသုံးပြုပါ။
video_urlလိုအပ်သည် video
အမျိုးအစားurl · video
ရည်ညွှန်းဗီဒီယိုကို ညွှန်းသော .mp4 သို့မဟုတ် .mov URL။ အရွယ်အစား 200MB ထက် မပိုရပါ။ အတိုင်းအတာနှစ်ခုစလုံးသည် 720px နှင့် 2160px ကြား ဖြစ်ရပြီး ဖရိမ် rate သည် 24.0–60.0 FPS၊ ကြာချိန်သည် 3–10 စက္ကန့် (အများဆုံး 10.05 စက္ကန့်) ဖြစ်ရမည်။ timeout သည် 30.0 စက္ကန့် ဖြစ်သည်။
keep_audioရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
ဗီဒီယို၏ မူရင်းအသံကို ထိန်းသိမ်းမည်၊ မထိန်းသိမ်းမည်ကို ထိန်းချုပ်သည်။
image_urlsရွေးချယ်နိုင်သည် images
အမျိုးအစားurl[] · image
စတိုင် သို့မဟုတ် အသွင်အပြင်ကို လမ်းညွှန်ပေးသည့် ပုံများ။ ပရောမ့်တွင် @Image1၊ @Image2 စသည်ဖြင့် ရည်ညွှန်းပါ။ ဗီဒီယိုထည့်သွင်းချက်ရှိပါက element များနှင့် ရည်ညွှန်းပုံများ စုစုပေါင်းသည် 4 ခုထက် မပိုရပါ။ ဖိုင်တစ်ခုချင်းစီသည် 50 MB အထိသာ ဖြစ်ရပြီး အကျယ်နှင့် အမြင့်တစ်ခုချင်းစီသည် အနည်းဆုံး 300 px၊ aspect ratio သည် 0.40 မှ 2.50 အတွင်း ဖြစ်ရမည်။
elementsရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
ထည့်သွင်းမည့် ဇာတ်ကောင်များ သို့မဟုတ် အရာဝတ္ထုများ။ ပရောမ့်တွင် @Element1၊ @Element2 စသည်ဖြင့် ရည်ညွှန်းပါ။ ဗီဒီယိုထည့်သွင်းချက်ရှိပါက element များနှင့် ရည်ညွှန်းပုံများ စုစုပေါင်းသည် 4 ခုထက် မပိုရပါ။
elements[].frontal_image_urlလိုအပ်သည်
အမျိုးအစားurl · image
Element ၏ အဓိကမြင်ကွင်းကို ပေးသည့် ရှေ့မျက်နှာမူပုံ။ အရွယ်အစား 50 MB အထိသာ ဖြစ်ရမည်။ အကျယ်နှင့် အမြင့်တစ်ခုချင်းစီသည် အနည်းဆုံး 300 px ဖြစ်ရပြီး aspect ratio သည် 0.40 မှ 2.50 အတွင်း ဖြစ်ရမည်။ timeout သည် 20 စက္ကန့် ဖြစ်သည်။
elements[].reference_image_urlsရွေးချယ်နိုင်သည်
အမျိုးအစားurl[] · image
မတူညီသောထောင့်များကို ပြသသည့် အပိုရည်ညွှန်းပုံ 1–3 ပုံ ပေးပါ။ ပုံတစ်ပုံချင်းစီ၏ aspect ratio သည် 0.40 နှင့် 2.50 ကြား ဖြစ်ရမည်၊ အတိုင်းအတာနှစ်ခုစလုံးသည် အနည်းဆုံး 300px ဖြစ်ရမည်၊ အရွယ်အစားသည် 50.0MB ထက် မပိုရပါ။
aspect_ratioရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးauto
auto16:99:161:1
ဖန်တီးထားသော ဗီဒီယိုရှိ ဖရိမ်များ၏ အကျယ်နှင့် အမြင့် အချိုး။ 'auto' ကို ရွေးချယ်ပါက ထည့်သွင်းဗီဒီယို၏ အချိုးနှင့် အနီးစပ်ဆုံးအချိုးကို အလိုအလျောက် ရွေးချယ်သည်။
durationရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး5
345678910
ဗီဒီယိုကြာချိန်ကို စက္ကန့်ဖြင့် တိုင်းတာထားသည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-video/o1/video-to-video/reference",
  "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": 840,
    "usd": "0.84",
    "charged": 840,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/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}မော်ဒယ်မှ ထုတ်လုပ်ထားသော ဗီဒီယို။

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

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