Peke ki ngā ihirangi

Kling LipSync Text-to-Video

Whakauru

id tauira kling-video/lipsync/text-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/lipsync/text-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "text": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "voice_id": "genshin_vindi2"
  }'

# 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"

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

Tikina he kī API
Kling Tukutahi Ngutu me ngā Avatar Tukutahi Ngutu #text-to-video#lipsync

Ka mea i tētahi tangata i roto i te ataata kia kōrero i te tuhinga kua patohia, mā tētahi reo waihanga ka taea te tīpako, me te tere ka taea te whakarite

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 / 120

Kuputuhi hei whakaputa ataata tukutahi ngutu, ka tepaina ki te 120 pūāhua.

•e hiahiatia ana video_url
Whakataka he kōnae,

URL ataata mō te whakaputanga tukutahi ngutu. Ka whakaaetia ngā kōnae .mp4, .mov rānei tae atu ki te 100MB, 2–60s te roa, i te 720p, 1080p rānei anake; me noho ngā ahu e rua ki roto i te 720–1920px. Ka whakahokia he hapa ina rahua te whakamana.

•e hiahiatia ana

Tautohu o te reo hei waihanga kōrero.

Arā atu voice_language · voice_speed · enable_safety_checker
voice_language taunoa en

Te reo e hono ana ki te ID reo kua tīpakohia.

taunoa 1

Te tere kōrero mō te whakaputa ataata mai i te kuputuhi.

POST /run/kling-video/lipsync/text-to-video?wait=20 utu → $ 0.14
# 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/lipsync/text-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "text": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "voice_id": "genshin_vindi2"
  }'

# 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 LipSync Text-to-Video

Ka waihanga kōrero kua tukutahia ngā ngutu mai i te tuhinga, kaua mai i te kōnae oro. Tukua `video_url`, kia 120 ngā pūāhua te mōrahi o `text`, me tētahi `voice_id` mai i te rārangi reo tatūkē. Ko `voice_language` he zh, he en rānei, ā, kei waenga a `voice_speed` i te 0.8 me te 2. Ka taea te ataata pūtake hei .mp4, hei .mov rānei, kaua e nui ake i te 100MB, kia 2 ki te 60 hēkona, ā, kia 720p, 1080p rānei.

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.
video_urle hiahiatia ana video
Momourl · video
URL ataata mō te whakaputanga tukutahi ngutu. Ka whakaaetia ngā kōnae .mp4, .mov rānei tae atu ki te 100MB, 2–60s te roa, i te 720p, 1080p rānei anake; me noho ngā ahu e rua ki roto i te 720–1920px. Ka whakahokia he hapa ina rahua te whakamana.
texte hiahiatia ana
Momostring
≤ 120 pūāhua
Kuputuhi hei whakaputa ataata tukutahi ngutu, ka tepaina ki te 120 pūāhua.
voice_ide hiahiatia ana
Momoenum
genshin_vindi2zhinen_xueshengAOTai_shatanggenshin_klee2genshin_kiraraai_kaiyaoversea_male1ai_chenjiahao_712girlfriend_4_speech02chat1_female_new-3chat_0407_5-1cartoon-boy-07uk_boy1cartoon-girl-01PeppaPig_platform
+30 anōai_huangzhong_712ai_huangyaoshi_712ai_laoguowang_712chengshu_jiejieyou_pingjingcalm_story1uk_man2laopopo_speech02heainainai_speech02reader_en_m-v1commercial_lady_en_f-v1tiyuxi_xueditiexin_nanyougirlfriend_1_speech02girlfriend_2_speech02zhuxi_speech02uk_oldman3dongbeilaotie_speech02chongqingxiaohuo_speech02chuanmeizi_speech02chaoshandashu_speech02ai_taiwan_man2_speech02xianzhanggui_speech02tianjinjiejie_speech02diyinnansang_DB_CN_M_04-v2yizhipiannan-v1guanxiaofang-v2tianmeixuemei-v1daopianyansang-v1mengwa-v1
Tautohu o te reo hei waihanga kōrero.
voice_languagekōwhiringa
Momoenum
Taunoaen
zhen
Te reo e hono ana ki te ID reo kua tīpakohia.
voice_speedkōwhiringa
Momonumber
Taunoa1
0.8 – 2
Te tere kōrero mō te whakaputa ataata mai i te kuputuhi.
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/lipsync/text-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": 140,
    "usd": "0.14",
    "charged": 140,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "text": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "voice_id": "genshin_vindi2"
  },
  "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: Tukutahi Ngutu me ngā Avatar

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