Peke ki ngā ihirangi

Kling Video v2.6 Image to Video

Whakauru

id tauira kling-video/v2.6/pro/image-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/kling-video/v2.6/pro/image-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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tēnei tono: $ 0.70 700 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Kling · Ataata

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

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.

•e hiahiatia ana 88 / 2500
•e hiahiatia ana start_image_url
Whakataka he kōnae,

URL e tohu ana ki te atahanga e whakamahia ana mō te whakaputanga ataata. Kaua te rahi kōnae e nui ake i te 50 MB; me 300px neke atu te whānui me te teitei, ā, me noho te ōwehenga āhua ki waenga i te 0.40 me te 2.50.

duration 5 s

Te roa o te ataata putanga, ka inea ki te hēkona.

Ngā ID reo kōwhiringa hei whakaputa i te ataata, e 2 reo mōrahi mō ia tūmahi. Tohua i te tohutohu mā <<<voice_1>>> me <<<voice_2>>>.

Arā atu negative_prompt · end_image · enable_safety_checker
0 / 2500
end_image_url
Whakataka he kōnae,

URL e tohu ana ki te atahanga e whakamahia ana i te mutunga o te ataata. Kaua te rahi kōnae e nui ake i te 50 MB; me 300px neke atu te whānui me te teitei, ā, me noho te ōwehenga āhua ki waenga i te 0.40 me te 2.50.

POST /run/kling-video/v2.6/pro/image-to-video?wait=20 utu → $ 0.70
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/kling-video/v2.6/pro/image-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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/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 Video v2.6 Image to Video

Ka whakakorikori i tētahi atahanga tīmatanga (`start_image_url`) mā tētahi tohutohu tae atu ki te 2500 pūāhua, ā, ka taea te mutu ki `end_image_url`. Ko `duration` he 5, 10 hēkona rānei. Mā `generate_audio` e whakaputa ororongo māori me te reo Hainamana me te reo Pākehā, ā, mā `voice_ids` e tuku ai koe ki te tohu i ngā reo neke atu ki te 2 i roto i te tohutohu. Ka whakaaetia hoki `negative_prompt`.

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
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Mā te whakamanatanga pūkete anake e āhei ai te whakaweto i ngā arowhai haumaru; ka arowhaitia tonutia ngā tono kāore he whakamanatanga.
prompte hiahiatia ana
Momostring
≤ 2,500 pūāhua
start_image_urle hiahiatia ana image
Momourl · image
URL e tohu ana ki te atahanga e whakamahia ana mō te whakaputanga ataata. Kaua te rahi kōnae e nui ake i te 50 MB; me 300px neke atu te whānui me te teitei, ā, me noho te ōwehenga āhua ki waenga i te 0.40 me te 2.50.
durationkōwhiringa
Momoenum
Taunoa5
510
Te roa o te ataata putanga, ka inea ki te hēkona.
negative_promptkōwhiringa
Momostring
Taunoablur, distort, and low quality
≤ 2,500 pūāhua
generate_audiokōwhiringa
Momoboolean
Taunoatrue
Pātene whakakā/weto mō te whakaputanga ororongo taketake o te ataata, e tautoko ana i ngā reo Hainamana, Ingarihi hoki, ā, ka whakamāori aunoa i ētahi atu reo ki te reo Ingarihi. Mō te kōrero Ingarihi, tuhia ngā kupu whakarāpopoto me ngā ingoa ake ki ngā pūmatua, me ērā atu katoa ki ngā pūriki.
voice_idskōwhiringa
Momostring[]
Ngā ID reo kōwhiringa hei whakaputa i te ataata, e 2 reo mōrahi mō ia tūmahi. Tohua i te tohutohu mā <<<voice_1>>> me <<<voice_2>>>.
end_image_urlkōwhiringa end_image
Momourl · image
URL e tohu ana ki te atahanga e whakamahia ana i te mutunga o te ataata. Kaua te rahi kōnae e nui ake i te 50 MB; me 300px neke atu te whānui me te teitei, ā, me noho te ōwehenga āhua ki waenga i te 0.40 me te 2.50.
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-video/v2.6/pro/image-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": 700,
    "usd": "0.70",
    "charged": 700,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "start_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/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}Te ataata i hangaia e te tauira.

Ētahi atu tauira: Atahanga 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-video/v2.6/pro/image-to-video.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt