सामग्री पर जाएँ

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"

उदाहरण जैसी फ़ाइलें: $1.175 1,175 API क्रेडिट चलाने से पहले आपकी फ़ाइलों को मापा जाता है इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
Kling रेफ़रेंस से वीडियो रेफ़रेंस इनपुट3–30 s1080p तक #reference-to-video#multi-shot#image-reference#video-reference

ऐसे 3-30 सेकंड के वीडियो बनाता है जिनमें अधिकतम 10 संदर्भ छवियों, 5 संदर्भ वीडियो और 7 तत्वों का रूप बरकरार रहता है

Doitong पर बनाया गया

Doitong समुदाय द्वारा Kling 4.0 से बनाए गए सार्वजनिक कार्य। एक क्लिक में प्रॉम्प्ट का पुनः उपयोग करें।

दिखाए गए सार्वजनिक कार्य: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... वीडियो

Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while speaking, with realistic facial expressions and synchronized lip movements, as if she is promoting something to the viewer. She maintains eye contact with the camera, smiles slightly, and uses subtle...

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her ey... वीडियो

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her eyes and cheeks, as if the blurry image on the screen is changing. Her eyes move slightly as she studies the screen, and she takes one slow, tense breath. Behind her, shadows of the snowstorm move...

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. I... वीडियो

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. Its huge dark leathery wings beat twice with slow, heavy strokes, sending snow swirling off the cliff in big clouds. Then it folds its wings and settles on the rock, the giant elk still held in its...

**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...

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jeng... वीडियो

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jenga tower. As the block comes out, the tower naturally loses balance and realistically collapses onto the table. Frustrated, he angrily sweeps all the fallen wooden blocks off the table with both hands....

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold ... वीडियो

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold rock, a huge orange-white heat shape hidden inside a rock crevice, two small bright amber spots glowing like eyes, faint noise grain. Cinematic videorealistic, ultra detailed, 16:9, volumetric light,...

**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...

**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...

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

88 / 2500

ऐसे निर्माण निर्देश जो `prompt` या `multi_prompt` में से किसी एक की आपूर्ति की आवश्यकता पूरी करते हैं। दिए गए इनपुट को संदर्भित करने के लिए @Image1, @Video1, @Element1 आदि का उपयोग करें।

video_urls
फ़ाइल ड्रॉप करें, या · 5 तक

@Video1, @Video2 आदि का उपयोग करके संबोधित किए जाने वाले अधिकतम 5 संदर्भ वीडियो; प्रत्येक की अवधि 3–30 सेकंड (अधिकतम 30.05 सेकंड) हो सकती है, और एलिमेंट वीडियो के साथ उनकी कुल अवधि 30 सेकंड से अधिक नहीं हो सकती। प्रत्येक फ़ाइल 300 MB से बड़ी नहीं होनी चाहिए, तथा चौड़ाई और ऊंचाई 700 px से 4553 px के बीच होनी चाहिए। आस्पेक्ट रेशियो 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 होनी चाहिए और आस्पेक्ट रेशियो 0.40 से 2.50 के बीच होना चाहिए।

image_urls
फ़ाइल ड्रॉप करें, या · 10 तक

@Image1, @Image2 आदि का उपयोग करके संबोधित की जाने वाली इमेज संदर्भ, अधिकतम 10 इमेज। प्रत्येक फ़ाइल 30.0 MB तक सीमित है, दोनों आयामों में कम से कम 300 px होने चाहिए और आस्पेक्ट रेशियो 0.40 से 2.50 के बीच होना चाहिए।

शॉट-दर-शॉट निर्माण निर्देश, जिसमें प्रत्येक प्रॉम्प्ट एक शॉट को परिभाषित करता है और उसकी अवधि वीडियो की कुल लंबाई में जुड़ती है।

अधिकतम 7 पात्रों या ऑब्जेक्ट का संग्रह, जिनमें अधिकतम 3 में `voice_id` शामिल हो सकता है और अधिकतम 3 वीडियो का उपयोग कर सकते हैं। इन तत्वों को @Element1, @Element2 आदि के रूप में संबोधित करें।

POST /run/kling/v4/reference-to-video?wait=20 कोटेशन → $1.175
# 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 को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

Kling 4.0 Reference to Video के बारे में

टेक्स्ट `prompt` और संदर्भ छवियों, संदर्भ वीडियो तथा चरित्र या ऑब्जेक्ट तत्वों से वीडियो बनाता है, जिन्हें प्रॉम्प्ट में @Image1, @Video1 या @Element1 के रूप में संदर्भित किया जाता है। अवधि 3 से 30 सेकंड तक होती है (डिफ़ॉल्ट 5), आउटपुट 720p या 1080p और आस्पेक्ट रेशियो auto, 16:9, 9:16, 1:1 या 21:9 हो सकता है। प्रति-शॉट प्रॉम्प्ट के लिए `multi_prompt` का उपयोग करें; इस स्थिति में कुल लंबाई शॉट की अवधियों का योग होती है। सीमाएँ 10 छवियाँ, प्रत्येक 3-30s के 5 वीडियो और 7 तत्व हैं, जिनमें से अधिकतम 3 में आवाज़ हो सकती है।

पैरामीटर

कैनोनिकल नाम या नेटिव नाम में से कोई एक भेजें, दोनों नहीं। कैनोनिकल नाम

नामप्रकार डिफ़ॉल्टअनुमत विवरण
promptवैकल्पिक
प्रकारstring | null
≤ 2,500 अक्षर
ऐसे निर्माण निर्देश जो `prompt` या `multi_prompt` में से किसी एक की आपूर्ति की आवश्यकता पूरी करते हैं। दिए गए इनपुट को संदर्भित करने के लिए @Image1, @Video1, @Element1 आदि का उपयोग करें।
multi_promptवैकल्पिक
प्रकारobject[]
शॉट-दर-शॉट निर्माण निर्देश, जिसमें प्रत्येक प्रॉम्प्ट एक शॉट को परिभाषित करता है और उसकी अवधि वीडियो की कुल लंबाई में जुड़ती है।
multi_prompt[].promptआवश्यक
प्रकारstring
1 – 512 characters
वर्तमान शॉट के लिए टेक्स्ट निर्देश।
multi_prompt[].durationवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट5
1 – 30
किसी एक शॉट की अवधि, सेकंड में मापी गई।
durationवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट5
3 – 30
वीडियो की लंबाई सेकंड में, 3 से 30 तक।
start_image_urlवैकल्पिक image
प्रकारurl · image
वैकल्पिक पहले-फ़्रेम की इमेज, जो इमेज संदर्भ सीमा में गिनी जाती है। अधिकतम फ़ाइल आकार 30.0 MB है; चौड़ाई और ऊंचाई दोनों कम से कम 300 px होनी चाहिए और आस्पेक्ट रेशियो 0.40 से 2.50 के बीच होना चाहिए।
image_urlsवैकल्पिक images
प्रकारurl[] · image
≤ 10 आइटम
@Image1, @Image2 आदि का उपयोग करके संबोधित की जाने वाली इमेज संदर्भ, अधिकतम 10 इमेज। प्रत्येक फ़ाइल 30.0 MB तक सीमित है, दोनों आयामों में कम से कम 300 px होने चाहिए और आस्पेक्ट रेशियो 0.40 से 2.50 के बीच होना चाहिए।
video_urlsवैकल्पिक videos
प्रकारurl[] · video
≤ 5 आइटम
@Video1, @Video2 आदि का उपयोग करके संबोधित किए जाने वाले अधिकतम 5 संदर्भ वीडियो; प्रत्येक की अवधि 3–30 सेकंड (अधिकतम 30.05 सेकंड) हो सकती है, और एलिमेंट वीडियो के साथ उनकी कुल अवधि 30 सेकंड से अधिक नहीं हो सकती। प्रत्येक फ़ाइल 300 MB से बड़ी नहीं होनी चाहिए, तथा चौड़ाई और ऊंचाई 700 px से 4553 px के बीच होनी चाहिए। आस्पेक्ट रेशियो 0.40 से 2.50 के बीच और फ़्रेम दर 23.9 से 60.05 FPS के बीच होनी चाहिए।
elementsवैकल्पिक
प्रकारobject[]
≤ 7 आइटम
अधिकतम 7 पात्रों या ऑब्जेक्ट का संग्रह, जिनमें अधिकतम 3 में `voice_id` शामिल हो सकता है और अधिकतम 3 वीडियो का उपयोग कर सकते हैं। इन तत्वों को @Element1, @Element2 आदि के रूप में संबोधित करें।
elements[].frontal_image_urlवैकल्पिक
प्रकारurl · image
तत्व का मुख्य दृश्य दिखाने वाली सामने से ली गई इमेज। अधिकतम फ़ाइल आकार 30.0 MB है; दोनों आयाम कम से कम 300 px होने चाहिए और आस्पेक्ट रेशियो 0.40 से 2.50 के बीच होना चाहिए।
elements[].reference_image_urlsवैकल्पिक
प्रकारurl[] · image
≤ 3 items
तत्व के विभिन्न कोण दिखाने वाली पूरक इमेज, जिनमें 1 से 3 दृश्य हों। प्रत्येक फ़ाइल अधिकतम 30.0 MB की हो सकती है, दोनों आयामों में कम से कम 300 px होनी चाहिए और आस्पेक्ट रेशियो 0.40 से 2.50 के बीच होना चाहिए।
elements[].video_urlवैकल्पिक
प्रकारurl · video
इमेज की जगह उपयोग किए जाने वाले तत्व का वीडियो रूप, जिसकी अवधि 3–30 सेकंड (अधिकतम 30.05 सेकंड) हो। फ़ाइल 300 MB से अधिक नहीं होनी चाहिए; चौड़ाई और ऊंचाई दोनों 700–4553 px के बीच होनी चाहिए। समर्थित आस्पेक्ट रेशियो 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-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?storage= के अनुसार।
हर मॉडल पर एक जैसा आकारइमेज, वीडियो और ऑडियो सभी के लिए type, url, content_type, width, height और duration। output मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
video
object {url, content_type, file_name, file_size}मॉडल द्वारा बनाया गया वीडियो।

और मॉडल: रेफ़रेंस से वीडियो

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/kling/v4/reference-to-video.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt