কনটেন্টে যান

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

সর্বাধিক 10টি রেফারেন্স ছবি, 5টি রেফারেন্স ভিডিও এবং 7টি উপাদানের ভিজ্যুয়াল বজায় রেখে 3-30 সেকেন্ডের ভিডিও তৈরি করে

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 সেকেন্ড), এবং element ভিডিওগুলোর সঙ্গে মিলিয়ে মোট সময়কাল 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 মূল্য → ১.১৭৫$
# 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` এবং রেফারেন্স ছবি, রেফারেন্স ভিডিও ও চরিত্র বা অবজেক্ট উপাদান থেকে ভিডিও তৈরি করে। এগুলো `prompt`-এ @Image1, @Video1 অথবা @Element1 হিসেবে উল্লেখ করা হয়। দৈর্ঘ্য 3 থেকে 30 সেকেন্ড (ডিফল্ট 5), এবং আউটপুট 720p বা 1080p রেজোলিউশনে, auto, 16:9, 9:16, 1:1 অথবা 21:9 অ্যাসপেক্ট রেশিওতে তৈরি হয়। প্রতি শটের জন্য আলাদা `prompt` ব্যবহার করতে `multi_prompt` ব্যবহার করুন; সে ক্ষেত্রে মোট দৈর্ঘ্য শটগুলোর দৈর্ঘ্যের যোগফল। সীমা হলো 10টি ছবি, প্রতিটি 3-30s দৈর্ঘ্যের 5টি ভিডিও এবং 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 এবং অ্যাসপেক্ট রেশিও 0.40 থেকে 2.50-এর মধ্যে হতে হবে।
image_urlsঐচ্ছিক images
ধরনurl[] · image
≤ ১০টি আইটেম
@Image1, @Image2 ইত্যাদি ব্যবহার করে উল্লেখ করা ছবির রেফারেন্স, সর্বোচ্চ 10টি ছবি। প্রতিটি ফাইলের সীমা 30.0 MB, উভয় মাত্রায় কমপক্ষে 300 px এবং অ্যাসপেক্ট রেশিও 0.40 থেকে 2.50-এর মধ্যে হতে হবে।
video_urlsঐচ্ছিক videos
ধরনurl[] · video
≤ ৫টি আইটেম
@Video1, @Video2 ইত্যাদি ব্যবহার করে উল্লেখ করা সর্বোচ্চ 5টি রেফারেন্স ভিডিও; প্রতিটির সময়কাল 3–30 সেকেন্ড (সর্বোচ্চ 30.05 সেকেন্ড), এবং element ভিডিওগুলোর সঙ্গে মিলিয়ে মোট সময়কাল 30 সেকেন্ডের বেশি হতে পারবে না। প্রতিটি ফাইলের আকার সর্বোচ্চ 300 MB, প্রস্থ ও উচ্চতা 700 px থেকে 4553 px-এর মধ্যে হতে হবে। অ্যাসপেক্ট রেশিও 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 এবং অ্যাসপেক্ট রেশিও 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-মাস অনুযায়ী অর্থপ্রদত্ত) অথবা অ্যাকাউন্ট সেটিংস বা ?storage= অনুযায়ী বিনামূল্যে ৭ দিন পর্যন্ত।
প্রতিটি মডেলে একই গঠনছবি, ভিডিও এবং অডিও—সব ক্ষেত্রেই type, url, content_type, width, height এবং duration। output হলো মডেলের নিজস্ব ফলাফল অবজেক্ট।
আউটপুটের ফিল্ড
video
object {url, content_type, file_name, file_size}মডেল দ্বারা উৎপাদিত ভিডিও।

আরও মডেল: রেফারেন্স থেকে ভিডিও

AI এজেন্টদের জন্য: এই পৃষ্ঠাটি Markdown হিসেবে এখানে আছে https://doitong.com/bn/developers/models/kling/v4/reference-to-video.md. সব মডেল ও গাইড: https://doitong.com/developers/llms.txt