Skip to main content
POST
/
v1
/
tts
Text to Speech
curl --request POST \
  --url https://api.voicv.com/v1/tts \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "voiceId": "8c97bbb2ff424bb1a580651576774d2d",
  "text": "Voicv is a cutting-edge voice cloning platform that transforms your voice into a digital asset in minutes, supporting multiple languages and zero-shot learning.",
  "format": "mp3"
}
'
{
  "code": 200,
  "message": "success",
  "data": {
    "audioUrl": "https://r2-api.voicv.com/568e3c588b55479baf7591c17554d8f8.mp3",
    "costCredits": 160
  }
}

Pricing

  • Cost: 1 credits per character
⚠️ Important Notes
  • The generated audio file will expire after 12 hours. Please download and save it promptly.

Headers

x-api-key
string
required

Body

application/json
voiceId
string
required

ID of the voice to be used for the speech

text
string
required

Text to be converted to speech

format
string
required

Format to be used for the speech, Available options: wav, pcm, mp3, opus

Response

200 - application/json
code
integer
required
message
string
required
data
object
required