POST
/
paas
/
v4
/
audio
/
speech
文本转语音
curl --request POST \
  --url https://open.bigmodel.cn/api/paas/v4/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "cogtts",
  "input": "<string>",
  "voice": "tongtong"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

使用以下格式进行身份验证:Bearer <your api key>

Body

application/json

Response

200
audio/*

业务处理成功

The response is of type file.