Endpoints
Generate TTS
Generate an AI Text to Speech message.
POST
/
generate
Header
Authorization
string
requiredAdd your API token here. You can find it by reading the /authentication page.
Body
voice_id
string
requiredThe ID of the voice to use. Use the /voices endpoint to get a list of all available voices.
message
string
requiredThe message to generate. Limited to the first 500 characters.
return_usage
boolean
Set to true
if you would like the current character usage to be returned along with the generated TTS.
Response
url
string
The URL to the generated audio file. The file will be deleted after 24 hours.
status
string
The status of the TTS generation. Learn more about different status codes here.
characterUsage
number
The current character count of the user.