Skip to main content
POST
cURL

Autorisations

x-api-key
string
header
requis

API key for authentication. Passed via the x-api-key header.

En-têtes

x-api-key
string
requis

Your Gradium API key

Corps

application/json
text
string
requis

The text to convert to speech

voice_id
string
requis

Voice ID from the library or custom voice ID

output_format
enum<string>
requis

Audio output format

Options disponibles:
wav,
pcm,
opus,
ulaw_8000,
mulaw_8000,
alaw_8000,
pcm_8000,
pcm_16000,
pcm_22050,
pcm_24000,
pcm_44100,
pcm_48000
only_audio
boolean

When true, returns raw audio bytes instead of JSON

Réponse

Audio data returned successfully