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

Kling 4.0 Reference to Video

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

မော်ဒယ် id kling/v4/reference-to-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/kling/v4/reference-to-video?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"
  }'

# 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 ကီး ရယူရန်
Kling ရည်ညွှန်းချက်မှ ဗီဒီယို ရည်ညွှန်း ထည့်သွင်းချက်များ၃–၃၀ s1080p အထိ #reference-to-video#multi-shot#image-reference#video-reference

ရည်ညွှန်းပုံ ၁၀ ပုံအထိ၊ ရည်ညွှန်းဗီဒီယို ၅ ခုနှင့် element ၇ ခုအထိ၏ ပုံစံကို ထိန်းသိမ်းထားသည့် 3-30 စက္ကန့်ဗီဒီယိုများကို ဖန်တီးပေးသည်

Doitong တွင် ဖန်တီးထားသည်

Doitong အသိုင်းအဝိုင်းက Kling 4.0 ဖြင့် ဖန်တီးထားသော အများပြည်သူသုံး လက်ရာများ။ ပရောမ့်ကို တစ်ချက်နှိပ်၍ ပြန်အသုံးပြုပါ။

ပြသထားသော အများပြည်သူသုံး လက်ရာများ: 16
**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... ဗီဒီယို

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... ဗီဒီယို

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... ဗီဒီယို

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

Уютная база отдыха с деревянными домиками-шале среди сосен. Майя и Клиентка заходят в теплое кафе... ဗီဒီယို

Уютная база отдыха с деревянными домиками-шале среди сосен. Майя и Клиентка заходят в теплое кафе с панорамными окнами. Внутри деревянный интерьер, мягкие диваны и живые цветы. Они садятся за столик, перед ними стоят дымящиеся чашки чая. Мягкий свет ламп создает уют. Средний план, уровень глаз. (...

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... ဗီဒီယို

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

Реалистично оживи старую семейную фотографию. Все люди сохраняют свои оригинальные лица, черты вн... ဗီဒီယို

Реалистично оживи старую семейную фотографию. Все люди сохраняют свои оригинальные лица, черты внешности, возраст, причёски и одежду. Мужчины слегка поворачивают головы, естественно моргают и едва заметно улыбаются. Женщина слева спокойно смотрит в камеру и мягко моргает. Маленький ребёнок слегка...

Create a realistic 30-second vertical 9:16 video showing two construction workers installing larg... ဗီဒီယို

Create a realistic 30-second vertical 9:16 video showing two construction workers installing large white patio tiles in a modern backyard. Show the entire construction process in a smooth timelapse. Gradually transform the unfinished backyard into a luxurious outdoor living space with an L-shaped...

Create a warm, emotional 8–10 second cinematic video showing the difference between a young child... ဗီဒီယို

Create a warm, emotional 8–10 second cinematic video showing the difference between a young child playing alone and playing with their mother. Scene 1: A toddler sits on the floor playing with toys independently. The child is calm and focused, exploring and learning through independent play. The...

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

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

88 / 2500

`prompt` သို့မဟုတ် `multi_prompt` တစ်ခုခု ပေးရမည့် လိုအပ်ချက်နှင့် ကိုက်ညီသော ဖန်တီးမှုညွှန်ကြားချက်များ။ ပေးထားသော ထည့်သွင်းချက်များကို ရည်ညွှန်းရန် @Image1၊ @Video1၊ @Element1 စသည်တို့ကို အသုံးပြုပါ။

video_urls
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ် · 5 အထိ

@Video1၊ @Video2 စသည်ဖြင့် ရည်ညွှန်းသည့် ကိုးကားဗီဒီယို အများဆုံး 5 ခု။ တစ်ခုစီသည် 3–30 စက္ကန့် (အများဆုံး 30.05 စက္ကန့်) ကြာနိုင်ပြီး element ဗီဒီယိုများနှင့် ပေါင်းထားသော စုစုပေါင်းကြာချိန်သည် 30 စက္ကန့်ထက် မကျော်ရပါ။ ဖိုင်တစ်ခုစီသည် 300 MB ထက် မကြီးရပါ၊ အကျယ်နှင့် အမြင့်တစ်ခုစီ 700 px နှင့် 4553 px ကြား ဖြစ်ရမည်။ aspect ratio သည် 0.40 နှင့် 2.50 ကြား၊ ဖရိမ်နှုန်းသည် 23.9 နှင့် 60.05 FPS ကြား ဖြစ်ရမည်။

resolution မူလ 1080p

ထွက်ရလဒ်၏ ရုပ်ထွက်အရည်အသွေး။

aspect_ratio မူလ 16:9

အတိအကျရွေးချယ်ထားသော သို့မဟုတ် 'auto' ကို ရွေးခြင်းဖြင့် ကိုးကားချက်များမှ ရယူထားသော ဗီဒီယိုအချိုးအစား။

မူလ 5

3 မှ 30 အထိ စက္ကန့်ဖြင့် ဖော်ပြထားသော ဗီဒီယိုကြာချိန်။

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

ပုံကိုးကားမှုကန့်သတ်ချက်တွင် ထည့်တွက်သည့် ရွေးချယ်နိုင်သော ပထမဖရိမ်ပုံ။ ဖိုင်အရွယ်အစားအများဆုံး 30.0 MB၊ အကျယ်နှင့် အမြင့်တစ်ခုစီ အနည်းဆုံး 300 px၊ aspect ratio 0.40 နှင့် 2.50 ကြား ဖြစ်ရမည်။

image_urls
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ် · 10 အထိ

@Image1၊ @Image2 စသည်ဖြင့် ရည်ညွှန်းသည့် ပုံကိုးကားချက်များ။ ပုံအများဆုံး 10 ပုံ ခွင့်ပြုသည်။ ဖိုင်တစ်ခုစီသည် 30.0 MB အထိသာ ဖြစ်ရမည်၊ အတိုင်းအတာနှစ်ခုစလုံး အနည်းဆုံး 300 px ဖြစ်ရမည်၊ aspect ratio သည် 0.40 နှင့် 2.50 ကြား ဖြစ်ရမည်။

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

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

POST /run/kling/v4/reference-to-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/kling/v4/reference-to-video?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"
  }'

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

Kling 4.0 Reference to Video အကြောင်း

စာသား `prompt` နှင့် ရည်ညွှန်းပုံများ၊ ရည်ညွှန်းဗီဒီယိုများ၊ ဇာတ်ကောင် သို့မဟုတ် အရာဝတ္ထု element များမှ ဗီဒီယိုဖန်တီးသည်။ ၎င်းတို့ကို ပရောမ့်အတွင်း @Image1၊ @Video1 သို့မဟုတ် @Element1 အဖြစ် ရည်ညွှန်းသည်။ ကြာချိန်သည် 3 မှ 30 စက္ကန့် (မူလတန်ဖိုး 5) ဖြစ်ပြီး ထွက်ရလဒ်သည် 720p သို့မဟုတ် 1080p၊ အချိုးများမှာ auto၊ 16:9၊ 9:16၊ 1:1 သို့မဟုတ် 21:9 ဖြစ်သည်။ ရိုက်ချက်တစ်ခုချင်းစီအတွက် ပရောမ့်များလိုပါက `multi_prompt` ကို အသုံးပြုပါ။ ထိုအခါ စုစုပေါင်းကြာချိန်သည် ရိုက်ချက်ကြာချိန်များ၏ ပေါင်းလဒ်ဖြစ်သည်။ ကန့်သတ်ချက်များမှာ ပုံ 10 ပုံ၊ တစ်ပုံလျှင် 3-30s ကြာသော ဗီဒီယို 5 ခုနှင့် element 7 ခုဖြစ်ပြီး ၎င်းတို့အနက် အများဆုံး 3 ခုတွင် အသံပါနိုင်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
စာလုံး ၂,၅၀၀ လုံးထက် မပိုပါ
`prompt` သို့မဟုတ် `multi_prompt` တစ်ခုခု ပေးရမည့် လိုအပ်ချက်နှင့် ကိုက်ညီသော ဖန်တီးမှုညွှန်ကြားချက်များ။ ပေးထားသော ထည့်သွင်းချက်များကို ရည်ညွှန်းရန် @Image1၊ @Video1၊ @Element1 စသည်တို့ကို အသုံးပြုပါ။
multi_promptရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
ရိုက်ကွက်တစ်ခုချင်းစီအလိုက် ဖန်တီးမှုညွှန်ကြားချက်များ။ ပရောမ့်တစ်ခုစီသည် ရိုက်ကွက်တစ်ခုကို သတ်မှတ်ပြီး ၎င်း၏ကြာချိန်သည် ဗီဒီယိုစုစုပေါင်းကြာချိန်တွင် ပါဝင်သည်။
multi_prompt[].promptလိုအပ်သည်
အမျိုးအစားstring
1 – 512 characters
လက်ရှိရိုက်ချက်အတွက် စာသားညွှန်ကြားချက်များ။
multi_prompt[].durationရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး5
၁ – ၃၀
စက္ကန့်ဖြင့် တိုင်းတာထားသော ရိုက်ကွက်တစ်ခုချင်းစီ၏ ကြာချိန်။
durationရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး5
၃ – ၃၀
3 မှ 30 အထိ စက္ကန့်ဖြင့် ဖော်ပြထားသော ဗီဒီယိုကြာချိန်။
start_image_urlရွေးချယ်နိုင်သည် image
အမျိုးအစားurl · image
ပုံကိုးကားမှုကန့်သတ်ချက်တွင် ထည့်တွက်သည့် ရွေးချယ်နိုင်သော ပထမဖရိမ်ပုံ။ ဖိုင်အရွယ်အစားအများဆုံး 30.0 MB၊ အကျယ်နှင့် အမြင့်တစ်ခုစီ အနည်းဆုံး 300 px၊ aspect ratio 0.40 နှင့် 2.50 ကြား ဖြစ်ရမည်။
image_urlsရွေးချယ်နိုင်သည် images
အမျိုးအစားurl[] · image
အကြောင်းအရာ ၁၀ ခုထက် မပိုပါ
@Image1၊ @Image2 စသည်ဖြင့် ရည်ညွှန်းသည့် ပုံကိုးကားချက်များ။ ပုံအများဆုံး 10 ပုံ ခွင့်ပြုသည်။ ဖိုင်တစ်ခုစီသည် 30.0 MB အထိသာ ဖြစ်ရမည်၊ အတိုင်းအတာနှစ်ခုစလုံး အနည်းဆုံး 300 px ဖြစ်ရမည်၊ aspect ratio သည် 0.40 နှင့် 2.50 ကြား ဖြစ်ရမည်။
video_urlsရွေးချယ်နိုင်သည် videos
အမျိုးအစားurl[] · video
အကြောင်းအရာ ၅ ခုထက် မပိုပါ
@Video1၊ @Video2 စသည်ဖြင့် ရည်ညွှန်းသည့် ကိုးကားဗီဒီယို အများဆုံး 5 ခု။ တစ်ခုစီသည် 3–30 စက္ကန့် (အများဆုံး 30.05 စက္ကန့်) ကြာနိုင်ပြီး element ဗီဒီယိုများနှင့် ပေါင်းထားသော စုစုပေါင်းကြာချိန်သည် 30 စက္ကန့်ထက် မကျော်ရပါ။ ဖိုင်တစ်ခုစီသည် 300 MB ထက် မကြီးရပါ၊ အကျယ်နှင့် အမြင့်တစ်ခုစီ 700 px နှင့် 4553 px ကြား ဖြစ်ရမည်။ aspect ratio သည် 0.40 နှင့် 2.50 ကြား၊ ဖရိမ်နှုန်းသည် 23.9 နှင့် 60.05 FPS ကြား ဖြစ်ရမည်။
elementsရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
အကြောင်းအရာ ၇ ခုထက် မပိုပါ
ဇာတ်ကောင်များ သို့မဟုတ် အရာဝတ္ထုများ စုစည်းမှု အများဆုံး 7 ခု။ ထိုအထဲမှ အများဆုံး 3 ခုတွင် `voice_id` ပါဝင်နိုင်ပြီး အများဆုံး 3 ခုသည် ဗီဒီယိုကို အသုံးပြုနိုင်သည်။ ဤအစိတ်အပိုင်းများကို @Element1၊ @Element2 စသည်ဖြင့် ရည်ညွှန်းပါ။
elements[].frontal_image_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · image
အစိတ်အပိုင်း၏ အဓိကမြင်ကွင်းကို ပြသသော ရှေ့မျက်နှာမူပုံ။ ဖိုင်အရွယ်အစားအများဆုံး 30.0 MB၊ အတိုင်းအတာနှစ်ခုစလုံး အနည်းဆုံး 300 px၊ aspect ratio 0.40 နှင့် 2.50 ကြား ဖြစ်ရမည်။
elements[].reference_image_urlsရွေးချယ်နိုင်သည်
အမျိုးအစားurl[] · image
≤ 3 items
အစိတ်အပိုင်း၏ မတူညီသောထောင့်များကို ပြသသော အထောက်အကူပြုပုံများ။ မြင်ကွင်း 1 မှ 3 ခု ပါဝင်နိုင်သည်။ ဖိုင်တစ်ခုစီသည် 30.0 MB အထိသာ ဖြစ်ရမည်၊ အတိုင်းအတာနှစ်ခုစလုံး အနည်းဆုံး 300 px၊ aspect ratio 0.40 နှင့် 2.50 ကြား ဖြစ်ရမည်။
elements[].video_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · video
ပုံများအစား အသုံးပြုသော အစိတ်အပိုင်း၏ ဗီဒီယိုကိုယ်စားပြုမှု။ 3–30 စက္ကန့် (အများဆုံး 30.05 စက္ကန့်) ကြာရမည်။ ဖိုင်သည် 300 MB ထက် မကျော်ရပါ၊ အကျယ်နှင့် အမြင့်တစ်ခုစီ 700–4553 px အတွင်း ဖြစ်ရမည်။ ထောက်ပံ့သည့် aspect ratio များမှာ 0.40–2.50 ဖြစ်ပြီး ဖရိမ်နှုန်းမှာ 23.9–60.05 FPS ဖြစ်သည်။
elements[].voice_idရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
အစိတ်အပိုင်းအတွက် သတ်မှတ်ထားသော အသံ။
resolutionရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး1080p
720p1080p
ထွက်ရလဒ်၏ ရုပ်ထွက်အရည်အသွေး။
aspect_ratioရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး16:9
auto16:99:161:121:9
အတိအကျရွေးချယ်ထားသော သို့မဟုတ် 'auto' ကို ရွေးခြင်းဖြင့် ကိုးကားချက်များမှ ရယူထားသော ဗီဒီယိုအချိုးအစား။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

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

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

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