Skip to main content
POST
Text to speech

Ủy quyền

Authorization
string
header
bắt buộc

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

Nội dung

application/json
model
string
bắt buộc
Ví dụ:

"tts-1"

input
string
bắt buộc

Text to convert

Maximum string length: 4096
voice
enum<string>
bắt buộc
Tùy chọn có sẵn:
alloy,
echo,
fable,
onyx,
nova,
shimmer
response_format
enum<string>
mặc định:mp3
Tùy chọn có sẵn:
mp3,
opus,
aac,
flac,
wav,
pcm
speed
number
mặc định:1
Phạm vi bắt buộc: 0.25 <= x <= 4

Phản hồi

200 - audio/mpeg

Audio generated successfully

The response is of type file.