Skip to main content
POST
Text to speech

承認

Authorization
string
header
必須

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

ボディ

application/json
model
string
必須
:

"tts-1"

input
string
必須

Text to convert

Maximum string length: 4096
voice
enum<string>
必須
利用可能なオプション:
alloy,
echo,
fable,
onyx,
nova,
shimmer
response_format
enum<string>
デフォルト:mp3
利用可能なオプション:
mp3,
opus,
aac,
flac,
wav,
pcm
speed
number
デフォルト:1
必須範囲: 0.25 <= x <= 4

レスポンス

200 - audio/mpeg

Audio generated successfully

The response is of type file.