API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Kling-API
API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  • Chat Models
    • Chat
      • Create chat completion
      • vision
    • OpenAI-Realtime
    • Completions
      • Instruct
    • Audio
      • Transcriptions
      • Translations
      • Speech
    • Image generation
      • DALL·E 3
    • Embeddings
      • Create
    • Models
      • model list
    • Help
      • 常见问题及解决办法
  • Anthropic
    • Anthropic Claude
      POST
  • Suno
    • Generate music
      POST
    • Generate lyrics
      POST
    • Upload music
      POST
    • Music concat
      POST
    • Fetch task
      GET
    • Fetch batch tasks
      POST
  • Udio
    • Generate music
      POST
    • Fetch task
      GET
  • Midjourney API
    • Quick
    • Task Submit
      • Imagine
      • Action
      • Modal
      • Blend
      • Describe
      • Shorten
      • Upload discord
    • Get Task
      • Fetch task by ids
      • Fetch task by id
      • Get seed
  • Flux
    • Official
      • Generate
      • Finetune
      • Fetch task
    • OpenAI Dalle3
  • Recraft
    • Official
      • Generate Image
      • Vectorize Image
      • Remove Background
      • Clarity Upscale
      • Generative Upscale
      • Create style
    • OpenAI Dalle3
  • Ideogram
    • Generate
    • Remix
    • Edit
    • Upscale
    • Describe
  • Luma
    • Official
      • Generate
      • Fetch task
    • Own format
      • Submit
        • Generate
        • Get video of no mark
        • 扩展视频
      • Get task
        • Get task
        • Get batch task
  • Runway
    • Official
      • image to video
      • get task
    • reverse
      • text to video
      • image to video
      • video2video
      • Act-one
      • Get task
  • Kling-API
    • Callback
    • Generate image
      POST
    • Text 2 Video
      POST
    • Image 2 Video
      POST
    • Video extend
      POST
    • Get task
      GET
    • lip-sync
      POST
    • kolors-virtual-try-on
      POST
  • Replicate
    • Generate
    • Get
  • MiniMax
    • Generate video
    • Get task
    • Get file
  1. Kling-API

lip-sync

POST
/kling/v1/videos/lip-sync
Last modified:2025-05-14 09:05:18
1.
Generate video
2.
This interface requires the task id and video id to be passed in
This interface belongs to a subtask and needs to be used on the parent task account. Please operate as soon as possible to avoid the resource package from expiring.
Official Document:https://docs.qingque.cn/d/home/eZQClW07IFEuX1csc-VejdY2M#section=h.o30jngluvb4t

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Authorization
string 
optional
Default:
{{YOUR_API_KEY}}
Body Params application/json
input
object 
required
video_id
string 
required
通过可灵AI生成的视频的ID。仅支持使用30天内生成的5秒视频和10秒视频,超过10秒的视频不支持对口型
mode
enum<string> 
required
生成视频的模式
Allowed values:
text2videoaudio2video
text
string 
optional
生成对口型视频的文本内容
<= 120 characters
voice_id
string 
optional
音色ID
https://docs.qingque.cn/s/home/eZQDvafJ4vXQkP8T9ZPvmye8S?identityId=2Cn18n4EIHT
voice_language
enum<string> 
optional
音色语种,与音色ID对应
Allowed values:
zhen
Default:
zh
voice_speed
number 
optional
语速
>= 0.8<= 2
Default:
1
audio_type
enum<string> 
optional
音频文件传输方式
Allowed values:
fileurl
audio_file
string 
optional
音频文件本地路径(Base64编码),支持.mp3/.wav/.m4a/.acc,文件大小不超过5MB
audio_url
string <uri>
optional
音频文件下载url,支持.mp3/.wav/.m4a/.acc,文件大小不超过5MB
task_id
string 
任务id
required
callback_url
string <uri>
optional
任务结果回调通知地址
Example
{
  "input": {
    "task_id": "ClpejWduJGYAAAAAAN9B-w",
    "video_id": "de1b86d9-8e40-4f1c-a6a5-6459f8eb42f2",
    "mode": "text2video",
    "text": "今天天气很好",
    "voice_id": "girlfriend_1_speech02",
    "voice_language": "zh"
  }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/kling/v1/videos/lip-sync' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "input":{
        "task_id":"ClpejWduJGYAAAAAAN9B-w",
        "video_id":"de1b86d9-8e40-4f1c-a6a5-6459f8eb42f2",
        "mode":"text2video",
        "text":"今天天气很好",
        "voice_id":"girlfriend_1_speech02",
        "voice_language":"zh"
    }
}'

Responses

🟠404记录不存在
application/json
Body
error
object 
required
message
string 
required
type
string 
required
code
string 
required
Example
{
  "error": {
    "message": "string",
    "type": "string",
    "code": "string"
  }
}
Previous
Get task
Next
kolors-virtual-try-on
Built with