跳转到主要内容
POST
/
v1
/
audio
/
speech
cURL
curl --request POST \
  --url https://proxy.innk.cc/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": "<string>"
}
'
"<string>"
兼容OpenAI SDK。OpenAI API Reference

授权

Authorization
string
header
必填

身份验证标头格式为 Bearer <API_KEY>,其中 <API_KEY> 是您的API令牌。

请求体

application/json
model
string
必填

模型

示例:

"tts-1"

input
string
必填

文本内容

响应

200 - audio

成功响应

The response is of type file.