Peke ki ngā ihirangi

Kling 4.0 Reference to Video

Whakauru

id tauira 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"

Ngā kōnae pēnei i te tauira: $ 1.175 1,175 whiwhinga API ka inea ō kōnae i mua i te whakahaere Whakahaerehia ki tēnei whārangi

Tikina he kī API
Kling Tohutoro ki te Ataata Ngā tāuru tohutoro3–30 stae atu ki 1080p #reference-to-video#multi-shot#image-reference#video-reference

Ka whakaputa ataata 3-30 hēkona te roa, ka mau tonu te āhua o ngā whakaahua tohutoro e 10 rawa atu, ngā ataata tohutoro e 5 me ngā huānga e 7

I hangaia ki Doitong

Ngā mahi tūmatanui i hangaia ki Kling 4.0 e te hapori Doitong. Whakamahia anō he tono mā te pāwhiri kotahi.

Ngā mahi tūmatanui kua whakaaturia: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... Ataata

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

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

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

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

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

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

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

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

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

88 / 2500

Ngā tohutohu whakaputanga e tutuki ai te whakaritenga kia tukuna `prompt`, `multi_prompt` rānei. Hei tohu i ngā tāuru kua tukuna, whakamahia @Image1, @Video1, @Element1, me ērā atu.

video_urls
Whakataka he kōnae, · tae atu ki 5

Kia 5 ataata tohutoro mōrahi, ka tohua mā @Video1, @Video2, me ērā atu; he 3–30 hēkona te roa o ia mea (30.05 hēkona mōrahi), ā, kaua tō rātou roanga tapeke me ngā ataata huānga e nui ake i te 30 hēkona. Kaua ia kōnae e nui ake i te 300 MB, me te whānui me te teitei ki waenga i te 700 px me te 4553 px. Me noho te ōwehenga āhua ki waenga i te 0.40 me te 2.50, me te pāpātanga anga ki waenga i te 23.9 me te 60.05 FPS.

resolution taunoa 1080p

Te taumira o te putanga.

aspect_ratio taunoa 16:9

Ngā ōwehenga ataata, ka kōwhiria hāngai, ka ahu mai rānei i ngā tohutoro mā te kōwhiri 'auto'.

taunoa 5

Te roanga o te ataata ki te hēkona, mai i te 3 ki te 30.

Arā atu image · images · multi_prompt · elements
start_image_url
Whakataka he kōnae,

Atahanga anga-tuatahi kōwhiringa ka tatauria ki te tepenga atahanga tohutoro. Ko te rahi kōnae mōrahi he 30.0 MB; me 300 px neke atu te whānui me te teitei, me te ōwehenga āhua ki waenga i te 0.40 me te 2.50.

image_urls
Whakataka he kōnae, · tae atu ki 10

Ngā atahanga tohutoro ka tohua mā @Image1, @Image2, me ērā atu, kia 10 atahanga mōrahi. E herea ana ia kōnae ki te 30.0 MB, me 300 px neke atu ngā ahu e rua, me te ōwehenga āhua ki waenga i te 0.40 me te 2.50.

Ngā tohutohu whakaputanga mō ia hopunga, ā, ka tautuhi ia tohutohu i tētahi hopunga kotahi, ko tōna roanga he wāhanga o te roanga tapeke o te ataata.

He kohinga e 7 kiripuaki, ahanoa rānei mōrahi, ā, e 3 mōrahi ka āhei ki te whakauru `voice_id`, e 3 mōrahi hoki ka āhei ki te whakamahi ataata. Tohua ēnei huānga hei @Element1, @Element2, me ērā atu.

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

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Kling 4.0 Reference to Video

Ka waihanga ataata mai i tētahi `prompt` kuputuhi me ngā atahanga tohutoro, ngā ataata tohutoro me ngā huānga kiripuaki, ahanoa rānei, ka tohua ki te tohutohu hei @Image1, @Video1, @Element1 rānei. Mai i te 3 ki te 30 hēkona te roanga (taunoa 5), ko te putanga he 720p, he 1080p rānei, ā, ko ngā ōwehenga āhuatanga he auto, 16:9, 9:16, 1:1, 21:9 rānei. Whakamahia te `multi_prompt` mō ngā tohutohu mō ia hopunga; i taua wā, ko te roanga katoa te tapeke o ngā roanga hopunga. Ko ngā tepenga he 10 atahanga, he 5 ataata 3-30s te roa o ia mea, me te 7 huānga, ā, tae atu ki te 3 o aua huānga ka taea te whai reo.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
promptkōwhiringa
Momostring | null
≤ 2,500 pūāhua
Ngā tohutohu whakaputanga e tutuki ai te whakaritenga kia tukuna `prompt`, `multi_prompt` rānei. Hei tohu i ngā tāuru kua tukuna, whakamahia @Image1, @Video1, @Element1, me ērā atu.
multi_promptkōwhiringa
Momoobject[]
Ngā tohutohu whakaputanga mō ia hopunga, ā, ka tautuhi ia tohutohu i tētahi hopunga kotahi, ko tōna roanga he wāhanga o te roanga tapeke o te ataata.
multi_prompt[].prompte hiahiatia ana
Momostring
1 – 512 characters
Ngā tohutohu kuputuhi mō te hopunga onāianei.
multi_prompt[].durationkōwhiringa
Momointeger
Taunoa5
1 – 30
Te roanga o tētahi hopunga kotahi, ka inea ki te hēkona.
durationkōwhiringa
Momointeger
Taunoa5
3 – 30
Te roanga o te ataata ki te hēkona, mai i te 3 ki te 30.
start_image_urlkōwhiringa image
Momourl · image
Atahanga anga-tuatahi kōwhiringa ka tatauria ki te tepenga atahanga tohutoro. Ko te rahi kōnae mōrahi he 30.0 MB; me 300 px neke atu te whānui me te teitei, me te ōwehenga āhua ki waenga i te 0.40 me te 2.50.
image_urlskōwhiringa images
Momourl[] · image
≤ 10 tūemi
Ngā atahanga tohutoro ka tohua mā @Image1, @Image2, me ērā atu, kia 10 atahanga mōrahi. E herea ana ia kōnae ki te 30.0 MB, me 300 px neke atu ngā ahu e rua, me te ōwehenga āhua ki waenga i te 0.40 me te 2.50.
video_urlskōwhiringa videos
Momourl[] · video
≤ 5 tūemi
Kia 5 ataata tohutoro mōrahi, ka tohua mā @Video1, @Video2, me ērā atu; he 3–30 hēkona te roa o ia mea (30.05 hēkona mōrahi), ā, kaua tō rātou roanga tapeke me ngā ataata huānga e nui ake i te 30 hēkona. Kaua ia kōnae e nui ake i te 300 MB, me te whānui me te teitei ki waenga i te 700 px me te 4553 px. Me noho te ōwehenga āhua ki waenga i te 0.40 me te 2.50, me te pāpātanga anga ki waenga i te 23.9 me te 60.05 FPS.
elementskōwhiringa
Momoobject[]
≤ 7 tūemi
He kohinga e 7 kiripuaki, ahanoa rānei mōrahi, ā, e 3 mōrahi ka āhei ki te whakauru `voice_id`, e 3 mōrahi hoki ka āhei ki te whakamahi ataata. Tohua ēnei huānga hei @Element1, @Element2, me ērā atu.
elements[].frontal_image_urlkōwhiringa
Momourl · image
Atahanga anga whakamua e whakaatu ana i te tirohanga matua o te huānga. Ko te rahi kōnae mōrahi he 30.0 MB; me 300 px neke atu ngā ahu e rua, me te ōwehenga āhua ki waenga i te 0.40 me te 2.50.
elements[].reference_image_urlskōwhiringa
Momourl[] · image
≤ 3 items
Ngā atahanga tāpiri e whakaatu ana i ngā koki rerekē o te huānga, kia 1 ki te 3 tirohanga. Kia 30.0 MB mōrahi ia kōnae, kia 300 px neke atu ngā ahu e rua, me te ōwehenga āhua ki waenga i te 0.40 me te 2.50.
elements[].video_urlkōwhiringa
Momourl · video
Whakaaturanga ataata o tētahi huānga hei whakakapi i ngā atahanga, e 3–30 hēkona te roa (30.05 hēkona mōrahi). Kaua te kōnae e nui ake i te 300 MB; me noho te whānui me te teitei ki roto i te 700–4553 px. Ko ngā ōwehenga āhua e tautokona ana ko 0.40–2.50, me ngā pāpātanga anga 23.9–60.05 FPS.
elements[].voice_idkōwhiringa
Momostring | null
Te reo kua tautapahia ki te huānga.
resolutionkōwhiringa
Momoenum
Taunoa1080p
720p1080p
Te taumira o te putanga.
aspect_ratiokōwhiringa
Momoenum
Taunoa16:9
auto16:99:161:121:9
Ngā ōwehenga ataata, ka kōwhiria hāngai, ka ahu mai rānei i ngā tohutoro mā te kōwhiri 'auto'.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
video
object {url, content_type, file_name, file_size}Ataata i whakaputaina e te tauira.

Ētahi atu tauira: Tohutoro ki te Ataata

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/kling/v4/reference-to-video.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt