Skip to main content
POST
cURL

TTS

The Kling TTS (Text-to-Speech) API provides high-quality text-to-speech services, supporting multiple languages and voice options.

Reference documentation


Common issues

Voice id not found error

Issue Description: When voice_id does not match voice_language, the API will return the following error:
Solution: Please ensure that the selected voice_id supports your specified voice_language. Refer to the Voice ID List to check which languages each voice ID supports.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Headers

Content-Type
string

Content type of the request body.

Body

application/json
text
string
required

Text to synthesize into speech. Max 1000 characters.

voice_id
string
required

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

voice_language
string
required

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

voice_speed
number

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

Response

200 - application/json

Success

code
integer
required

Response code. 0 means the task request was accepted.

message
string
required

Response message.

data
object
required
request_id
string

Request identifier returned by CometAPI when present.

Last modified on June 23, 2026