API Doc-CometAPI
HomeDashBoardModel_Price
HomeDashBoardModel_Price
Discord_Support
  1. kling (video)
  • GET START
    • Model New Release Announcement
    • Platform notification
    • Help Center
    • Quick Start
    • About Pricing
    • About Grouping
    • Interface Stability
    • Privacy policy
    • Terms of service
    • Error code description
    • Code example
    • Must see for use
    • Common Misconceptions
    • Confusion about use
    • Best Practices
      • CometAPI Account Balance Query API Usage Instructions
      • Retry Logic Documentation for CometAPI and OpenAI Official API
      • Midjourney Best Practices
      • Runway Best Practices
  • OpenAI Compatiable Endpoint
    • gpt-4o-image generates image
    • Chat
    • Recognizing Images
    • Models
    • Embeddings
    • Images
    • Realtime
    • Image Editing (gpt-image-1)
  • Audio
    • Create speech
    • Create transcription
    • Create translation
  • Anthropic Compatiable Endpoint
    • Anthropic Claude
  • Music Generation Endpoint
    • Suno
      • Setting suno Version
      • Generate lyrics
      • Generate music clip
      • Upload clip
      • Submit concatenation
      • Single task query
      • Batch query tasks
    • Udio(Temporarily unavailable)
      • Generate music
      • Task query
  • Image Generation Endpoint
    • Midjourney(images)
      • Quick Tutorial - Complete Process in One Go
      • Task Fetching API
        • List by Condition
        • Fetch Single Task (most recommended)
      • Imagine
      • Action (UPSCALE; VARIATION; REROLL; ZOOM, etc.)
      • Blend (image -> image)
      • Describe (image -> text)
      • Modal (Area Redesign & Zoom)
    • Ideogram(images)
      • Official documentation (updated in real time)
      • Generate 3.0 (text to image)
      • Remix 3.0 (hybrid image)
      • Reframe 3.0(Reconstruction)
      • Replace Background 3.0(Background replacement)
      • Edit 3.0(Editing images)
      • ideogram Text Raw Image
      • ideogram Hybrid image
      • ideogram enlargement HD
      • ideogram describes the image
      • ideogram Edit image
    • Flux(images)
      • Generate image (replicate format)
      • flux fine-tune images(Temporarily unavailable)
      • flux generate image(Temporarily unavailable)
      • flux query
    • Replicate(image)
      • replicate Generate
      • replicate query
    • Recraft(images)
      • Appendix
      • Recraft Generate Image
      • Recraft Vectorize Image
      • Recraft Remove Background
      • Recraft Clarity Upscale
      • Recraft Create style
      • Recraft Generative Upscale
  • Video Generation Ednpoint
    • runway(video)
      • official format
        • runway images raw video
        • runway to get task details
      • Reverse Format
        • generate(text)
        • generate(Reference images)
        • Video to Video Style Redraw
        • Act-one Expression Migration
        • feed-get task
    • kling (video)
      • callback_url
      • Generating images
        POST
      • Text Generation Video
        POST
      • Image Generation Video
        POST
      • Video Extension
        POST
      • virtual try-on
        POST
      • lip sync
        POST
      • Individual queries (videos)
        GET
    • MiniMax Conch(video)
      • MiniMax Conch Official Documentation
      • MiniMax Conch Generation
      • MiniMax Conch Query
      • MiniMax Conch Download
    • luma (video)
      • Official api interface format
        • luma generate
        • luma search
    • PIKA(video)
      • pika feed
      • PIKA Reference Video Generation
      • PIKA Reference Image Generation
      • PIKA reference text generation
    • sora
      • Reverse Format
        • Create Video
        • Query Video Task
        • Create Video
  • Software Integration Guide
    • cometapi Site API Call Testing
    • OpenManus
    • Chatbox
    • CherryStudio
    • Cursor
    • ChatHub
    • COZE
    • FastGPT
    • 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
  1. kling (video)

lip sync

POST
https://api.cometapi.com/kling/v1/videos/lip-sync
Maintainer:Not configured
1、Generate video
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
Contains multiple fields for specifying video, lip-sync correspondences, etc.
video_id
string 
required
ID of the video generated by Kerin AI
● 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
text2video,audio2video
Allowed values:
text2videoaudio2video
text
string 
optional
Generate text content for lip-sync videos
● 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
Tone ID
● 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
Tone language, corresponds to the tone ID, enumeration value: zh, en.
Allowed values:
enzh
voice_speed
string 
optional

= 0.8<= 2 default:1

audio_type
enum<string> 
optional
file,url
Allowed values:
fileurl
audio_file
enum<string> 
optional
Audio file local path (Base64 encoding), support .mp3/.wav/.m4a/.acc, file size not more than 5MB
Allowed values:
fileurl
audio_url
string 
optional
Audio file download url, support .mp3/.wav/.m4a/.acc, file size not more than 5MB
task_id
string 
required
task_id
callback_url
string 
optional
Address for callback notification of the results of this task, 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
    }
}
Previous
virtual try-on
Next
Individual queries (videos)
Built with