Skip to main content
POST

Request

Headers

string
required
Bearer token with your API key
string
required
application/json

Body

string
required
The text to convert to speech (max 5000 characters)
string
ID of the voice to use (default: system default voice)
string
Alternative way to specify voice name
boolean
default:"true"
Enable audio enhancement for better quality
number
default:"1.0"
Speech speed multiplier (0.5 to 2.0)
number
default:"1.0"
Voice pitch multiplier (0.5 to 2.0)
string
default:"mp3"
Audio output format: mp3, wav, ogg, flac

Response

boolean
Indicates if the request was successful
string
Status message
string
Base64-encoded audio data
number
Audio sample rate in Hz
number
Duration of the audio in seconds
string
Audio encoding format
string
Audio output format