Retrieve available TTS voices

April 18, 2025

Table of contents

  1. Request Headers
  2. Query Parameters
  3. Responses
  4. Model
  5. Examples
  6. Try It

This endpoint retrieves a list of available text-to-speech voices from Kling.

https://api.useapi.net/v1/kling/tts/voices?…

Request Headers
Authorization: Bearer {API token}
Query Parameters
  • email is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
  • 200 OK

    {
      "ttsList": [
        {
          "name": "Voice Name 1",
          "speakerId": "voice_id_1",
          "exampleUrl": "https://s21-kling.klingai.com/....mp3",
          "new": false,
          "emotions": [
            {
              "name": "Happy",
              "key": "happy",
              "enable": true
            },
            {
              "name": "Sad",
              "key": "sad",
              "enable": true
            }
          ]
        },
        {
          "name": "Voice Name 2",
          "speakerId": "voice_id_2",
          "exampleUrl": "https://s21-kling.klingai.com/....mp3",
          "new": true,
          "emotions": []
        }
      ],
      "lastSpeakerId": "voice_id_1",
      "typeList": ["en", "zh"]
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model
{ // TypeScript, all fields are optional
  ttsList: {
    name: string
    speakerId: string
    exampleUrl: string
    new: boolean
    emotions: {
      name: string
      key: string
      enable: boolean
    }[]
  }[]
  lastSpeakerId: string
  typeList: string[]
}
Examples
  • curl "https://api.useapi.net/v1/kling/tts/[email protected]" \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const email = "Previously configured account email";
    const apiUrl = `https://api.useapi.net/v1/kling/tts/voices?email=${email}`; 
    const response = await fetch(apiUrl, {
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    email = "Previously configured account email"
    apiUrl = f"https://api.useapi.net/v1/kling/tts/voices?email={email}"
    headers = {
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It