Skip to main content
POST
/
v1
/
audio
/
speech
语音合成 (TTS)
curl --request POST \
  --url https://api.qclawrouter.com/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "tts-1",
  "input": "你好,欢迎使用 QClaw Router!",
  "voice": "alloy",
  "response_format": "mp3",
  "speed": 1
}
'
"<string>"

Authorizations

Authorization
string
header
required

使用您的 API Key 作为 Bearer Token。在控制台创建令牌获取。

Body

application/json
model
enum<string>
required
Available options:
tts-1,
tts-1-hd
Example:

"tts-1"

input
string
required

要转换的文本

Example:

"你好,欢迎使用 QClaw Router!"

voice
enum<string>
required

语音风格

Available options:
alloy,
echo,
fable,
onyx,
nova,
shimmer
response_format
enum<string>
default:mp3
Available options:
mp3,
opus,
aac,
flac,
wav,
pcm
speed
number
default:1

语速(0.25-4.0)

Required range: 0.25 <= x <= 4

Response

200 - audio/mpeg

音频文件

The response is of type file.