Kling Talking Photo API
POSThttps://api.acedata.cloud/kling/talking-photo
Kling talking-photo API — make a still portrait speak from audio or text.
Request Headers
authorizationstring
Bearer token
Request Body
modestring
The generation quality of photo animation stage.
Please select
asyncboolean
Return task_id immediately when true; you can poll through /kling/tasks or receive callbacks to get the result.
Please select
modelstring
The Kling model used in the photo animation stage.
Please select
promptstring
Optional: Action/expression prompts for the photo animation stage.
durationinteger
Video duration (seconds), while also limiting the length of the audio reading.
Please select
audio_urlstringRequired parameter
Public URL for audio (.mp3/.wav/.m4a/.aac, no more than 5MB), characters will lip-sync according to its content.
image_urlstringRequired parameter
Public URL of the character photo, it is recommended to use a clear frontal photo.
callback_urlstring
If provided (or async=true), it will immediately return task_id and push the result via callback when ready.
Response
Kling video generation
Allow Use General Balance
When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.
Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.
