Skip to main content
POST
Text to speech

Autorisations

Authorization
string
header
requis

Authenticate with a Bearer Token. Format: Authorization: Bearer sk-xxxxxx

Corps

application/json
model
string
requis
Exemple:

"tts-1"

input
string
requis

Text to convert

Maximum string length: 4096
voice
enum<string>
requis
Options disponibles:
alloy,
echo,
fable,
onyx,
nova,
shimmer
response_format
enum<string>
défaut:mp3
Options disponibles:
mp3,
opus,
aac,
flac,
wav,
pcm
speed
number
défaut:1
Plage requise: 0.25 <= x <= 4

Réponse

200 - audio/mpeg

Audio generated successfully

The response is of type file.