- GET START
- OpenAI Compatiable Endpoint
- Audio
- Anthropic Compatiable Endpoint
- Music Generation Endpoint
- Image Generation Endpoint
- Video Generation Ednpoint
- runway(video)
- PIKA(video)
- luma (video)
- kling (video)
- MiniMax Conch(video)
- Software Integration Guide
- cometapi Site API Call Testing
- OpenManus
- Chatbox
- CherryStudio
- Cursor
- ChatHub
- cline
- dify
- gptme
- Immersive Translation
- Lobe-Chat
- Zotero
- LangChain
- AnythingLLM
- Eudic Translation
- OpenAI Translator
- ChatAll Translation
- Pot Translation
- GPT Academic Optimization (gpt_academic)
- NEXT CHAT (ChatGPT Next Web)
- Obsidian's Text Generator Plugin
- Open WebUI
- avante.nvim
- librechat
- Lazy Customer Service
- utools-ChatGPT Friend
- IntelliJ Translation Plugin
- n8n
lip sync
POST
https://api.cometapi.com/kling/v1/videos/lip-sync
Maintainer:Not configured
2、This interface requires to pass in the task id and video id
This interface belongs to the sub-task, need to be used on the parent task account, please operate as soon as possible to avoid resource package expiration.
Official document: https://docs.qingque.cn/d/home/eZQClW07IFEuX1csc-VejdY2M#section=h.o30jngluvb4t
Request
Header Params
Authorization
string
required
Example:
Bearer {{api-key}}
Body Params application/json
input
object
required
video_id
string
required
● Used to specify the video, determine whether the video can be used for lip-synching service
● Only support the use of 5-second videos and 10-second videos generated within 30 days; videos longer than 10 seconds do not support lip-synching
mode
enum<string>
required
Allowed values:
text2videoaudio2video
text
string
optional
● input-mode parameter value is text2video, the current parameter must be filled.
● The maximum length of the text content is 120, if the content is too long, it will return the error code and other information.
● The system will check the text content, if there is any problem, it will return error code and other information.
voice_id
string
optional
● If the value of input-mode parameter is text2video, the current parameter is required.
● The system provides a variety of tones to choose from, click here to see the correspondence between the specific tone effect, tone ID and tone language; the tone audition does not support customized text.
● Tone audition file naming standard: Tone name#Tone ID#Tone language.
voice_language
enum<string>
optional
Allowed values:
enzh
voice_speed
string
optional
= 0.8<= 2 default:1
audio_type
enum<string>
optional
Allowed values:
fileurl
audio_file
enum<string>
optional
Allowed values:
fileurl
audio_url
string
optional
task_id
string
required
callback_url
string
optional
Example
{
"input": {
"task_id": "CjilGmfJXYIAAAAAADleeQ",
"video_id": "1f936158-ea15-4775-84c9-78391705b734",
"mode": "text2video",
"text": "It's a beautiful day.",
"voice_id": "girlfriend_4_speech02",
"voice_language": "en"
}
}
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 --request POST 'https://api.cometapi.com/kling/v1/videos/lip-sync' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"input":{
"task_id": "CjilGmfJXYIAAAAAADleeQ",
"video_id":"1f936158-ea15-4775-84c9-78391705b734",
"mode":"text2video",
"text":"It'\''s a beautiful day.",
"voice_id":"girlfriend_4_speech02",
"voice_language":"en"
}
}'
Responses
🟢200Successful Response
application/json
Body
code
integer
required
message
string
required
request_id
string
required
data
object
required
task_id
string
required
task_status
string
required
created_at
integer
required
updated_at
integer
required
Example
{
"code": 0,
"message": "string",
"request_id": "string",
"data": {
"task_id": "string",
"task_status": "string",
"created_at": 1722769557708,
"updated_at": 1722769557708
}
}