Skip to main content
POST
Convert text to speech using a specified voice

Authorizations

Authorization
string
header
required

Body

application/json
text
string
required

Text to convert to speech

Example:

"Hello, this is a sample text to speech conversion."

sample_audio_url
string
required

An audio URL containing a voice sample of the target speaker without music or overlapping voices. Recommended over voice_id for better output quality.

Example:

"<YOUR_AUDIO_URL>"

voice_id
string

Voice model ID

Example:

"e1cb7380-e3db-433a-b186-a996d7545986"

gender
string

Gender preference for the voice (e.g., "male", "female")

Example:

"female"

webhook_url
string

Callback URL for async processing

Example:

"https://example.com/my-webhook"

Response

Successfully initiated task

success
boolean
task_id
string
conversion_id
string
eta
integer

Estimated processing time in seconds

credit_estimate
number<float>
message
string
status
string