跳转到主要内容
POST
POST /v1/audio/speech

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
input
string
必填
model
string
必填
voice
必填
instructions
string | null
response_format
enum<string> | null
可用选项:
mp3,
opus,
aac,
flac,
wav,
pcm
speed
number | null
stream_format
enum<string> | null
可用选项:
sse,
audio

响应

Successful protocol response

The response is of type file.