POST
/
paas
/
v4
/
voice
/
clone
音色复刻
curl --request POST \
  --url https://open.bigmodel.cn/api/paas/v4/voice/clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "cogtts-clone",
  "voice_name": "my_custom_voice_001",
  "text": "你好,这是一段示例音频的文本内容,用于音色复刻参考。",
  "input": "欢迎使用我们的音色复刻服务,这将生成与示例音频相同音色的语音。",
  "file_id": "file_abc123def456ghi789",
  "request_id": "voice_clone_req_001"
}'
{
  "voice": "voice_clone_20240315_143052_001",
  "file_id": "file_xyz789abc456def123",
  "file_purpose": "voice-clone-output",
  "request_id": "voice_clone_req_20240315_143052_001"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

业务处理成功

The response is of type object.