Skip to main content
POST
/
kling
/
v1
/
audio
/
tts
cURL
curl https://api.deerapi.com/kling/v1/audio/tts \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $DEERAPI_KEY" \
  -d '{
    "text": "Welcome to DeerAPI!",
    "voice_id": "en_male_narrator",
    "voice_language": "en",
    "voice_speed": 1.2
  }'
{}

Overview

Use this endpoint to call the Kling TTS workflow through DeerAPI. The API reference on this page shows the request schema, response schema, authentication requirements, and runnable examples for the configured endpoint.

Before you start

Use the DeerAPI base URL and pass your API Key in the Authorization header:
https://api.deerapi.com
Authorization: Bearer $DEERAPI_KEY

Model selection

Choose a current model ID from the live pricing page. Model availability changes over time, so avoid copying a model ID from an old project without checking the live list first.

Implementation notes

  • Use the OpenAPI playground for the exact request fields accepted by this endpoint.
  • Keep API Keys on the server side when you build production applications.
  • Log the request ID from failed calls so support can investigate the request.
  • Retry 429, 500, and 503 responses with exponential backoff.

Authorizations

Authorization
string
header
required

Use a DeerAPI API Key as a Bearer token.

Headers

Content-Type
string

Content type of the request body.

Body

application/json
text
string
default:Hello
required

Text to synthesize into speech. Max 1000 characters.

voice_id
string
default:example
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
default:en
required

Language of the selected voice. Must match the language supported by the chosen voice_id. Use an available service language code such as en.

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

The response is of type object.