Text-to-Speech
TTS POST Endpoint
Generate text-to-speech audio from a complete text block with HTTP POST.
POST
cURL
Headers
Your Gradium API key
Body
application/json
The text to convert to speech
Voice ID from the library or custom voice ID
Audio output format
Available options:
wav, pcm, opus, ulaw_8000, mulaw_8000, alaw_8000, pcm_8000, pcm_16000, pcm_22050, pcm_24000, pcm_44100, pcm_48000 When true, returns raw audio bytes instead of JSON
Response
Audio data returned successfully
cURL