1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/kling-create-voice";
const data = {};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();Audio URL with a single clear voice. Ideal length: 10 seconds.
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Kling AI (Voice) is a generative voice cloning model that creates a new spoken audio output using a reference voice sample provided via URL. You supply a voice audio URL containing a clear single speaker, and the model uses that sample to reproduce the voice’s timbre and speaking characteristics for downstream voice experiences.
While Kling AI is often associated with NLP and conversational systems, this endpoint is specifically designed for voice-based generation workflows—helping teams build natural-sounding narration, character voices, and assistant experiences with consistent speaker identity. It’s a practical fit for developers looking for “AI voice cloning,” “voice generator,” or “text to speech with voice copy” capabilities in an API-friendly format.
Is Kling AI open-source?
This integration describes a hosted Kling AI model; open-source status isn’t implied here.
What input do I need to provide?
voice_url (required): a URL to an audio clip with a clear single voice.
What kind of audio works best for voice cloning?
Clean, noise-free speech with one speaker; ~10 seconds is ideal for a demo.
How is this different from a general NLP/chat model?
This model focuses on voice identity cloning from audio, not text reasoning or chat.
What parameters should I tweak for best results?
This endpoint exposes a single control—use the best possible voice_url to improve quality.