POST
/
uploads
/
audio
/
voice
curl --request POST \
  --url https://api.ap.siliconflow.com/v1/uploads/audio/voice \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'audio=data:audio/mpeg;base64,aGVsbG93b3JsZA==' \
  --form model=FunAudioLLM/CosyVoice2-0.5B \
  --form customName=your-voice-name \
  --form 'text=In the midst of ignorance, a day in the dream comes to an end, and a new cycle begins.'
{
  "uri": "speech:your-voice-name:xxx:xxx"
}

Authorizations

Authorization
string
header
required

Use the following format for authentication: Bearer <your api key>

Body

multipart/form-data

Response

200
application/json
Successful response

The response is of type object.