Lompat ke konten

Kling 4.0 Reference to Video

Integrasikan

ID model 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"

File seperti contoh: $1,175 1.175 kredit API file Anda diukur sebelum dijalankan Jalankan di halaman ini

Dapatkan kunci API
Kling Referensi ke Video Input referensi3–30 dtkhingga 1080p #reference-to-video#multi-shot#image-reference#video-reference

Menghasilkan video berdurasi 3-30 detik yang mempertahankan tampilan hingga 10 gambar referensi, 5 video referensi, dan 7 elemen

Dibuat di Doitong

Karya publik yang dibuat dengan Kling 4.0 oleh komunitas Doitong. Gunakan kembali prompt dengan satu klik.

Karya publik yang ditampilkan: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... Video

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

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

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

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

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

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

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

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

Buat permintaan

Kontrol dibuat dari skema model. Kode dan harga diperbarui saat Anda mengubahnya.

88 / 2500

Instruksi pembuatan yang memenuhi persyaratan untuk menyediakan `prompt` atau `multi_prompt`. Untuk merujuk input yang disediakan, gunakan @Image1, @Video1, @Element1, dan seterusnya.

video_urls
Jatuhkan file, atau · hingga 5

Hingga 5 video referensi, dirujuk menggunakan @Video1, @Video2, dan seterusnya; masing-masing berdurasi 3–30 detik (maksimal 30.05 detik), dan total durasinya bersama video elemen tidak boleh melebihi 30 detik. Setiap file tidak boleh lebih besar dari 300 MB, dengan lebar dan tinggi masing-masing antara 700 px dan 4553 px. Rasio aspek harus berada antara 0.40 dan 2.50, dan laju bingkai antara 23.9 dan 60.05 FPS.

resolution bawaan 1080p

Resolusi output.

aspect_ratio bawaan 16:9

Proporsi video, dipilih secara eksplisit atau diturunkan dari referensi dengan memilih 'auto'.

bawaan 5

Durasi video dalam detik, dari 3 hingga 30.

Lanjutan image · images · multi_prompt · elements
start_image_url
Jatuhkan file, atau

Gambar bingkai pertama opsional yang dihitung dalam batas gambar referensi. Ukuran file maksimum 30.0 MB; lebar dan tinggi masing-masing harus mencapai 300 px, dengan rasio aspek antara 0.40 dan 2.50.

image_urls
Jatuhkan file, atau · hingga 10

Referensi gambar yang dirujuk menggunakan @Image1, @Image2, dan seterusnya, dengan maksimal 10 gambar. Setiap file dibatasi hingga 30.0 MB, memerlukan minimal 300 px pada kedua dimensi, dan harus memiliki rasio aspek antara 0.40 dan 2.50.

Instruksi pembuatan per shot, dengan setiap prompt menentukan satu shot yang durasinya berkontribusi pada total durasi video.

Koleksi hingga 7 karakter atau objek, yang maksimal 3 di antaranya boleh menyertakan `voice_id` dan maksimal 3 boleh menggunakan video. Rujuk elemen-elemen ini sebagai @Element1, @Element2, dan seterusnya.

POST /run/kling/v4/reference-to-video?wait=20 estimasi harga → $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"

Jalankan permintaan ini

Key Anda tetap berada di browser ini: key hanya dikirim ke Doitong API dan disimpan (localStorage) hanya jika Anda mencentang Ingat. Dapatkan kunci API

Tentang Kling 4.0 Reference to Video

Membuat video dari `prompt` teks serta gambar referensi, video referensi, dan elemen karakter atau objek, yang dirujuk dalam prompt sebagai @Image1, @Video1, atau @Element1. Durasi berkisar antara 3 hingga 30 detik (default 5), dengan output pada 720p atau 1080p dan rasio aspek auto, 16:9, 9:16, 1:1, atau 21:9. Gunakan `multi_prompt` untuk prompt per pengambilan gambar; dalam hal ini, durasi total adalah jumlah durasi setiap pengambilan gambar. Batasnya adalah 10 gambar, 5 video masing-masing berdurasi 3-30s, dan 7 elemen, yang hingga 3 di antaranya dapat membawa suara.

Parameter

Kirim nama kanonis atau nama asli, bukan keduanya. Nama kanonis

NamaTipe BawaanDiizinkan Deskripsi
promptopsional
Tipestring | null
≤ 2.500 karakter
Instruksi pembuatan yang memenuhi persyaratan untuk menyediakan `prompt` atau `multi_prompt`. Untuk merujuk input yang disediakan, gunakan @Image1, @Video1, @Element1, dan seterusnya.
multi_promptopsional
Tipeobject[]
Instruksi pembuatan per shot, dengan setiap prompt menentukan satu shot yang durasinya berkontribusi pada total durasi video.
multi_prompt[].promptwajib
Tipestring
1 – 512 characters
Instruksi teks untuk shot saat ini.
multi_prompt[].durationopsional
Tipeinteger
Bawaan5
1 – 30
Durasi satu shot, diukur dalam detik.
durationopsional
Tipeinteger
Bawaan5
3 – 30
Durasi video dalam detik, dari 3 hingga 30.
start_image_urlopsional image
Tipeurl · image
Gambar bingkai pertama opsional yang dihitung dalam batas gambar referensi. Ukuran file maksimum 30.0 MB; lebar dan tinggi masing-masing harus mencapai 300 px, dengan rasio aspek antara 0.40 dan 2.50.
image_urlsopsional images
Tipeurl[] · image
≤ 10 item
Referensi gambar yang dirujuk menggunakan @Image1, @Image2, dan seterusnya, dengan maksimal 10 gambar. Setiap file dibatasi hingga 30.0 MB, memerlukan minimal 300 px pada kedua dimensi, dan harus memiliki rasio aspek antara 0.40 dan 2.50.
video_urlsopsional videos
Tipeurl[] · video
≤ 5 item
Hingga 5 video referensi, dirujuk menggunakan @Video1, @Video2, dan seterusnya; masing-masing berdurasi 3–30 detik (maksimal 30.05 detik), dan total durasinya bersama video elemen tidak boleh melebihi 30 detik. Setiap file tidak boleh lebih besar dari 300 MB, dengan lebar dan tinggi masing-masing antara 700 px dan 4553 px. Rasio aspek harus berada antara 0.40 dan 2.50, dan laju bingkai antara 23.9 dan 60.05 FPS.
elementsopsional
Tipeobject[]
≤ 7 item
Koleksi hingga 7 karakter atau objek, yang maksimal 3 di antaranya boleh menyertakan `voice_id` dan maksimal 3 boleh menggunakan video. Rujuk elemen-elemen ini sebagai @Element1, @Element2, dan seterusnya.
elements[].frontal_image_urlopsional
Tipeurl · image
Gambar tampak depan yang menunjukkan tampilan utama elemen. Ukuran file maksimum 30.0 MB; kedua dimensi harus minimal 300 px, dan rasio aspek harus antara 0.40 dan 2.50.
elements[].reference_image_urlsopsional
Tipeurl[] · image
≤ 3 items
Gambar tambahan yang menampilkan sudut berbeda dari elemen, dengan 1 hingga 3 tampilan. Setiap file maksimal 30.0 MB, harus berukuran minimal 300 px pada kedua dimensi, dan memiliki rasio aspek antara 0.40 dan 2.50.
elements[].video_urlopsional
Tipeurl · video
Representasi video elemen sebagai pengganti gambar, berdurasi 3–30 detik (maksimal 30.05 detik). File tidak boleh melebihi 300 MB; lebar dan tinggi harus berada dalam rentang 700–4553 px. Rasio aspek yang didukung adalah 0.40–2.50, dengan laju bingkai 23.9–60.05 FPS.
elements[].voice_idopsional
Tipestring | null
Suara yang ditetapkan ke elemen.
resolutionopsional
Tipeenum
Bawaan1080p
720p1080p
Resolusi output.
aspect_ratioopsional
Tipeenum
Bawaan16:9
auto16:99:161:121:9
Proporsi video, dipilih secara eksplisit atau diturunkan dari referensi dengan memilih 'auto'.
wajib Nama kanonis, juga diterima

Parameter file menerima URL publik https://, URI data: hingga 10 MB, atau file_url dari unggahan. File

Output

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"
  }
}
File Anda, pilihan AndaSetiap outputs[].url adalah salinan di penyimpanan kami: disimpan selamanya (dikenai biaya per GB-bulan) atau 7 hari gratis, sesuai setelan akun atau ?storage=.
Struktur sama di setiap modeltype, url, content_type, width, height, dan duration, untuk gambar, video, dan audio. output adalah objek hasil milik model.
Field output
video
object {url, content_type, file_name, file_size}Video yang dihasilkan model.

Model lainnya: Referensi ke Video

Untuk agen AI: halaman ini dalam Markdown tersedia di https://doitong.com/id/developers/models/kling/v4/reference-to-video.md. Semua model dan panduan: https://doitong.com/developers/llms.txt