v1

latestOpenAPI 3.1.02026-07-267724480.0 KB

TTS

post/kling/v1/audio/tts

Headers

Content-Typestring

Content type of the request body.

Request body

textstring required

Text to synthesize into speech. Max 1000 characters.

voice_idstring required

Voice preset ID. Determines the speaker voice used for synthesis. See the Kling documentation for available voice IDs and their supported languages.

voice_languagestring required

Language of the selected voice. Must match the language supported by the chosen voice_id. Values: zh (Chinese) or en (English).

voice_speednumber

Speech rate multiplier. Range 0.8–2.0 (one decimal place). Values outside this range are clamped automatically.

Response

Success

codeinteger required

Response code. 0 means the task request was accepted.

messagestring required

Response message.

request_idstring

Request identifier returned by CometAPI when present.

Example response

{
  "code": 0,
  "message": "SUCCEED",
  "data": {
    "task_id": "<task_id>",
    "task_status": "submitted",
    "task_info": {},
    "task_status_msg": null,
    "created_at": 1773366840306,
    "updated_at": 1773366840306
  }
}